@madie/madie-design-system 2.0.0 → 2.0.2
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/.babelrc +14 -2
- package/.storybook/preview.js +1 -1
- package/components/Accordion/index.jsx +32 -36
- package/components/AutoComplete/AutoComplete.jsx +1 -16
- package/components/Button/Button.stories.js +0 -5
- package/components/Button/index.js +34 -44
- package/components/DateField/DateField.jsx +1 -14
- package/components/DateTimeField/DateTimeField.jsx +1 -9
- package/components/InputLabel/index.jsx +1 -6
- package/components/Instant/index.jsx +0 -16
- package/components/Link/index.js +42 -0
- package/components/MadieAlert/index.jsx +1 -40
- package/components/MadieConfirmDialog/MadieConfirmDialog.stories.js +0 -5
- package/components/MadieConfirmDialog/index.jsx +0 -8
- package/components/MadieDeleteDialog/MadieDeleteDialog.stories.js +24 -5
- package/components/MadieDeleteDialog/index.jsx +18 -8
- package/components/MadieDialog/MadieDialog.stories.js +0 -5
- package/components/MadieDialog/index.jsx +0 -21
- package/components/MadieDiscardDialog/MadieDiscardDialog.stories.js +0 -5
- package/components/MadieDiscardDialog/index.jsx +0 -7
- package/components/MadieSpinner/MadieSpinner.stories.js +0 -6
- package/components/MadieSpinner/index.jsx +0 -5
- package/components/MadieTooltip/index.jsx +0 -6
- package/components/MadieTooltipIcon/index.jsx +0 -5
- package/components/Modal/Modal.jsx +31 -43
- package/components/Modal/index.jsx +6 -8
- package/components/NumberInput/NumberInput.stories.js +0 -5
- package/components/NumberInput/index.jsx +0 -13
- package/components/Pagination/index.jsx +0 -17
- package/components/Popover/index.js +0 -23
- package/components/RadioButton/RadioButton.jsx +1 -13
- package/components/ReadOnlyTextField/ReadOnlyTextField.stories.js +0 -6
- package/components/ReadOnlyTextField/index.jsx +0 -8
- package/components/RichTextEditor/index.jsx +0 -15
- package/components/SanitizedContent/index.jsx +0 -8
- package/components/Search/index.js +26 -40
- package/components/Select/Select.stories.js +0 -4
- package/components/Select/index.jsx +1 -16
- package/components/Tabs/Tab.js +29 -25
- package/components/Tabs/TabPanel.js +15 -19
- package/components/Tabs/Tabs.stories.js +14 -50
- package/components/Tabs/index.js +10 -28
- package/components/TextArea/TextArea.stories.js +0 -6
- package/components/TextArea/index.jsx +1 -13
- package/components/TextField/TextField.stories.js +0 -6
- package/components/TextField/index.jsx +1 -16
- package/components/TimeField/TimeField.jsx +0 -10
- package/components/Toast/index.jsx +0 -14
- package/components/TruncateText/index.js +0 -8
- package/components/{index.js → index.mjs} +37 -33
- package/dist/index.js +3 -1
- package/dist/index.js.LICENSE.txt +16 -0
- package/dist/index.js.map +1 -0
- package/dist/react/index.html +1 -1
- package/dist/react/index.mjs +103 -0
- package/dist/react/{index.js.LICENSE.txt → index.mjs.LICENSE.txt} +0 -52
- package/dist/react/index.mjs.map +1 -0
- package/dist/react/package.json +1 -0
- package/{eslint.config.js → eslint.config.cjs} +3 -0
- package/jest.config.mjs +10 -0
- package/lib/Chevron.jsx +2 -10
- package/package.json +18 -10
- package/styles/_main.scss +4 -3
- package/test/components/Button.test.js +6 -16
- package/test/components/MadieDeleteDialog.test.js +30 -1
- package/test/components/Search.test.js +1 -1
- package/test/components/TruncateText.test.js +1 -1
- package/webpack.config.mjs +79 -0
- package/webpack.config.react.mjs +72 -0
- package/components/NotificationBanner/NotificationBanner.stories.js +0 -29
- package/components/NotificationBanner/index.js +0 -279
- package/components/UnwrappedSpinner/index.js +0 -8
- package/dist/browser.js +0 -1
- package/dist/react/index.js +0 -316
- package/dist/react/index.js.map +0 -1
- package/jest.config.js +0 -17
- package/webpack.config.js +0 -123
- package/webpack.config.react.js +0 -104
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*! For license information please see index.mjs.LICENSE.txt */
|
|
2
|
+
import*as e from"react";import*as t from"react-dom";var n={308:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||s.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m<h;m++){var g=t[m];if(o){var y=n.replace(g,m);if(f(y)){h>1&&(y=d(y,{key:y.key||m})),r.push(c(y,g,m));continue}}if("text"!==g.type){var b=g,v={};l(b)?((0,s.setStyleProp)(b.attribs.style,b.attribs),v=b.attribs):b.attribs&&(v=(0,i.default)(b.attribs,b.name));var x=void 0;switch(g.type){case"script":case"style":g.children[0]&&(v.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?v.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=e(g.children,n));break;default:continue}h>1&&(v.key=m),r.push(c(p(g.name,v,x),g,m))}else{var w=!g.data.trim().length;if(w&&g.parent&&!(0,s.canTextBeChildOfNode)(g.parent))continue;if(n.trim&&w)continue;r.push(c(g.data,g,m))}}return 1===r.length?r[0]:r};var o=n(1649),i=r(n(840)),s=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},312:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1720),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},411:(e,t,n)=>{var r,o,i;o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)},442:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];return(0,s.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||l),t)};var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var s=r(n(308));t.domToReact=s.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1}},445:function(e){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,l("week")],ww:[r,l("week")],M:[o,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=s&&s.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),a=i.length,l=0;l<a;l+=1){var c=i[l],u=p[c],d=u&&u[0],f=u&&u[1];i[l]=f?{regex:d,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var s=o.regex,l=o.parser,c=e.slice(r),u=s.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var a=i[1];if("string"==typeof a){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),s=this.$locale(),!l&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=f(t)(e),i=o.year,s=o.month,a=o.day,l=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,h=o.week,m=new Date,g=a||(i||s?1:m.getDate()),y=i||m.getFullYear(),b=0;i&&!s||(b=s>0?s-1:m.getMonth());var v,x=l||0,w=c||0,S=u||0,C=d||0;return p?new Date(Date.UTC(y,b,g,x,w,S,C+60*p.offset*1e3)):n?new Date(Date.UTC(y,b,g,x,w,S,C)):(v=new Date(y,b,g,x,w,S,C),h&&(v=r(v).week(h).toDate()),v)}catch(e){return new Date("")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),s={}}else if(a instanceof Array)for(var p=a.length,h=1;h<=p;h+=1){i[1]=a[h-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},834:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(411);var i=((r=o)&&r.__esModule?r:{default:r}).default,s=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=s},840:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var h=(0,r.getPropertyInfo)(f);switch(i.includes(f)&&s.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,h&&h.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(4210),o=n(4958),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},1089:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=c,t.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&c(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const n=a(e,t,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:n}},t.createSVGTransform=function(e,t){return a(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=a,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=s,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(s(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=u,t.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{l(e)}):l(e)};var r=n(7056),o=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(n(3514));let i="";function s(e,t){return i||(i=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[i])&&e[i](t)}function a(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function l(e){if(e)try{if(e.body&&u(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function c(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}},1133:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};var o=r(n(9788))},1141:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),s=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},1345:(e,t,n)=>{function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1508:e=>{function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function n(){for(var e,n,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(n=t(e))&&(o&&(o+=" "),o+=n);return o}e.exports=n,e.exports.clsx=n},1649:t=>{t.exports=e},1720:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1649),s=h(i),a=h(n(7516)),l=h(n(5556)),c=h(n(9090)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(6462)),d=n(834),p=h(d),f=n(1345);function h(e){return e&&e.__esModule?e:{default:e}}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}var g=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",b=d.canUseDOM&&void 0!==a.default.createPortal,v=function(e){return document.createElement(e)},x=function(){return b?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var S=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removePortal=function(){!b&&a.default.unmountComponentAtNode(o.node);var e=w(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=x()(o,s.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,n)}return function(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)}(t,e),o(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(b||(this.node=v("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||o)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&b?(!this.node&&b&&(this.node=v("div")),x()(s.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(i.Component);S.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},S.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(S),t.default=S},1726:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const o=!(0,r.isNum)(e.lastX),s=i(e);return o?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:s}=e.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=i(e);if("string"==typeof s){const{ownerDocument:e}=a,t=e.defaultView;let n;if("parent"===s)n=a.parentNode;else{n=a.getRootNode().querySelector(s)}if(!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=n,l=t.getComputedStyle(a),c=t.getComputedStyle(i);s={left:-a.offsetLeft+(0,r.int)(c.paddingLeft)+(0,r.int)(l.marginLeft),top:-a.offsetTop+(0,r.int)(c.paddingTop)+(0,r.int)(l.marginTop),right:(0,o.innerWidth)(i)-(0,o.outerWidth)(a)-a.offsetLeft+(0,r.int)(c.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,o.innerHeight)(i)-(0,o.outerHeight)(a)-a.offsetTop+(0,r.int)(c.paddingBottom)-(0,r.int)(l.marginBottom)}}(0,r.isNum)(s.right)&&(t=Math.min(t,s.right));(0,r.isNum)(s.bottom)&&(n=Math.min(n,s.bottom));(0,r.isNum)(s.left)&&(t=Math.max(t,s.left));(0,r.isNum)(s.top)&&(n=Math.max(n,s.top));return[t,n]},t.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const s=i(n),a=n.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,a,n.props.scale)},t.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var r=n(7056),o=n(1089);function i(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},2411:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]);return n.filter(a)};var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),i=o.getPropertyValue("display");return t?i!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&s(e,!n)}e.exports=t.default},2471:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n(5496)),i=n(7731),s=/<(![a-zA-Z\s]+)>/},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,f=1/0,h=9007199254740991,m=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],b="[object Arguments]",v="[object Array]",x="[object Boolean]",w="[object Date]",S="[object Error]",C="[object Function]",k="[object GeneratorFunction]",M="[object Map]",O="[object Number]",T="[object Object]",P="[object Promise]",D="[object RegExp]",E="[object Set]",j="[object String]",A="[object Symbol]",R="[object WeakMap]",N="[object ArrayBuffer]",I="[object DataView]",L="[object Float32Array]",$="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",_="[object Int32Array]",B="[object Uint8Array]",V="[object Uint8ClampedArray]",W="[object Uint16Array]",H="[object Uint32Array]",U=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,X=RegExp(K.source),J=RegExp(G.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),se=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Me="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",De="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['’]",Ae="["+ke+"]",Re="["+Ee+"]",Ne="["+Me+"]",Ie="\\d+",Le="["+Oe+"]",$e="["+Te+"]",Fe="[^"+ke+Ee+Ie+Oe+Te+Pe+"]",ze="\\ud83c[\\udffb-\\udfff]",_e="[^"+ke+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Pe+"]",He="\\u200d",Ue="(?:"+$e+"|"+Fe+")",qe="(?:"+We+"|"+Fe+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ne+"|"+ze+")"+"?",Xe="["+De+"]?",Je=Xe+Ge+("(?:"+He+"(?:"+[_e,Be,Ve].join("|")+")"+Xe+Ge+")*"),Ze="(?:"+[Le,Be,Ve].join("|")+")"+Je,Qe="(?:"+[_e+Ne+"?",Ne,Be,Ve,Ae].join("|")+")",et=RegExp(je,"g"),tt=RegExp(Ne,"g"),nt=RegExp(ze+"(?="+ze+")|"+Qe+Je,"g"),rt=RegExp([We+"?"+$e+"+"+Ye+"(?="+[Re,We,"$"].join("|")+")",qe+"+"+Ke+"(?="+[Re,We+Ue,"$"].join("|")+")",We+"?"+Ue+"+"+Ye,We+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ze].join("|"),"g"),ot=RegExp("["+He+ke+Me+De+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[L]=lt[$]=lt[F]=lt[z]=lt[_]=lt[B]=lt[V]=lt[W]=lt[H]=!0,lt[b]=lt[v]=lt[N]=lt[x]=lt[I]=lt[w]=lt[S]=lt[C]=lt[M]=lt[O]=lt[T]=lt[D]=lt[E]=lt[j]=lt[R]=!1;var ct={};ct[b]=ct[v]=ct[N]=ct[I]=ct[x]=ct[w]=ct[L]=ct[$]=ct[F]=ct[z]=ct[_]=ct[M]=ct[O]=ct[T]=ct[D]=ct[E]=ct[j]=ct[A]=ct[B]=ct[V]=ct[W]=ct[H]=!0,ct[S]=ct[C]=ct[R]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||ht||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&e&&!e.nodeType&&e,bt=yt&&yt.exports===gt,vt=bt&&ft.process,xt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),wt=xt&&xt.isArrayBuffer,St=xt&&xt.isDate,Ct=xt&&xt.isMap,kt=xt&&xt.isRegExp,Mt=xt&&xt.isSet,Ot=xt&&xt.isTypedArray;function Tt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Pt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Rt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Lt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function $t(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ft(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var _t=Yt("length");function Bt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Vt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Wt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Vt(e,Ut,n)}function Ht(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ut(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:m}function Yt(e){return function(t){return null==t?o:t[e]}}function Kt(e){return function(t){return null==e?o:e[t]}}function Gt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,gn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return It(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Wt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}var on=Kt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sn=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+ut[e]}function ln(e){return ot.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function hn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):_t(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var yn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var bn=function e(t){var n,r=(t=null==t?mt:bn.defaults(mt.Object(),t,bn.pick(mt,st))).Array,ae=t.Date,ke=t.Error,Me=t.Function,Oe=t.Math,Te=t.Object,Pe=t.RegExp,De=t.String,Ee=t.TypeError,je=r.prototype,Ae=Me.prototype,Re=Te.prototype,Ne=t["__core-js_shared__"],Ie=Ae.toString,Le=Re.hasOwnProperty,$e=0,Fe=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ze=Re.toString,_e=Ie.call(Te),Be=mt._,Ve=Pe("^"+Ie.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=bt?t.Buffer:o,He=t.Symbol,Ue=t.Uint8Array,qe=We?We.allocUnsafe:o,Ye=un(Te.getPrototypeOf,Te),Ke=Te.create,Ge=Re.propertyIsEnumerable,Xe=je.splice,Je=He?He.isConcatSpreadable:o,Ze=He?He.iterator:o,Qe=He?He.toStringTag:o,nt=function(){try{var e=fi(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ut=ae&&ae.now!==mt.Date.now&&ae.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,ht=Oe.ceil,gt=Oe.floor,yt=Te.getOwnPropertySymbols,vt=We?We.isBuffer:o,xt=t.isFinite,_t=je.join,Kt=un(Te.keys,Te),vn=Oe.max,xn=Oe.min,wn=ae.now,Sn=t.parseInt,Cn=Oe.random,kn=je.reverse,Mn=fi(t,"DataView"),On=fi(t,"Map"),Tn=fi(t,"Promise"),Pn=fi(t,"Set"),Dn=fi(t,"WeakMap"),En=fi(Te,"create"),jn=Dn&&new Dn,An={},Rn=zi(Mn),Nn=zi(On),In=zi(Tn),Ln=zi(Pn),$n=zi(Dn),Fn=He?He.prototype:o,zn=Fn?Fn.valueOf:o,_n=Fn?Fn.toString:o;function Bn(e){if(na(e)&&!Us(e)&&!(e instanceof Un)){if(e instanceof Hn)return e;if(Le.call(e,"__wrapped__"))return _i(e)}return new Hn(e)}var Vn=function(){function e(){}return function(t){if(!ta(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Wn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Jn(e,t){var n=Us(e),r=!n&&Hs(e),o=!n&&!r&&Gs(e),i=!n&&!r&&!o&&ua(e),s=n||r||o||i,a=s?Jt(e.length,De):[],l=a.length;for(var c in e)!t&&!Le.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||a.push(c);return a}function Zn(e){var t=e.length;return t?e[Gr(0,t-1)]:o}function Qn(e,t){return Li(jo(e),lr(t,0,e.length))}function er(e){return Li(jo(e))}function tr(e,t,n){(n!==o&&!Bs(e[t],n)||n===o&&!(t in e))&&sr(e,t,n)}function nr(e,t,n){var r=e[t];Le.call(e,t)&&Bs(r,n)&&(n!==o||t in e)||sr(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Bs(e[n][0],t))return n;return-1}function or(e,t,n,r){return fr(e,function(e,o,i){t(r,e,n(e),i)}),r}function ir(e,t){return e&&Ao(t,Aa(t),e)}function sr(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:Ta(e,t[n]);return s}function lr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,s){var a,l=1&t,c=2&t,u=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!ta(e))return e;var d=Us(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return jo(e,a)}else{var p=gi(e),f=p==C||p==k;if(Gs(e))return Mo(e,l);if(p==T||p==b||f&&!i){if(a=c||f?{}:bi(e),!l)return c?function(e,t){return Ao(e,mi(e),t)}(e,function(e,t){return e&&Ao(t,Ra(t),e)}(a,e)):function(e,t){return Ao(e,hi(e),t)}(e,ir(a,e))}else{if(!ct[p])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case N:return Oo(e);case x:case w:return new r(+e);case I:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case $:case F:case z:case _:case B:case V:case W:case H:return To(e,n);case M:return new r;case O:case j:return new r(e);case D:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new r;case A:return o=e,zn?Te(zn.call(o)):{}}var o}(e,p,l)}}s||(s=new Xn);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach(function(r){a.add(cr(r,t,n,r,e,s))}):ra(e)&&e.forEach(function(r,o){a.set(o,cr(r,t,n,o,e,s))});var m=d?o:(u?c?si:ii:c?Ra:Aa)(e);return Dt(m||e,function(r,o){m&&(r=e[o=r]),nr(a,o,cr(r,t,n,o,e,s))}),a}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ee(i);return Ai(function(){e.apply(o,n)},t)}function pr(e,t,n,r){var o=-1,i=Rt,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=It(t,Qt(n))),r?(i=Nt,s=!1):t.length>=200&&(i=tn,s=!1,t=new Gn(t));e:for(;++o<a;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,s&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Bn.templateSettings={escape:Z,evaluate:Q,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Wn.prototype,Bn.prototype.constructor=Bn,Hn.prototype=Vn(Wn.prototype),Hn.prototype.constructor=Hn,Un.prototype=Vn(Wn.prototype),Un.prototype.constructor=Un,qn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(En){var n=t[e];return n===s?o:n}return Le.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==o:Le.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===o?s:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Yn.prototype.has=function(e){return rr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(On||Yn),string:new qn}},Kn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return di(this,e).get(e)},Kn.prototype.has=function(e){return di(this,e).has(e)},Kn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,s),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Io(wr),hr=Io(Sr,!0);function mr(e,t){var n=!0;return fr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(l===o?a==a&&!ca(a):n(a,l)))var l=a,c=s}return c}function yr(e,t){var n=[];return fr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function br(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=vi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?br(a,t-1,n,r,o):Lt(o,a):r||(o[o.length]=a)}return o}var vr=Lo(),xr=Lo(!0);function wr(e,t){return e&&vr(e,t,Aa)}function Sr(e,t){return e&&xr(e,t,Aa)}function Cr(e,t){return At(t,function(t){return Zs(e[t])})}function kr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[Fi(t[n++])];return n&&n==r?e:o}function Mr(e,t,n){var r=t(e);return Us(e)?r:Lt(r,n(e))}function Or(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in Te(e)?function(e){var t=Le.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(e){}var i=ze.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return ze.call(e)}(e)}function Tr(e,t){return e>t}function Pr(e,t){return null!=e&&Le.call(e,t)}function Dr(e,t){return null!=e&&t in Te(e)}function Er(e,t,n){for(var i=n?Nt:Rt,s=e[0].length,a=e.length,l=a,c=r(a),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=It(p,Qt(t))),u=xn(p.length,u),c[l]=!n&&(t||s>=120&&p.length>=120)?new Gn(l&&p):o}p=e[0];var f=-1,h=c[0];e:for(;++f<s&&d.length<u;){var m=p[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?tn(h,g):i(d,g,n))){for(l=a;--l;){var y=c[l];if(!(y?tn(y,g):i(e[l],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function jr(e,t,n){var r=null==(e=Di(e,t=wo(t,e)))?e:e[Fi(Ji(t))];return null==r?o:Tt(r,e,n)}function Ar(e){return na(e)&&Or(e)==b}function Rr(e,t,n,r,i){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var a=Us(e),l=Us(t),c=a?v:gi(e),u=l?v:gi(t),d=(c=c==b?T:c)==T,p=(u=u==b?T:u)==T,f=c==u;if(f&&Gs(e)){if(!Gs(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Xn),a||ua(e)?ri(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case x:case w:case O:return Bs(+e,+t);case S:return e.name==t.name&&e.message==t.message;case D:case j:return e==t+"";case M:var a=cn;case E:var l=1&r;if(a||(a=pn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var u=ri(a(e),a(t),r,o,i,s);return s.delete(e),u;case A:if(zn)return zn.call(e)==zn.call(t)}return!1}(e,t,c,n,r,i,s);if(!(1&n)){var h=d&&Le.call(e,"__wrapped__"),m=p&&Le.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,y=m?t.value():t;return s||(s=new Xn),i(g,y,n,r,s)}}if(!f)return!1;return s||(s=new Xn),function(e,t,n,r,i,s){var a=1&n,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!a)return!1;var p=c;for(;p--;){var f=l[p];if(!(a?f in t:Le.call(t,f)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var y=a;for(;++p<c;){var b=e[f=l[p]],v=t[f];if(r)var x=a?r(v,b,f,t,e,s):r(b,v,f,e,t,s);if(!(x===o?b===v||i(b,v,n,r,s):x)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,r,i,s)}(e,t,n,r,Rr,i))}function Nr(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Te(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var c=(l=n[i])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Xn;if(r)var f=r(u,d,c,e,t,p);if(!(f===o?Rr(d,u,3,r,p):f))return!1}}return!0}function Ir(e){return!(!ta(e)||(t=e,Fe&&Fe in t))&&(Zs(e)?Ve:be).test(zi(e));var t}function Lr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Us(e)?Vr(e[0],e[1]):Br(e):fl(e)}function $r(e){if(!Mi(e))return Kt(e);var t=[];for(var n in Te(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Mi(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}function zr(e,t){return e<t}function _r(e,t){var n=-1,o=Ys(e)?r(e.length):[];return fr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function Br(e){var t=pi(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Vr(e,t){return Si(e)&&Oi(t)?Ti(Fi(e),t):function(n){var r=Ta(n,e);return r===o&&r===t?Pa(n,e):Rr(t,r,3)}}function Wr(e,t,n,r,i){e!==t&&vr(t,function(s,a){if(i||(i=new Xn),ta(s))!function(e,t,n,r,i,s,a){var l=Ei(e,n),c=Ei(t,n),u=a.get(c);if(u)return void tr(e,n,u);var d=s?s(l,c,n+"",e,t,a):o,p=d===o;if(p){var f=Us(c),h=!f&&Gs(c),m=!f&&!h&&ua(c);d=c,f||h||m?Us(l)?d=l:Ks(l)?d=jo(l):h?(p=!1,d=Mo(c,!0)):m?(p=!1,d=To(c,!0)):d=[]:ia(c)||Hs(c)?(d=l,Hs(l)?d=ba(l):ta(l)&&!Zs(l)||(d=bi(c))):p=!1}p&&(a.set(c,d),i(d,c,r,s,a),a.delete(c));tr(e,n,d)}(e,t,a,n,Wr,r,i);else{var l=r?r(Ei(e,a),s,a+"",e,t,i):o;l===o&&(l=s),tr(e,a,l)}},Ra)}function Hr(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?It(t,function(e){return Us(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e}):[ol];var r=-1;t=It(t,Qt(ui()));var o=_r(e,function(e,n,o){var i=It(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;for(;++r<s;){var l=Po(o[r],i[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=kr(e,s);n(a,s)&&eo(i,wo(s,e),a)}return i}function Yr(e,t,n,r){var o=r?Ht:Wt,i=-1,s=t.length,a=e;for(e===t&&(t=jo(t)),n&&(a=It(e,Qt(n)));++i<s;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(a,u,l,r))>-1;)a!==e&&Xe.call(a,l,1),Xe.call(e,l,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Xe.call(e,o,1):fo(e,o)}}return e}function Gr(e,t){return e+gt(Cn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return Ri(Pi(e,t,ol),e+"")}function Zr(e){return Zn(Ba(e))}function Qr(e,t){var n=Ba(e);return Li(n,lr(t,0,n.length))}function eo(e,t,n,r){if(!ta(e))return e;for(var i=-1,s=(t=wo(t,e)).length,a=s-1,l=e;null!=l&&++i<s;){var c=Fi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=ta(d)?d:xi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=jn?function(e,t){return jn.set(e,t),e}:ol,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Li(Ba(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function io(e,t){var n;return fr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ca(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return ao(e,t,ol,n)}function ao(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,c=ca(t),u=t===o;i<s;){var d=gt((i+s)/2),p=n(e[d]),f=p!==o,h=null===p,m=p==p,g=ca(p);if(a)var y=r||m;else y=u?m&&(r||f):l?m&&f&&(r||!h):c?m&&f&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);y?i=d+1:s=d}return xn(s,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Bs(a,l)){var l=a;i[o++]=0===s?0:s}}return i}function co(e){return"number"==typeof e?e:ca(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(Us(e))return It(e,uo)+"";if(ca(e))return _n?_n.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Rt,i=e.length,s=!0,a=[],l=a;if(n)s=!1,o=Nt;else if(i>=200){var c=t?null:Jo(e);if(c)return pn(c);s=!1,o=tn,l=new Gn}else l=t?[]:a;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,s&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),a.push(u)}else o(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function fo(e,t){return null==(e=Di(e,t=wo(t,e)))||delete e[Fi(Ji(t))]}function ho(e,t,n,r){return eo(e,t,n(kr(e,t)),r)}function mo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Un&&(n=n.value()),$t(t,function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))},n)}function yo(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],l=-1;++l<o;)l!=i&&(s[i]=pr(s[i]||a,e[l],t,n));return po(br(s,1),t,n)}function bo(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var l=r<s?t[r]:o;n(a,e[r],l)}return a}function vo(e){return Ks(e)?e:[]}function xo(e){return"function"==typeof e?e:ol}function wo(e,t){return Us(e)?e:Si(e,t)?[e]:$i(va(e))}var So=Jr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var ko=ot||function(e){return mt.clearTimeout(e)};function Mo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function To(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=ca(e),a=t!==o,l=null===t,c=t==t,u=ca(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!i)return 1;if(!r&&!s&&!u&&e<t||u&&n&&i&&!r&&!s||l&&n&&i||!a&&i||!c)return-1}return 0}function Do(e,t,n,o){for(var i=-1,s=e.length,a=n.length,l=-1,c=t.length,u=vn(s-a,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<a;)(p||i<s)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Eo(e,t,n,o){for(var i=-1,s=e.length,a=-1,l=n.length,c=-1,u=t.length,d=vn(s-l,0),p=r(d+u),f=!o;++i<d;)p[i]=e[i];for(var h=i;++c<u;)p[h+c]=t[c];for(;++a<l;)(f||i<s)&&(p[h+n[a]]=e[i++]);return p}function jo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Ao(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?sr(n,l,c):nr(n,l,c)}return n}function Ro(e,t){return function(n,r){var o=Us(n)?Pt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function No(e){return Jr(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&wi(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Te(t);++r<i;){var l=n[r];l&&e(t,l,r,s)}return t})}function Io(e,t){return function(n,r){if(null==n)return n;if(!Ys(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Te(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Te(t),s=r(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===n(i[l],l,i))break}return t}}function $o(e){return function(t){var n=ln(t=va(t))?mn(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function Fo(e){return function(t){return $t(Za(Ha(t).replace(et,"")),e,"")}}function zo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function _o(e){return function(t,n,r){var i=Te(t);if(!Ys(t)){var s=ui(n,3);t=Aa(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function Bo(e){return oi(function(t){var n=t.length,r=n,s=Hn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ee(i);if(s&&!l&&"wrapper"==li(a))var l=new Hn([],!0)}for(r=l?r:n;++r<n;){var c=li(a=t[r]),u="wrapper"==c?ai(a):o;l=u&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==a.length&&Ci(a)?l[c]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Us(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function Vo(e,t,n,i,s,a,l,c,u,p){var f=t&d,h=1&t,m=2&t,g=24&t,y=512&t,b=m?o:zo(e);return function d(){for(var v=arguments.length,x=r(v),w=v;w--;)x[w]=arguments[w];if(g)var S=ci(d),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,S);if(i&&(x=Do(x,i,s,g)),a&&(x=Eo(x,a,l,g)),v-=C,g&&v<p){var k=dn(x,S);return Go(e,t,Vo,d.placeholder,n,x,k,c,u,p-v)}var M=h?n:this,O=m?M[e]:e;return v=x.length,c?x=function(e,t){var n=e.length,r=xn(t.length,n),i=jo(e);for(;r--;){var s=t[r];e[r]=xi(s,n)?i[s]:o}return e}(x,c):y&&v>1&&x.reverse(),f&&u<v&&(x.length=u),this&&this!==mt&&this instanceof d&&(O=b||zo(O)),O.apply(M,x)}}function Wo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Ho(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Uo(e){return oi(function(t){return t=It(t,Qt(ui())),Jr(function(n){var r=this;return e(t,function(e){return Tt(e,r,n)})})})}function qo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,ht(e/hn(t)));return ln(t)?Co(mn(r),0,e).join(""):r.slice(0,e)}function Yo(e){return function(t,n,i){return i&&"number"!=typeof i&&wi(t,n,i)&&(n=i=o),t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n,o){for(var i=-1,s=vn(ht((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:ha(i),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ya(t),n=ya(n)),e(t,n)}}function Go(e,t,n,r,i,s,a,l,d,p){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var h=[e,t,i,f?s:o,f?a:o,f?o:s,f?o:a,l,d,p],m=n.apply(o,h);return Ci(e)&&ji(m,h),m.placeholder=r,Ni(m,e,t)}function Xo(e){var t=Oe[e];return function(e,n){if(e=ya(e),(n=null==n?0:xn(ma(n),292))&&xt(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Jo=Pn&&1/pn(new Pn([,-0]))[1]==f?function(e){return new Pn(e)}:cl;function Zo(e){return function(t){var n=gi(t);return n==M?cn(t):n==E?fn(t):function(e,t){return It(t,function(t){return[t,e[t]]})}(t,e(t))}}function Qo(e,t,n,s,f,h,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Ee(i);var b=s?s.length:0;if(b||(t&=-97,s=f=o),m=m===o?m:vn(ma(m),0),g=g===o?g:ma(g),b-=f?f.length:0,t&u){var v=s,x=f;s=f=o}var w=y?o:ai(e),S=[e,t,n,s,f,v,x,h,m,g];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Do(c,l,t[4]):l,e[4]=c?dn(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Eo(c,l,t[6]):l,e[6]=c?dn(e[5],a):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,w),e=S[0],t=S[1],n=S[2],s=S[3],f=S[4],!(g=S[9]=S[9]===o?y?0:e.length:vn(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==l?function(e,t,n){var i=zo(e);return function s(){for(var a=arguments.length,l=r(a),c=a,u=ci(s);c--;)l[c]=arguments[c];var d=a<3&&l[0]!==u&&l[a-1]!==u?[]:dn(l,u);return(a-=d.length)<n?Go(e,t,Vo,s.placeholder,o,l,d,o,o,n-a):Tt(this&&this!==mt&&this instanceof s?i:e,this,l)}}(e,t,g):t!=c&&33!=t||f.length?Vo.apply(o,S):function(e,t,n,o){var i=1&t,s=zo(e);return function t(){for(var a=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==mt&&this instanceof t?s:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++a];return Tt(p,i?n:this,d)}}(e,t,n,s);else var C=function(e,t,n){var r=1&t,o=zo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ni((w?to:ji)(C,S),e,t)}function ei(e,t,n,r){return e===o||Bs(e,Re[n])&&!Le.call(r,n)?t:e}function ti(e,t,n,r,i,s){return ta(e)&&ta(t)&&(s.set(t,e),Wr(e,t,o,ti,s),s.delete(t)),e}function ni(e){return ia(e)?o:e}function ri(e,t,n,r,i,s){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&n?new Gn:o;for(s.set(e,t),s.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var y=a?r(g,m,p,t,e,s):r(m,g,p,e,t,s);if(y!==o){if(y)continue;f=!1;break}if(h){if(!zt(t,function(e,t){if(!tn(h,t)&&(m===e||i(m,e,n,r,s)))return h.push(t)})){f=!1;break}}else if(m!==g&&!i(m,g,n,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function oi(e){return Ri(Pi(e,o,qi),e+"")}function ii(e){return Mr(e,Aa,hi)}function si(e){return Mr(e,Ra,mi)}var ai=jn?function(e){return jn.get(e)}:cl;function li(e){for(var t=e.name+"",n=An[t],r=Le.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Le.call(Bn,"placeholder")?Bn:e).placeholder}function ui(){var e=Bn.iteratee||il;return e=e===il?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Aa(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ir(n)?n:o}var hi=yt?function(e){return null==e?[]:(e=Te(e),At(yt(e),function(t){return Ge.call(e,t)}))}:gl,mi=yt?function(e){for(var t=[];e;)Lt(t,hi(e)),e=Ye(e);return t}:gl,gi=Or;function yi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var s=Fi(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ea(o)&&xi(s,o)&&(Us(e)||Hs(e))}function bi(e){return"function"!=typeof e.constructor||Mi(e)?{}:Vn(Ye(e))}function vi(e){return Us(e)||Hs(e)||!!(Je&&e&&e[Je])}function xi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?Ys(n)&&xi(t,n.length):"string"==r&&t in n)&&Bs(n[t],e)}function Si(e,t){if(Us(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Te(t))}function Ci(e){var t=li(e),n=Bn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(Mn&&gi(new Mn(new ArrayBuffer(1)))!=I||On&&gi(new On)!=M||Tn&&gi(Tn.resolve())!=P||Pn&&gi(new Pn)!=E||Dn&&gi(new Dn)!=R)&&(gi=function(e){var t=Or(e),n=t==T?e.constructor:o,r=n?zi(n):"";if(r)switch(r){case Rn:return I;case Nn:return M;case In:return P;case Ln:return E;case $n:return R}return t});var ki=Ne?Zs:yl;function Mi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Oi(e){return e==e&&!ta(e)}function Ti(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Te(n)))}}function Pi(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=vn(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(a),Tt(e,this,l)}}function Di(e,t){return t.length<2?e:kr(e,oo(t,0,-1))}function Ei(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ji=Ii(to),Ai=ft||function(e,t){return mt.setTimeout(e,t)},Ri=Ii(no);function Ni(e,t,n){var r=t+"";return Ri(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Dt(y,function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Ii(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=Gr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var $i=function(e){var t=Is(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)}),t});function Fi(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zi(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _i(e){if(e instanceof Un)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=jo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Jr(function(e,t){return Ks(e)?pr(e,br(t,1,Ks,!0)):[]}),Vi=Jr(function(e,t){var n=Ji(t);return Ks(n)&&(n=o),Ks(e)?pr(e,br(t,1,Ks,!0),ui(n,2)):[]}),Wi=Jr(function(e,t){var n=Ji(t);return Ks(n)&&(n=o),Ks(e)?pr(e,br(t,1,Ks,!0),o,n):[]});function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ma(n);return o<0&&(o=vn(r+o,0)),Vt(e,ui(t,3),o)}function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ma(n),i=n<0?vn(r+i,0):xn(i,r-1)),Vt(e,ui(t,3),i,!0)}function qi(e){return(null==e?0:e.length)?br(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Ki=Jr(function(e){var t=It(e,vo);return t.length&&t[0]===e[0]?Er(t):[]}),Gi=Jr(function(e){var t=Ji(e),n=It(e,vo);return t===Ji(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Er(n,ui(t,2)):[]}),Xi=Jr(function(e){var t=Ji(e),n=It(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Er(n,o,t):[]});function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Jr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var es=oi(function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Kr(e,It(t,function(e){return xi(e,n)?+e:e}).sort(Po)),r});function ts(e){return null==e?e:kn.call(e)}var ns=Jr(function(e){return po(br(e,1,Ks,!0))}),rs=Jr(function(e){var t=Ji(e);return Ks(t)&&(t=o),po(br(e,1,Ks,!0),ui(t,2))}),os=Jr(function(e){var t=Ji(e);return t="function"==typeof t?t:o,po(br(e,1,Ks,!0),o,t)});function is(e){if(!e||!e.length)return[];var t=0;return e=At(e,function(e){if(Ks(e))return t=vn(e.length,t),!0}),Jt(t,function(t){return It(e,Yt(t))})}function ss(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:It(n,function(e){return Tt(t,o,e)})}var as=Jr(function(e,t){return Ks(e)?pr(e,t):[]}),ls=Jr(function(e){return yo(At(e,Ks))}),cs=Jr(function(e){var t=Ji(e);return Ks(t)&&(t=o),yo(At(e,Ks),ui(t,2))}),us=Jr(function(e){var t=Ji(e);return t="function"==typeof t?t:o,yo(At(e,Ks),o,t)}),ds=Jr(is);var ps=Jr(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ss(e,n)});function fs(e){var t=Bn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ms=oi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:o}),new Hn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var gs=Ro(function(e,t,n){Le.call(e,n)?++e[n]:sr(e,n,1)});var ys=_o(Hi),bs=_o(Ui);function vs(e,t){return(Us(e)?Dt:fr)(e,ui(t,3))}function xs(e,t){return(Us(e)?Et:hr)(e,ui(t,3))}var ws=Ro(function(e,t,n){Le.call(e,n)?e[n].push(t):sr(e,n,[t])});var Ss=Jr(function(e,t,n){var o=-1,i="function"==typeof t,s=Ys(e)?r(e.length):[];return fr(e,function(e){s[++o]=i?Tt(t,e,n):jr(e,t,n)}),s}),Cs=Ro(function(e,t,n){sr(e,n,t)});function ks(e,t){return(Us(e)?It:_r)(e,ui(t,3))}var Ms=Ro(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Os=Jr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,br(t,1),[])}),Ts=ut||function(){return mt.Date.now()};function Ps(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Ds(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=ma(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Es=Jr(function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Es));r|=c}return Qo(e,r,t,n,o)}),js=Jr(function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(js));r|=c}return Qo(t,r,e,n,o)});function As(e,t,n){var r,s,a,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ee(i);function m(t){var n=r,i=s;return r=s=o,d=t,l=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);c=Ai(y,function(e){var n=t-(e-u);return f?xn(n,a-(e-d)):n}(e))}function b(e){return c=o,h&&r?m(e):(r=s=o,l)}function v(){var e=Ts(),n=g(e);if(r=arguments,s=this,u=e,n){if(c===o)return function(e){return d=e,c=Ai(y,t),p?m(e):l}(u);if(f)return ko(c),c=Ai(y,t),m(u)}return c===o&&(c=Ai(y,t)),l}return t=ya(t)||0,ta(n)&&(p=!!n.leading,a=(f="maxWait"in n)?vn(ya(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),v.cancel=function(){c!==o&&ko(c),d=0,r=u=s=c=o},v.flush=function(){return c===o?l:b(Ts())},v}var Rs=Jr(function(e,t){return dr(e,1,t)}),Ns=Jr(function(e,t,n){return dr(e,ya(t)||0,n)});function Is(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Is.Cache||Kn),n}function Ls(e){if("function"!=typeof e)throw new Ee(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Is.Cache=Kn;var $s=So(function(e,t){var n=(t=1==t.length&&Us(t[0])?It(t[0],Qt(ui())):It(br(t,1),Qt(ui()))).length;return Jr(function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Tt(e,this,r)})}),Fs=Jr(function(e,t){var n=dn(t,ci(Fs));return Qo(e,c,o,t,n)}),zs=Jr(function(e,t){var n=dn(t,ci(zs));return Qo(e,u,o,t,n)}),_s=oi(function(e,t){return Qo(e,p,o,o,o,t)});function Bs(e,t){return e===t||e!=e&&t!=t}var Vs=Ko(Tr),Ws=Ko(function(e,t){return e>=t}),Hs=Ar(function(){return arguments}())?Ar:function(e){return na(e)&&Le.call(e,"callee")&&!Ge.call(e,"callee")},Us=r.isArray,qs=wt?Qt(wt):function(e){return na(e)&&Or(e)==N};function Ys(e){return null!=e&&ea(e.length)&&!Zs(e)}function Ks(e){return na(e)&&Ys(e)}var Gs=vt||yl,Xs=St?Qt(St):function(e){return na(e)&&Or(e)==w};function Js(e){if(!na(e))return!1;var t=Or(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Zs(e){if(!ta(e))return!1;var t=Or(e);return t==C||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=Ct?Qt(Ct):function(e){return na(e)&&gi(e)==M};function oa(e){return"number"==typeof e||na(e)&&Or(e)==O}function ia(e){if(!na(e)||Or(e)!=T)return!1;var t=Ye(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==_e}var sa=kt?Qt(kt):function(e){return na(e)&&Or(e)==D};var aa=Mt?Qt(Mt):function(e){return na(e)&&gi(e)==E};function la(e){return"string"==typeof e||!Us(e)&&na(e)&&Or(e)==j}function ca(e){return"symbol"==typeof e||na(e)&&Or(e)==A}var ua=Ot?Qt(Ot):function(e){return na(e)&&ea(e.length)&&!!lt[Or(e)]};var da=Ko(zr),pa=Ko(function(e,t){return e<=t});function fa(e){if(!e)return[];if(Ys(e))return la(e)?mn(e):jo(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=gi(e);return(t==M?cn:t==E?pn:Ba)(e)}function ha(e){return e?(e=ya(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?lr(ma(e),0,g):0}function ya(e){if("number"==typeof e)return e;if(ca(e))return m;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ye.test(e);return n||ve.test(e)?pt(e.slice(2),n?2:8):ge.test(e)?m:+e}function ba(e){return Ao(e,Ra(e))}function va(e){return null==e?"":uo(e)}var xa=No(function(e,t){if(Mi(t)||Ys(t))Ao(t,Aa(t),e);else for(var n in t)Le.call(t,n)&&nr(e,n,t[n])}),wa=No(function(e,t){Ao(t,Ra(t),e)}),Sa=No(function(e,t,n,r){Ao(t,Ra(t),e,r)}),Ca=No(function(e,t,n,r){Ao(t,Aa(t),e,r)}),ka=oi(ar);var Ma=Jr(function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=Ra(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===o||Bs(d,Re[u])&&!Le.call(e,u))&&(e[u]=s[u])}return e}),Oa=Jr(function(e){return e.push(o,ti),Tt(Ia,o,e)});function Ta(e,t,n){var r=null==e?o:kr(e,t);return r===o?n:r}function Pa(e,t){return null!=e&&yi(e,t,Dr)}var Da=Wo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=n},tl(ol)),Ea=Wo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]},ui),ja=Jr(jr);function Aa(e){return Ys(e)?Jn(e):$r(e)}function Ra(e){return Ys(e)?Jn(e,!0):Fr(e)}var Na=No(function(e,t,n){Wr(e,t,n)}),Ia=No(function(e,t,n,r){Wr(e,t,n,r)}),La=oi(function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,function(t){return t=wo(t,e),r||(r=t.length>1),t}),Ao(e,si(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)fo(n,t[o]);return n});var $a=oi(function(e,t){return null==e?{}:function(e,t){return qr(e,t,function(t,n){return Pa(e,n)})}(e,t)});function Fa(e,t){if(null==e)return{};var n=It(si(e),function(e){return[e]});return t=ui(t),qr(e,n,function(e,n){return t(e,n[0])})}var za=Zo(Aa),_a=Zo(Ra);function Ba(e){return null==e?[]:en(e,Aa(e))}var Va=Fo(function(e,t,n){return t=t.toLowerCase(),e+(n?Wa(t):t)});function Wa(e){return Ja(va(e).toLowerCase())}function Ha(e){return(e=va(e))&&e.replace(we,on).replace(tt,"")}var Ua=Fo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qa=Fo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ya=$o("toLowerCase");var Ka=Fo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Ga=Fo(function(e,t,n){return e+(n?" ":"")+Ja(t)});var Xa=Fo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ja=$o("toUpperCase");function Za(e,t,n){return e=va(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qa=Jr(function(e,t){try{return Tt(e,o,t)}catch(e){return Js(e)?e:new ke(e)}}),el=oi(function(e,t){return Dt(t,function(t){t=Fi(t),sr(e,t,Es(e[t],e))}),e});function tl(e){return function(){return e}}var nl=Bo(),rl=Bo(!0);function ol(e){return e}function il(e){return Lr("function"==typeof e?e:cr(e,1))}var sl=Jr(function(e,t){return function(n){return jr(n,e,t)}}),al=Jr(function(e,t){return function(n){return jr(e,n,t)}});function ll(e,t,n){var r=Aa(t),o=Cr(t,r);null!=n||ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,Aa(t)));var i=!(ta(n)&&"chain"in n&&!n.chain),s=Zs(e);return Dt(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=jo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})}),e}function cl(){}var ul=Uo(It),dl=Uo(jt),pl=Uo(zt);function fl(e){return Si(e)?Yt(Fi(e)):function(e){return function(t){return kr(t,e)}}(e)}var hl=Yo(),ml=Yo(!0);function gl(){return[]}function yl(){return!1}var bl=Ho(function(e,t){return e+t},0),vl=Xo("ceil"),xl=Ho(function(e,t){return e/t},1),wl=Xo("floor");var Sl,Cl=Ho(function(e,t){return e*t},1),kl=Xo("round"),Ml=Ho(function(e,t){return e-t},0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ps,Bn.assign=xa,Bn.assignIn=wa,Bn.assignInWith=Sa,Bn.assignWith=Ca,Bn.at=ka,Bn.before=Ds,Bn.bind=Es,Bn.bindAll=el,Bn.bindKey=js,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Us(e)?e:[e]},Bn.chain=fs,Bn.chunk=function(e,t,n){t=(n?wi(e,t,n):t===o)?1:vn(ma(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,l=r(ht(i/t));s<i;)l[a++]=oo(e,s,s+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Lt(Us(n)?jo(n):[n],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?It(e,function(e){if("function"!=typeof e[1])throw new Ee(i);return[n(e[0]),e[1]]}):[],Jr(function(n){for(var r=-1;++r<t;){var o=e[r];if(Tt(o[0],this,n))return Tt(o[1],this,n)}})},Bn.conforms=function(e){return function(e){var t=Aa(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Bn.constant=tl,Bn.countBy=gs,Bn.create=function(e,t){var n=Vn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Qo(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=As,Bn.defaults=Ma,Bn.defaultsDeep=Oa,Bn.defer=Rs,Bn.delay=Ns,Bn.difference=Bi,Bn.differenceBy=Vi,Bn.differenceWith=Wi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:ma(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:ma(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ma(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ma(r))<0&&(r+=i),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Us(e)?At:yr)(e,ui(t,3))},Bn.flatMap=function(e,t){return br(ks(e,t),1)},Bn.flatMapDeep=function(e,t){return br(ks(e,t),f)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:ma(n),br(ks(e,t),n)},Bn.flatten=qi,Bn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,f):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:ma(t)):[]},Bn.flip=function(e){return Qo(e,512)},Bn.flow=nl,Bn.flowRight=rl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Cr(e,Aa(e))},Bn.functionsIn=function(e){return null==e?[]:Cr(e,Ra(e))},Bn.groupBy=ws,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=Ki,Bn.intersectionBy=Gi,Bn.intersectionWith=Xi,Bn.invert=Da,Bn.invertBy=Ea,Bn.invokeMap=Ss,Bn.iteratee=il,Bn.keyBy=Cs,Bn.keys=Aa,Bn.keysIn=Ra,Bn.map=ks,Bn.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){sr(n,t(e,r,o),e)}),n},Bn.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){sr(n,r,t(e,r,o))}),n},Bn.matches=function(e){return Br(cr(e,1))},Bn.matchesProperty=function(e,t){return Vr(e,cr(t,1))},Bn.memoize=Is,Bn.merge=Na,Bn.mergeWith=Ia,Bn.method=sl,Bn.methodOf=al,Bn.mixin=ll,Bn.negate=Ls,Bn.nthArg=function(e){return e=ma(e),Jr(function(t){return Hr(t,e)})},Bn.omit=La,Bn.omitBy=function(e,t){return Fa(e,Ls(ui(t)))},Bn.once=function(e){return Ds(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Us(t)||(t=null==t?[]:[t]),Us(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=ul,Bn.overArgs=$s,Bn.overEvery=dl,Bn.overSome=pl,Bn.partial=Fs,Bn.partialRight=zs,Bn.partition=Ms,Bn.pick=$a,Bn.pickBy=Fa,Bn.property=fl,Bn.propertyOf=function(e){return function(t){return null==e?o:kr(e,t)}},Bn.pull=Zi,Bn.pullAll=Qi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ui(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,o,n):e},Bn.pullAt=es,Bn.range=hl,Bn.rangeRight=ml,Bn.rearg=_s,Bn.reject=function(e,t){return(Us(e)?At:yr)(e,Ls(ui(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return Kr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Ee(i);return Jr(e,t=t===o?t:ma(t))},Bn.reverse=ts,Bn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:ma(t),(Us(e)?Qn:Qr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Us(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:ma(t),n=n===o?r:ma(n)),oo(e,t,n)):[]},Bn.sortBy=Os,Bn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=uo(t))&&ln(e)?Co(mn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ee(i);return t=null==t?0:vn(ma(t),0),Jr(function(n){var r=n[t],o=Co(n,0,t);return r&&Lt(o,r),Tt(e,this,o)})},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:ma(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:ma(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?mo(e,ui(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ee(i);return ta(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),As(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=hs,Bn.toArray=fa,Bn.toPairs=za,Bn.toPairsIn=_a,Bn.toPath=function(e){return Us(e)?It(e,Fi):ca(e)?[e]:jo($i(va(e)))},Bn.toPlainObject=ba,Bn.transform=function(e,t,n){var r=Us(e),o=r||Gs(e)||ua(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ta(e)&&Zs(i)?Vn(Ye(e)):{}}return(o?Dt:wr)(e,function(e,r,o){return t(n,e,r,o)}),n},Bn.unary=function(e){return Ps(e,1)},Bn.union=ns,Bn.unionBy=rs,Bn.unionWith=os,Bn.uniq=function(e){return e&&e.length?po(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},Bn.unset=function(e,t){return null==e||fo(e,t)},Bn.unzip=is,Bn.unzipWith=ss,Bn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,xo(n),r)},Bn.values=Ba,Bn.valuesIn=function(e){return null==e?[]:en(e,Ra(e))},Bn.without=as,Bn.words=Za,Bn.wrap=function(e,t){return Fs(xo(t),e)},Bn.xor=ls,Bn.xorBy=cs,Bn.xorWith=us,Bn.zip=ds,Bn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Bn.zipWith=ps,Bn.entries=za,Bn.entriesIn=_a,Bn.extend=wa,Bn.extendWith=Sa,ll(Bn,Bn),Bn.add=bl,Bn.attempt=Qa,Bn.camelCase=Va,Bn.capitalize=Wa,Bn.ceil=vl,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ya(n))==n?n:0),t!==o&&(t=(t=ya(t))==t?t:0),lr(ya(e),t,n)},Bn.clone=function(e){return cr(e,4)},Bn.cloneDeep=function(e){return cr(e,5)},Bn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Aa(t))},Bn.deburr=Ha,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=xl,Bn.endsWith=function(e,t,n){e=va(e),t=uo(t);var r=e.length,i=n=n===o?r:lr(ma(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Bs,Bn.escape=function(e){return(e=va(e))&&J.test(e)?e.replace(G,sn):e},Bn.escapeRegExp=function(e){return(e=va(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Us(e)?jt:mr;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.find=ys,Bn.findIndex=Hi,Bn.findKey=function(e,t){return Bt(e,ui(t,3),wr)},Bn.findLast=bs,Bn.findLastIndex=Ui,Bn.findLastKey=function(e,t){return Bt(e,ui(t,3),Sr)},Bn.floor=wl,Bn.forEach=vs,Bn.forEachRight=xs,Bn.forIn=function(e,t){return null==e?e:vr(e,ui(t,3),Ra)},Bn.forInRight=function(e,t){return null==e?e:xr(e,ui(t,3),Ra)},Bn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},Bn.forOwnRight=function(e,t){return e&&Sr(e,ui(t,3))},Bn.get=Ta,Bn.gt=Vs,Bn.gte=Ws,Bn.has=function(e,t){return null!=e&&yi(e,t,Pr)},Bn.hasIn=Pa,Bn.head=Yi,Bn.identity=ol,Bn.includes=function(e,t,n,r){e=Ys(e)?e:Ba(e),n=n&&!r?ma(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),la(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ma(n);return o<0&&(o=vn(r+o,0)),Wt(e,t,o)},Bn.inRange=function(e,t,n){return t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n){return e>=xn(t,n)&&e<vn(t,n)}(e=ya(e),t,n)},Bn.invoke=ja,Bn.isArguments=Hs,Bn.isArray=Us,Bn.isArrayBuffer=qs,Bn.isArrayLike=Ys,Bn.isArrayLikeObject=Ks,Bn.isBoolean=function(e){return!0===e||!1===e||na(e)&&Or(e)==x},Bn.isBuffer=Gs,Bn.isDate=Xs,Bn.isElement=function(e){return na(e)&&1===e.nodeType&&!ia(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ys(e)&&(Us(e)||"string"==typeof e||"function"==typeof e.splice||Gs(e)||ua(e)||Hs(e)))return!e.length;var t=gi(e);if(t==M||t==E)return!e.size;if(Mi(e))return!$r(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Rr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Rr(e,t,o,n):!!r},Bn.isError=Js,Bn.isFinite=function(e){return"number"==typeof e&&xt(e)},Bn.isFunction=Zs,Bn.isInteger=Qs,Bn.isLength=ea,Bn.isMap=ra,Bn.isMatch=function(e,t){return e===t||Nr(e,t,pi(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Nr(e,t,pi(t),n)},Bn.isNaN=function(e){return oa(e)&&e!=+e},Bn.isNative=function(e){if(ki(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=oa,Bn.isObject=ta,Bn.isObjectLike=na,Bn.isPlainObject=ia,Bn.isRegExp=sa,Bn.isSafeInteger=function(e){return Qs(e)&&e>=-9007199254740991&&e<=h},Bn.isSet=aa,Bn.isString=la,Bn.isSymbol=ca,Bn.isTypedArray=ua,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return na(e)&&gi(e)==R},Bn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==Or(e)},Bn.join=function(e,t){return null==e?"":_t.call(e,t)},Bn.kebabCase=Ua,Bn.last=Ji,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ma(n))<0?vn(r+i,0):xn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Vt(e,Ut,i,!0)},Bn.lowerCase=qa,Bn.lowerFirst=Ya,Bn.lt=da,Bn.lte=pa,Bn.max=function(e){return e&&e.length?gr(e,ol,Tr):o},Bn.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Tr):o},Bn.mean=function(e){return qt(e,ol)},Bn.meanBy=function(e,t){return qt(e,ui(t,2))},Bn.min=function(e){return e&&e.length?gr(e,ol,zr):o},Bn.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),zr):o},Bn.stubArray=gl,Bn.stubFalse=yl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Cl,Bn.nth=function(e,t){return e&&e.length?Hr(e,ma(t)):o},Bn.noConflict=function(){return mt._===this&&(mt._=Be),this},Bn.noop=cl,Bn.now=Ts,Bn.pad=function(e,t,n){e=va(e);var r=(t=ma(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(gt(o),n)+e+qo(ht(o),n)},Bn.padEnd=function(e,t,n){e=va(e);var r=(t=ma(t))?hn(e):0;return t&&r<t?e+qo(t-r,n):e},Bn.padStart=function(e,t,n){e=va(e);var r=(t=ma(t))?hn(e):0;return t&&r<t?qo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(va(e).replace(se,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ha(e),t===o?(t=e,e=0):t=ha(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Gr(e,t)},Bn.reduce=function(e,t,n){var r=Us(e)?$t:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Bn.reduceRight=function(e,t,n){var r=Us(e)?Ft:Gt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},Bn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:ma(t),Xr(va(e),t)},Bn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[Fi(t[r])];s===o&&(r=i,s=n),e=Zs(s)?s.call(e):s}return e},Bn.round=kl,Bn.runInContext=e,Bn.sample=function(e){return(Us(e)?Zn:Zr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ys(e))return la(e)?hn(e):e.length;var t=gi(e);return t==M||t==E?e.size:$r(e).length},Bn.snakeCase=Ka,Bn.some=function(e,t,n){var r=Us(e)?zt:io;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.sortedIndex=function(e,t){return so(e,t)},Bn.sortedIndexBy=function(e,t,n){return ao(e,t,ui(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Bs(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return so(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return ao(e,t,ui(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if(Bs(e[n],t))return n}return-1},Bn.startCase=Ga,Bn.startsWith=function(e,t,n){return e=va(e),n=null==n?0:lr(ma(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Bn.subtract=Ml,Bn.sum=function(e){return e&&e.length?Xt(e,ol):0},Bn.sumBy=function(e,t){return e&&e.length?Xt(e,ui(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&wi(e,t,n)&&(t=o),e=va(e),t=Sa({},t,r,ei);var i,s,a=Sa({},t.imports,r.imports,ei),l=Aa(a),c=en(a,l),u=0,d=t.interpolate||Se,p="__p += '",f=Pe((t.escape||Se).source+"|"+d.source+"|"+(d===ee?he:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,function(t,n,r,o,a,l){return r||(r=o),p+=e.slice(u,l).replace(Ce,an),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),p+="';\n";var m=Le.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(U,""):p).replace(q,"$1").replace(Y,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Qa(function(){return Me(l,h+"return "+p).apply(o,c)});if(g.source=p,Js(g))throw g;return g},Bn.times=function(e,t){if((e=ma(e))<1||e>h)return[];var n=g,r=xn(e,g);t=ui(t),e-=g;for(var o=Jt(r,t);++n<e;)t(n);return o},Bn.toFinite=ha,Bn.toInteger=ma,Bn.toLength=ga,Bn.toLower=function(e){return va(e).toLowerCase()},Bn.toNumber=ya,Bn.toSafeInteger=function(e){return e?lr(ma(e),-9007199254740991,h):0===e?e:0},Bn.toString=va,Bn.toUpper=function(e){return va(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=va(e))&&(n||t===o))return Zt(e);if(!e||!(t=uo(t)))return e;var r=mn(e),i=mn(t);return Co(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=uo(t)))return e;var r=mn(e);return Co(r,0,rn(r,mn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=va(e))&&(n||t===o))return e.replace(se,"");if(!e||!(t=uo(t)))return e;var r=mn(e);return Co(r,nn(r,mn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ta(t)){var i="separator"in t?t.separator:i;n="length"in t?ma(t.length):n,r="omission"in t?uo(t.omission):r}var s=(e=va(e)).length;if(ln(e)){var a=mn(e);s=a.length}if(n>=s)return e;var l=n-hn(r);if(l<1)return r;var c=a?Co(a,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(a&&(l+=c.length-l),sa(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Pe(i.source,va(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(uo(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},Bn.unescape=function(e){return(e=va(e))&&X.test(e)?e.replace(K,yn):e},Bn.uniqueId=function(e){var t=++$e;return va(e)+t},Bn.upperCase=Xa,Bn.upperFirst=Ja,Bn.each=vs,Bn.eachRight=xs,Bn.first=Yi,ll(Bn,(Sl={},wr(Bn,function(e,t){Le.call(Bn.prototype,t)||(Sl[t]=e)}),Sl),{chain:!1}),Bn.VERSION="4.17.21",Dt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bn[e].placeholder=Bn}),Dt(["drop","take"],function(e,t){Un.prototype[e]=function(n){n=n===o?1:vn(ma(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Dt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Dt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}}),Dt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}}),Un.prototype.compact=function(){return this.filter(ol)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Jr(function(e,t){return"function"==typeof e?new Un(this):this.map(function(n){return jr(n,e,t)})}),Un.prototype.reject=function(e){return this.filter(Ls(ui(e)))},Un.prototype.slice=function(e,t){e=ma(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ma(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},wr(Un.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Un,c=a[0],u=l||Us(t),d=function(e){var t=i.apply(Bn,Lt([e],a));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=l&&!f;if(!s&&u){t=m?t:new Un(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:o}),new Hn(g,p)}return h&&m?e.apply(this,a):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})}),Dt(["pop","push","shift","sort","splice","unshift"],function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Us(o)?o:[],e)}return this[n](function(n){return t.apply(Us(n)?n:[],e)})}}),wr(Un.prototype,function(e,t){var n=Bn[t];if(n){var r=n.name+"";Le.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}}),An[Vo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=jo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=jo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jo(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Us(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=xn(t,e+s);break;case"takeRight":e=vn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,f=xn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return go(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var m=-1,g=e[c+=t];++m<d;){var y=u[m],b=y.iteratee,v=y.type,x=b(g);if(2==v)g=x;else if(!x){if(1==v)continue e;break e}}h[p++]=g}return h},Bn.prototype.at=ms,Bn.prototype.chain=function(){return fs(this)},Bn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=_i(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:o}),new Hn(t,this.__chain__)}return this.thru(ts)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();mt._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},2694:(e,t,n)=>{var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3072:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},3404:(e,t,n)=>{e.exports=n(3072)},3514:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const t=window.document?.documentElement?.style;if(!t)return"";if(e in t)return"";for(let r=0;r<n.length;r++)if(o(e,n[r])in t)return n[r];return""}function o(e,t){return t?`${t}${function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)}`:e}t.default=r()},3826:function(e){e.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var s=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=s.utcOffset;s.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],s=60*+o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r,a=this;if(o)return a.$offset=s,a.$u=0===r,a;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),o=i(e).local();return p.call(r,o,t,n)}}}()},4146:(e,t,n)=>{var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||r&&r[y]||m&&m[y]||a&&a[y])){var b=p(n,y);try{c(t,y,b)}catch(e){}}}}return t}},4210:(e,t,n)=>{function r(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,s);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)});o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:a,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===l?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},4353:function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",a="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,s=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:a,D:p,h:s,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",x={};x[v]=g;var w="$isDayjsObject",S=function(e){return e instanceof O||!(!e||!e[w])},C=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var s=t.split("-");if(!o&&s.length>1)return e(s[0])}else{var a=t.name;x[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},M=b;M.l=C,M.i=S,M.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return M},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return k(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<k(e)},y.$g=function(e,t,n){return M.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!M.u(t)||t,u=M.p(e),f=function(e,t){var o=M.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(a)},h=function(e,t){return M.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,g):f(0,g+1);case l:var v=this.$locale().weekStart||0,x=(m<v?m+7:m)-v;return f(r?y-x:y+(6-x),g);case a:case p:return h(b+"Hours",0);case s:return h(b+"Minutes",1);case i:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,l=M.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[a]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[s]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===a?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[M.p(e)]()},y.add=function(r,u){var p,f=this;r=Number(r);var h=M.p(u),m=function(e){var t=k(f);return M.w(t.date(t.date()+Math.round(e*r)),f)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===a)return m(1);if(h===l)return m(7);var g=(p={},p[i]=t,p[s]=n,p[o]=e,p)[h]||1,y=this.$d.getTime()+r*g;return M.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=M.z(this),i=this.$H,s=this.$m,a=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return M.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return a+1;case"MM":return M.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return M.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,s,!0);case"A":return h(i,s,!1);case"m":return String(s);case"mm":return M.s(s,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,p,f){var h,m=this,g=M.p(p),y=k(r),b=(y.utcOffset()-this.utcOffset())*t,v=this-y,x=function(){return M.m(m,y)};switch(g){case d:h=x()/12;break;case c:h=x();break;case u:h=x()/3;break;case l:h=(v-b)/6048e5;break;case a:h=(v-b)/864e5;break;case s:h=v/n;break;case i:h=v/t;break;case o:h=v/e;break;default:h=v}return f?h:M.a(h)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return x[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return M.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),T=O.prototype;return k.prototype=T,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",d],["$D",p]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,O,k),e.$i=!0),k},k.locale=C,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=x[v],k.Ls=x,k.p={},k}()},4405:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case u:case d:case h:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case a:return e;default:return t}}case r:return t}}}t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===m||void 0!==e.getModuleId)}},4838:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var i=document.body;for(var s in r)o(i,r[s]);n={},r={}},t.log=function(){0};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)});var o,i},t.remove=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)});var o,i}},4848:(e,t,n)=>{e.exports=n(9698)},4958:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(s.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}};var o=n(1649),i=r(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);var a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};t.returnFirstArg=function(e){return e}},5229:function(e,t,n){var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},5270:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5413:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},5496:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;e=(0,r.escapeSpecialCharacters)(e);var p=e.match(a),f=p&&p[1]?p[1].toLowerCase():"";switch(f){case o:var h=d(e);if(!l.test(e))null===(t=null==(y=h.querySelector(i))?void 0:y.parentNode)||void 0===t||t.removeChild(y);if(!c.test(e))null===(n=null==(y=h.querySelector(s))?void 0:y.parentNode)||void 0===n||n.removeChild(y);return h.querySelectorAll(o);case i:case s:var g=u(e).querySelectorAll(f);return c.test(e)&&l.test(e)?g[0].parentNode.childNodes:g;default:return m?m(e):(y=u(e,s).querySelector(s)).childNodes;var y}};var r=n(7731),o="html",i="head",s="body",a=/<([a-zA-Z]+[0-9]?)/,l=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var f=new p;d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),f.parseFromString(e,"text/html")},u=d}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=h.documentElement.querySelector(t);return n&&(n.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var m,g="object"==typeof document&&document.createElement("template");g&&g.content&&(m=function(e){return g.innerHTML=e,g.content.childNodes})},5556:(e,t,n)=>{e.exports=n(2694)()},5750:function(e){var t;e.exports=(t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,n,r){var o=n.prototype,i=o.format;r.en.formats=t,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,r,o){var i=o&&o.toUpperCase();return r||n[o]||t[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(e,void 0===n?{}:n);return i.call(this,r)}})},5794:(e,t,n)=>{const{default:r,DraggableCore:o}=n(6027);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},6027:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(n(1649)),o=p(n(5556)),i=p(n(7516)),s=n(1508),a=n(1089),l=n(1726),c=n(7056),u=p(n(6888)),d=p(n(8696));function p(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends r.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",(e,t)=>{(0,d.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)}),h(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??i.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:n,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:d,position:p,positionOffset:h,scale:m,...g}=this.props;let y={},b=null;const v=!Boolean(p)||this.state.dragging,x=p||o,w={x:(0,l.canDragX)(this)&&v?this.state.x:x.x,y:(0,l.canDragY)(this)&&v?this.state.y:x.y};this.state.isElementSVG?b=(0,a.createSVGTransform)(w,h):y=(0,a.createCSSTransform)(w,h);const S=(0,s.clsx)(n.props.className||"",i,{[c]:this.state.dragging,[d]:this.state.dragged});return r.createElement(u.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:S,style:{...n.props.style,...y},transform:b}))}}t.default=m,h(m,"displayName","Draggable"),h(m,"propTypes",{...u.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),h(m,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},6462:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(a).forEach(function(e){return e.removeAttribute("aria-hidden")}));a=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&s.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){a=null};var r,o=n(9771),i=(r=o)&&r.__esModule?r:{default:r},s=n(834);var a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},6811:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},6888:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(n(1649)),o=u(n(5556)),i=u(n(7516)),s=n(1089),a=n(1726),l=n(7056),c=u(n(8696));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=f;class m extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,s.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,s.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,s.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,a.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:l}=o,u=(0,a.createCoreData)(this,i,l);(0,c.default)("DraggableCore: handleDragStart: %j",u),(0,c.default)("calling",this.props.onStart);!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=l,(0,s.addEvent)(n,h.move,this.handleDrag),(0,s.addEvent)(n,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,a.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,a.createCoreData)(this,n,r);(0,c.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),d(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,a.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,a.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,s.scheduleRemoveUserSelectStyles)(i.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,c.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(i.ownerDocument,h.move,this.handleDrag),(0,s.removeEvent)(i.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=f,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=f,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=p,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=p,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,s.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,s.removeEvent)(t,f.move,this.handleDrag),(0,s.removeEvent)(t,p.move,this.handleDrag),(0,s.removeEvent)(t,f.stop,this.handleDragStop),(0,s.removeEvent)(t,p.stop,this.handleDragStop),(0,s.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:i.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=m,d(m,"displayName","DraggableCore"),d(m,"propTypes",{allowAnyClick:o.default.bool,allowMobileScroll:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(m,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},6925:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6957:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(5413),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=a;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function b(e){return e.type===s.ElementType.Text}function v(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function w(e){return e.type===s.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new c(e.data);else if(v(e))n=new u(e.data);else if(g(e)){var r=t?C(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?C(e.children):[];var s=new f(r);r.forEach(function(e){return e.parent=s}),n=s}else if(w(e)){r=t?C(e.children):[];var a=new h(r);r.forEach(function(e){return e.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map(function(e){return S(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=b,t.isComment=v,t.isDirective=x,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},7056:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},7067:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,a=n[0],l=n[n.length-1],c=s();if(e===c){if(!o)return;r=l}l!==c||o||(r=a);a===c&&o&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(c);d>-1&&(d+=o?-1:1);if(void 0===(r=n[d]))return t.preventDefault(),void(r=o?l:a).focus();t.preventDefault(),r.focus()};var r,o=n(2411),i=(r=o)&&r.__esModule?r:{default:r};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?s(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},7375:function(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(i)}}},7516:e=>{e.exports=t},7727:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[s,a],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}s=a=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[s,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=n(9628),i=(r=o)&&r.__esModule?r:{default:r};var s=void 0,a=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe(function(e,t){s||a||((s=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),s.style.position="absolute",s.style.opacity="0",s.setAttribute("tabindex","0"),s.addEventListener("focus",c),(a=s.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==s&&document.body.insertBefore(s,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(s.parentElement&&s.parentElement.removeChild(s),a.parentElement&&a.parentElement.removeChild(a))})},7731:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var l,c=[],u=0,d=t.length;u<d;u++){var p=t[u];switch(p.nodeType){case 1:var f=s(p.nodeName);(l=new r.Element(f,i(p.attributes))).children=e("template"===f?p.content.childNodes:p.childNodes,l);break;case 3:l=new r.Text(a(p.nodeValue));break;case 8:l=new r.Comment(p.nodeValue);break;default:continue}var h=c[u-1]||null;h&&(h.next=l),l.parent=n,l.prev=h,l.next=null,c.push(l)}o&&((l=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,l.parent=n,c.unshift(l),c[1]&&(c[1].prev=c[0]));return c};var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function s(e){var t=function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function a(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},7791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s=[]},t.log=function(){0},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){s.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==s.length&&(t=s.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){s.length>0&&s.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var r,o=n(2411),i=(r=o)&&r.__esModule?r:{default:r};var s=[],a=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!a)return;setTimeout(function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()},0)}}},7872:function(e){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),s=n(t),a="("===(o=o||"()")[0],l=")"===o[1];return(a?this.isAfter(i,r):!this.isBefore(i,r))&&(l?this.isBefore(s,r):!this.isAfter(s,r))||(a?this.isBefore(i,r):!this.isAfter(i,r))&&(l?this.isAfter(s,r):!this.isBefore(s,r))}}},8134:function(e){var t,n;e.exports=(t="week",n="year",function(e,r,o){var i=r.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(n).add(1,n).date(r),s=o(this).endOf(t);if(i.isBefore(s))return 1}var a=o(this).startOf(n).date(r).startOf(t).subtract(1,"millisecond"),l=this.diff(a,t,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})},8569:function(e){var t,n;e.exports=(t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(e,r,o){var i,s=function(e,t,r){void 0===r&&(r={});var o=new Date(e),i=function(e,t){void 0===t&&(t={});var r=t.timeZoneName||"short",o=e+"|"+r,i=n[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[o]=i),i}(t,r);return i.formatToParts(o)},a=function(e,n){for(var r=s(e,n),i=[],a=0;a<r.length;a+=1){var l=r[a],c=l.type,u=l.value,d=t[c];d>=0&&(i[d]=parseInt(u,10))}var p=i[3],f=24===p?0:p,h=i[0]+"-"+i[1]+"-"+i[2]+" "+f+":"+i[4]+":"+i[5]+":000",m=+e;return(o.utc(h).valueOf()-(m-=m%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=i);var n,r=this.utcOffset(),s=this.toDate(),a=s.toLocaleString("en-US",{timeZone:e}),l=Math.round((s-new Date(a))/1e3/60),c=15*-Math.round(s.getTimezoneOffset()/15)-l;if(Number(c)){if(n=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=n.utcOffset();n=n.add(r-u,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},l.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,s=n||t||i,l=a(+o(),s);if("string"!=typeof e)return o(e).tz(s);var c=function(e,t,n){var r=e-60*t*1e3,o=a(r,n);if(t===o)return[r,t];var i=a(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),l,s),u=c[0],d=c[1],p=o(u).utcOffset(d);return p.$x.$timezone=s,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}})},8696:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},8917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(r,a))}},9090:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1649),a=g(n(5556)),l=m(n(7791)),c=g(n(7067)),u=m(n(6462)),d=m(n(4838)),p=n(834),f=g(p),h=g(n(9628));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(7727);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},b=0,v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,s=e.parentSelector,a=s&&s().ownerDocument||document;i&&d.remove(a.body,i),o&&d.remove(a.getElementsByTagName("html")[0],o),r&&b>0&&0===(b-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(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)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;o&&d.add(s.body,o),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(b+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);v.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},v.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=v,e.exports=t.default},9628:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},9698:(e,t)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},9771:e=>{var t=function(){};e.exports=t},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(){b(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function S(){var e=h(),n=b(o);if(n){if(w(),!b(i))return y("property missing ':'");var r=b(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return b(a),l}}return v(),function(){var e,t=[];for(x(t);e=S();)!1!==e&&(t.push(e),x(t));return t}()}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i=o(1649),s=o(4848);function a(e){return a="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},a(e)}var l=["className"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){e.className;var t=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l);return(0,s.jsx)("svg",u(u({width:"10px",height:"6px",viewBox:"0 0 10 6",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:(0,s.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,s.jsx)("g",{transform:"translate(-56.000000, -9.000000)",fill:"#242424",fillRule:"nonzero",children:(0,s.jsx)("path",{d:"M61,14.9622437 C61.0868403,14.9622437 61.1636607,14.9288436 61.2304609,14.8620433 L61.2304609,14.8620433 L65.8997996,10.1927046 C65.9665999,10.1259043 66,10.049084 66,9.96224368 C66,9.87540334 65.9665999,9.79858303 65.8997996,9.73178276 L65.8997996,9.73178276 L65.3987976,9.23078076 C65.3319973,9.16398049 65.255177,9.13058036 65.1683367,9.13058036 C65.0814963,9.13058036 65.004676,9.16398049 64.9378758,9.23078076 L64.9378758,9.23078076 L61,13.1686565 L57.0621242,9.23078076 C56.995324,9.16398049 56.9185037,9.13058036 56.8316633,9.13058036 C56.744823,9.13058036 56.6680027,9.16398049 56.6012024,9.23078076 L56.6012024,9.23078076 L56.1002004,9.73178276 C56.0334001,9.79858303 56,9.87540334 56,9.96224368 C56,10.049084 56.0334001,10.1259043 56.1002004,10.1927046 L56.1002004,10.1927046 L60.7695391,14.8620433 C60.8363393,14.9288436 60.9131597,14.9622437 61,14.9622437 Z"})})})}))};function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const m=function(e){var t=e.title,n=void 0===t?"":t,r=e.subTitle,o=e.children,a=e.centerItem,l=e.rightItem,c=e.isOpen,u=void 0!==c&&c,d=(0,i.useRef)(null),h=f((0,i.useState)(u?"active":""),2),m=h[0],g=h[1],y=m?"true":"false",b=m?function(e){return e?"".concat(e.scrollHeight,"px"):"auto"}(d.current):"0px",v=m?"accordion-icon rotate":"accordion-icon";return(0,i.useEffect)(function(){g(u?"active":"")},[u]),(0,s.jsxs)("div",{className:"accordion-section","data-testid":"accordion",children:[(0,s.jsxs)("button",{className:"accordion ".concat(m),"aria-label":n,"aria-pressed":y,"aria-expanded":y,tabIndex:"0",onClick:function(){g(""===m?"active":"")},children:[(0,s.jsxs)("div",{className:"accordion-left-title",children:[(0,s.jsx)("p",{className:"accordion-title",children:n}),r&&(0,s.jsx)("p",{className:"accordion-subtitle",children:r})]}),a&&(0,s.jsx)("div",{className:"accordion-center",children:(0,s.jsx)("p",{children:a})}),l&&(0,s.jsx)("div",{className:"accordion-right",children:(0,s.jsx)("p",{children:l})}),(0,s.jsx)("div",{className:"chevron-container",children:(0,s.jsx)(p,{className:v})})]}),(0,s.jsx)("div",{ref:d,style:{maxHeight:b},className:"accordion-content",children:(0,s.jsx)("div",{className:"accordion-text dashed-border",children:o})})]})};function g(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=g(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const y=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=g(e))&&(r&&(r+=" "),r+=t);return r};function b(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(s+=(!0===a?"":" ")+t(r),a=!1,n&&n[r]&&(s+=" "+n[r]))}r[o]=s}return r}function v(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const x=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))};function w(e,t=0,n=1){return x(e,t,n)}function S(e){if(e.type)return e;if("#"===e.charAt(0))return S(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(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(v(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(v(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const C=(e,t)=>{try{return(e=>{const t=S(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function k(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function M(e){e=S(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const l=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",l.push(t[3])),k({type:a,values:l})}function O(e){let t="hsl"===(e=S(e)).type||"hsla"===e.type?S(M(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 T(e,t){return e=S(e),t=w(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,k(e)}function P(e,t,n){try{return T(e,t)}catch(t){return e}}function D(e,t){if(e=S(e),t=w(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return k(e)}function E(e,t,n){try{return D(e,t)}catch(t){return e}}function j(e,t){if(e=S(e),t=w(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return k(e)}function A(e,t,n){try{return j(e,t)}catch(t){return e}}function R(e,t=.15){return O(e)>.5?D(e,t):j(e,t)}function N(e,t,n){try{return R(e,t)}catch(t){return e}}function I(e){if("string"!=typeof e)throw new Error(v(7));return e.charAt(0).toUpperCase()+e.slice(1)}const L=I;const $=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},F=e=>$(e)&&"classes"!==e;function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(null,arguments)}var _=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),B=Math.abs,V=String.fromCharCode,W=Object.assign;function H(e){return e.trim()}function U(e,t,n){return e.replace(t,n)}function q(e,t){return e.indexOf(t)}function Y(e,t){return 0|e.charCodeAt(t)}function K(e,t,n){return e.slice(t,n)}function G(e){return e.length}function X(e){return e.length}function J(e,t){return t.push(e),e}var Z=1,Q=1,ee=0,te=0,ne=0,re="";function oe(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Z,column:Q,length:s,return:""}}function ie(e,t){return W(oe("",null,null,"",null,null,0),e,{length:-e.length},t)}function se(){return ne=te>0?Y(re,--te):0,Q--,10===ne&&(Q=1,Z--),ne}function ae(){return ne=te<ee?Y(re,te++):0,Q++,10===ne&&(Q=1,Z++),ne}function le(){return Y(re,te)}function ce(){return te}function ue(e,t){return K(re,e,t)}function de(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pe(e){return Z=Q=1,ee=G(re=e),te=0,[]}function fe(e){return re="",e}function he(e){return H(ue(te-1,ye(91===e?e+2:40===e?e+1:e)))}function me(e){for(;(ne=le())&&ne<33;)ae();return de(e)>2||de(ne)>3?"":" "}function ge(e,t){for(;--t&&ae()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return ue(e,ce()+(t<6&&32==le()&&32==ae()))}function ye(e){for(;ae();)switch(ne){case e:return te;case 34:case 39:34!==e&&39!==e&&ye(ne);break;case 40:41===e&&ye(e);break;case 92:ae()}return te}function be(e,t){for(;ae()&&e+ne!==57&&(e+ne!==84||47!==le()););return"/*"+ue(t,te-1)+"*"+V(47===e?e:ae())}function ve(e){for(;!de(le());)ae();return ue(e,te)}var xe="-ms-",we="-moz-",Se="-webkit-",Ce="comm",ke="rule",Me="decl",Oe="@keyframes";function Te(e,t){for(var n="",r=X(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Pe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Me:return e.return=e.return||e.value;case Ce:return"";case Oe:return e.return=e.value+"{"+Te(e.children,r)+"}";case ke:e.value=e.props.join(",")}return G(n=Te(e.children,r))?e.return=e.value+"{"+n+"}":""}function De(e){return fe(Ee("",null,null,null,[""],e=pe(e),0,[0],e))}function Ee(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,p=0,f=0,h=0,m=1,g=1,y=1,b=0,v="",x=o,w=i,S=r,C=v;g;)switch(h=b,b=ae()){case 40:if(108!=h&&58==Y(C,d-1)){-1!=q(C+=U(he(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=he(b);break;case 9:case 10:case 13:case 32:C+=me(h);break;case 92:C+=ge(ce()-1,7);continue;case 47:switch(le()){case 42:case 47:J(Ae(be(ae(),ce()),t,n),l);break;default:C+="/"}break;case 123*m:a[c++]=G(C)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(C=U(C,/\f/g,"")),f>0&&G(C)-d&&J(f>32?Re(C+";",r,n,d-1):Re(U(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(J(S=je(C,t,n,c,u,o,a,v,x=[],w=[],d),i),123===b)if(0===u)Ee(C,t,S,S,x,i,d,a,w);else switch(99===p&&110===Y(C,3)?100:p){case 100:case 108:case 109:case 115:Ee(e,S,S,r&&J(je(e,S,S,0,0,o,a,v,o,x=[],d),w),o,w,d,a,r?x:w);break;default:Ee(C,S,S,S,[""],w,0,a,w)}}c=u=f=0,m=y=1,v=C="",d=s;break;case 58:d=1+G(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==se())continue;switch(C+=V(b),b*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(G(C)-1)*y,y=1;break;case 64:45===le()&&(C+=he(ae())),p=le(),u=d=G(v=C+=ve(ce())),b++;break;case 45:45===h&&2==G(C)&&(m=0)}}return i}function je(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,p=0===o?i:[""],f=X(p),h=0,m=0,g=0;h<r;++h)for(var y=0,b=K(e,d+1,d=B(m=s[h])),v=e;y<f;++y)(v=H(m>0?p[y]+" "+b:U(b,/&\f/g,p[y])))&&(l[g++]=v);return oe(e,t,n,0===o?ke:a,l,c,u)}function Ae(e,t,n){return oe(e,t,n,Ce,V(ne),K(e,2,-2),0)}function Re(e,t,n,r){return oe(e,t,n,Me,K(e,0,r),K(e,r+1,-1),r)}var Ne=function(e,t,n){for(var r=0,o=0;r=o,o=le(),38===r&&12===o&&(t[n]=1),!de(o);)ae();return ue(e,te)},Ie=function(e,t){return fe(function(e,t){var n=-1,r=44;do{switch(de(r)){case 0:38===r&&12===le()&&(t[n]=1),e[n]+=Ne(te-1,t,n);break;case 2:e[n]+=he(r);break;case 4:if(44===r){e[++n]=58===le()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=V(r)}}while(r=ae());return e}(pe(e),t))},Le=new WeakMap,$e=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Le.get(n))&&!r){Le.set(e,!0);for(var o=[],i=Ie(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},Fe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ze(e,t){switch(function(e,t){return 45^Y(e,0)?(((t<<2^Y(e,0))<<2^Y(e,1))<<2^Y(e,2))<<2^Y(e,3):0}(e,t)){case 5103:return Se+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Se+e+we+e+xe+e+e;case 6828:case 4268:return Se+e+xe+e+e;case 6165:return Se+e+xe+"flex-"+e+e;case 5187:return Se+e+U(e,/(\w+).+(:[^]+)/,Se+"box-$1$2"+xe+"flex-$1$2")+e;case 5443:return Se+e+xe+"flex-item-"+U(e,/flex-|-self/,"")+e;case 4675:return Se+e+xe+"flex-line-pack"+U(e,/align-content|flex-|-self/,"")+e;case 5548:return Se+e+xe+U(e,"shrink","negative")+e;case 5292:return Se+e+xe+U(e,"basis","preferred-size")+e;case 6060:return Se+"box-"+U(e,"-grow","")+Se+e+xe+U(e,"grow","positive")+e;case 4554:return Se+U(e,/([^-])(transform)/g,"$1"+Se+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,Se+"$1"),/(image-set)/,Se+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,Se+"$1$`$1");case 4968:return U(U(e,/(.+:)(flex-)?(.*)/,Se+"box-pack:$3"+xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Se+e+e;case 4095:case 3583:case 4068:case 2532:return U(e,/(.+)-inline(.+)/,Se+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(G(e)-1-t>6)switch(Y(e,t+1)){case 109:if(45!==Y(e,t+4))break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+we+(108==Y(e,t+3)?"$3":"$2-$3"))+e;case 115:return~q(e,"stretch")?ze(U(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Y(e,t+1))break;case 6444:switch(Y(e,G(e)-3-(~q(e,"!important")&&10))){case 107:return U(e,":",":"+Se)+e;case 101:return U(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(45===Y(e,14)?"inline-":"")+"box$3$1"+Se+"$2$3$1"+xe+"$2box$3")+e}break;case 5936:switch(Y(e,t+11)){case 114:return Se+e+xe+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+xe+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+xe+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+xe+e+e}return e}var _e=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Me:e.return=ze(e.value,e.length);break;case Oe:return Te([ie(e,{value:U(e.value,"@","@"+Se)})],r);case ke:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Te([ie(e,{props:[U(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Te([ie(e,{props:[U(t,/:(plac\w+)/,":"+Se+"input-$1")]}),ie(e,{props:[U(t,/:(plac\w+)/,":-moz-$1")]}),ie(e,{props:[U(t,/:(plac\w+)/,xe+"input-$1")]})],r)}return""})}}],Be=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||_e,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)});var l,c,u,d,p=[Pe,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[$e,Fe].concat(i,p),u=X(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,function(e){Te(De(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new _({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(a),h};function Ve(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var We=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},He=function(e,t,n){We(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Ue={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function qe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ye=/[A-Z]|^ms/g,Ke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ge=function(e){return 45===e.charCodeAt(1)},Xe=function(e){return null!=e&&"boolean"!=typeof e},Je=qe(function(e){return Ge(e)?e:e.replace(Ye,"-$&").toLowerCase()}),Ze=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ke,function(e,t,n){return et={name:t,styles:n,next:et},t})}return 1===Ue[e]||Ge(e)||"number"!=typeof t||0===t?t:t+"px"};function Qe(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return et={name:o.name,styles:o.styles,next:et},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)et={name:s.name,styles:s.styles,next:et},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Qe(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Xe(a)&&(r+=Je(i)+":"+Ze(i,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=Qe(e,t,s);switch(i){case"animation":case"animationName":r+=Je(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<s.length;c++)Xe(s[c])&&(r+=Je(i)+":"+Ze(i,s[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=et,l=n(e);return et=a,Qe(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var et,tt=/label:\s*([^\s;{]+)\s*(;|$)/g;function nt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";et=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Qe(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++){if(o+=Qe(n,t,e[s]),r)o+=i[s]}tt.lastIndex=0;for(var a,l="";null!==(a=tt.exec(o));)l+="-"+a[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:et}}var rt=!!i.useInsertionEffect&&i.useInsertionEffect,ot=rt||function(e){return e()},it=rt||i.useLayoutEffect,st=i.createContext("undefined"!=typeof HTMLElement?Be({key:"css"}):null),at=(st.Provider,function(e){return(0,i.forwardRef)(function(t,n){var r=(0,i.useContext)(st);return e(t,r,n)})}),lt=i.createContext({});var ct={}.hasOwnProperty,ut="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return We(t,n,r),ot(function(){return He(t,n,r)}),null},pt=at(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ut],s=[r],a="";"string"==typeof e.className?a=Ve(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var l=nt(s,void 0,i.useContext(lt));a+=t.key+"-"+l.name;var c={};for(var u in e)ct.call(e,u)&&"css"!==u&&u!==ut&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),i.createElement(i.Fragment,null,i.createElement(dt,{cache:t,serialized:l,isStringTag:"string"==typeof o}),i.createElement(o,c))}),ft=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ht=qe(function(e){return ft.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),mt=function(e){return"theme"!==e},gt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ht:mt},yt=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},bt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return We(t,n,r),ot(function(){return He(t,n,r)}),null},vt=function e(t,n){var r,o,s=t.__emotion_real===t,a=s&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=yt(t,n,s),c=l||gt(a),u=!c("as");return function(){var d=arguments,p=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var f=d[0];p.push(f[0]);for(var h=d.length,m=1;m<h;m++)p.push(d[m],f[m])}var g=at(function(e,t,n){var r=u&&e.as||a,s="",d=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=i.useContext(lt)}"string"==typeof e.className?s=Ve(t.registered,d,e.className):null!=e.className&&(s=e.className+" ");var m=nt(p.concat(d),t.registered,f);s+=t.key+"-"+m.name,void 0!==o&&(s+=" "+o);var g=u&&void 0===l?gt(r):c,y={};for(var b in e)u&&"as"===b||g(b)&&(y[b]=e[b]);return y.className=s,n&&(y.ref=n),i.createElement(i.Fragment,null,i.createElement(bt,{cache:t,serialized:m,isStringTag:"string"==typeof r}),i.createElement(r,y))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=p,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,z({},n,r,{shouldForwardProp:yt(g,r,!0)})).apply(void 0,p)},g}}.bind(null);function xt(e,t){return vt(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){vt[e]=vt(e)});const wt=[];function St(e){return wt[0]=e,nt(wt)}var Ct=o(4405);function kt(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Mt(e){if(i.isValidElement(e)||(0,Ct.Hy)(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Mt(e[n])}),t}function Ot(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return kt(e)&&kt(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])||(0,Ct.Hy)(t[o])?r[o]=t[o]:kt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&kt(e[o])?r[o]=Ot(e[o],t[o],n):n.clone?r[o]=kt(t[o])?Mt(t[o]):t[o]:r[o]=t[o]}),r}function Tt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(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,[t.key]:t.val}),{})})(t),s=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-r/100}${n})`}return{keys:s,values:i,up:a,down:l,between:c,only:function(e){return s.indexOf(e)+1<s.length?c(e,s[s.indexOf(e)+1]):a(e)},not:function(e){const t=s.indexOf(e);return 0===t?a(s[1]):t===s.length-1?l(s[t]):c(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}function Pt(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Dt={borderRadius:4},Et={xs:0,sm:600,md:900,lg:1200,xl:1536},jt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Et[e]}px)`},At={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Et[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Rt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||jt;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||jt;return Object.keys(t).reduce((o,i)=>{if(function(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}(e.keys,i)){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:At,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Et).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}return o},{})}return n(t)}function Nt(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function It(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Lt(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 $t(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Lt(e,n)||r,t&&(o=t(o,r,e)),o}const Ft=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],s=Lt(e.theme,r)||{};return Rt(e,i,e=>{let r=$t(s,o,e);return e===r&&"string"==typeof e&&(r=$t(s,o,`${t}${"default"===e?"":I(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i};const zt=function(e,t){return t?Ot(e,t,{clone:!1}):e};const _t={m:"margin",p:"padding"},Bt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wt=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Vt[e])return[e];e=Vt[e]}const[t,n]=e.split(""),r=_t[t],o=Bt[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Ht=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ut=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],qt=[...Ht,...Ut];function Yt(e,t,n,r){const o=Lt(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e);const n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function Kt(e){return Yt(e,"spacing",8)}function Gt(e,t){return"string"==typeof t||null==t?t:e(t)}function Xt(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Gt(t,n),e),{})}(Wt(n),r);return Rt(e,e[n],o)}function Jt(e,t){const n=Kt(e.theme);return Object.keys(e).map(r=>Xt(e,t,r,n)).reduce(zt,{})}function Zt(e){return Jt(e,Ht)}function Qt(e){return Jt(e,Ut)}function en(e){return Jt(e,qt)}Zt.propTypes={},Zt.filterProps=Ht,Qt.propTypes={},Qt.filterProps=Ut,en.propTypes={},en.filterProps=qt;function tn(e=8,t=Kt({spacing:e})){if(e.mui)return e;const n=(...e)=>{return(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}const nn=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?zt(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function rn(e){return"number"!=typeof e?e:`${e}px solid`}function on(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const sn=on("border",rn),an=on("borderTop",rn),ln=on("borderRight",rn),cn=on("borderBottom",rn),un=on("borderLeft",rn),dn=on("borderColor"),pn=on("borderTopColor"),fn=on("borderRightColor"),hn=on("borderBottomColor"),mn=on("borderLeftColor"),gn=on("outline",rn),yn=on("outlineColor"),bn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Yt(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Gt(t,e)});return Rt(e,e.borderRadius,n)}return null};bn.propTypes={},bn.filterProps=["borderRadius"];nn(sn,an,ln,cn,un,dn,pn,fn,hn,mn,bn,gn,yn);const vn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Yt(e.theme,"spacing",8),n=e=>({gap:Gt(t,e)});return Rt(e,e.gap,n)}return null};vn.propTypes={},vn.filterProps=["gap"];const xn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Yt(e.theme,"spacing",8),n=e=>({columnGap:Gt(t,e)});return Rt(e,e.columnGap,n)}return null};xn.propTypes={},xn.filterProps=["columnGap"];const wn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Yt(e.theme,"spacing",8),n=e=>({rowGap:Gt(t,e)});return Rt(e,e.rowGap,n)}return null};wn.propTypes={},wn.filterProps=["rowGap"];nn(vn,xn,wn,Ft({prop:"gridColumn"}),Ft({prop:"gridRow"}),Ft({prop:"gridAutoFlow"}),Ft({prop:"gridAutoColumns"}),Ft({prop:"gridAutoRows"}),Ft({prop:"gridTemplateColumns"}),Ft({prop:"gridTemplateRows"}),Ft({prop:"gridTemplateAreas"}),Ft({prop:"gridArea"}));function Sn(e,t){return"grey"===t?t:e}nn(Ft({prop:"color",themeKey:"palette",transform:Sn}),Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sn}),Ft({prop:"backgroundColor",themeKey:"palette",transform:Sn}));function Cn(e){return e<=1&&0!==e?100*e+"%":e}const kn=Ft({prop:"width",transform:Cn}),Mn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Et[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Cn(t)}};return Rt(e,e.maxWidth,t)}return null};Mn.filterProps=["maxWidth"];const On=Ft({prop:"minWidth",transform:Cn}),Tn=Ft({prop:"height",transform:Cn}),Pn=Ft({prop:"maxHeight",transform:Cn}),Dn=Ft({prop:"minHeight",transform:Cn}),En=(Ft({prop:"size",cssProperty:"width",transform:Cn}),Ft({prop:"size",cssProperty:"height",transform:Cn}),nn(kn,Mn,On,Tn,Pn,Dn,Ft({prop:"boxSizing"})),{border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bn},color:{themeKey:"palette",transform:Sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sn},backgroundColor:{themeKey:"palette",transform:Sn},p:{style:Qt},pt:{style:Qt},pr:{style:Qt},pb:{style:Qt},pl:{style:Qt},px:{style:Qt},py:{style:Qt},padding:{style:Qt},paddingTop:{style:Qt},paddingRight:{style:Qt},paddingBottom:{style:Qt},paddingLeft:{style:Qt},paddingX:{style:Qt},paddingY:{style:Qt},paddingInline:{style:Qt},paddingInlineStart:{style:Qt},paddingInlineEnd:{style:Qt},paddingBlock:{style:Qt},paddingBlockStart:{style:Qt},paddingBlockEnd:{style:Qt},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:vn},rowGap:{style:wn},columnGap:{style:xn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cn},maxWidth:{style:Mn},minWidth:{transform:Cn},height:{transform:Cn},maxHeight:{transform:Cn},minHeight:{transform:Cn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}});const jn=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:s=e,themeKey:a,transform:l,style:c}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const u=Lt(n,a)||{};if(c)return c(o);return Rt(o,t,t=>{let n=$t(u,l,t);return t===n&&"string"==typeof t&&(n=$t(u,l,`${e}${"default"===t?"":I(t)}`,t)),!1===s?n:{[s]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const s=o.unstable_sxConfig??En;function a(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const a=Nt(o.breakpoints),l=Object.keys(a);let c=a;return Object.keys(r).forEach(n=>{const i=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=i)if("object"==typeof i)if(s[n])c=zt(c,e(n,i,o,s));else{const e=Rt({theme:o},i,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,i)?c=zt(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=zt(c,e(n,i,o,s))}),!i&&o.modularCssLayers?{"@layer sx":Pt(o,It(l,c))}:Pt(o,It(l,c))}return Array.isArray(r)?r.map(a):a(r)}}();jn.filterProps=["sx"];const An=jn;function Rn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const Nn=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e;let a=Ot({breakpoints:Tt(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:tn(o),shape:{...Dt,...i}},s);return a=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(a),a.applyStyles=Rn,a=t.reduce((e,t)=>Ot(e,t),a),a.unstable_sxConfig={...En,...s?.unstable_sxConfig},a.unstable_sx=function(e){return An({sx:e,theme:this})},a};function In(e){const{variants:t,...n}=e,r={variants:t,style:St(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=St(e.style))}),r}const Ln=Nn();function $n(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Fn(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function zn(e){return e?(t,n)=>n[e]:null}function _n(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>_n(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Fn(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Fn(St(o),n):o}return Bn(e,r.variants,[t],n)}return r?.isProcessed?n?Fn(St(r.style),n):r.style:n?Fn(St(r),n):r}function Bn(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const s=t[i];if("function"==typeof s.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const t in s.props)if(e[t]!==s.props[t]&&e.ownerState?.[t]!==s.props[t])continue e;"function"==typeof s.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Fn(St(s.style(o)),r):s.style(o))):n.push(r?Fn(St(s.style),r):s.style)}return n}function Vn(e={}){const{themeId:t,defaultTheme:n=Ln,rootShouldForwardProp:r=$n,slotShouldForwardProp:o=$n}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==An));const{name:n,slot:s,skipVariantsResolver:a,skipSx:l,overridesResolver:c=zn(Hn(s)),...u}=t,d=n&&n.startsWith("Mui")||s?"components":"custom",p=void 0!==a?a:s&&"Root"!==s&&"root"!==s||!1,f=l||!1;let h=$n;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=xt(e,{shouldForwardProp:h,label:Wn(n,s),...u}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return _n(t,e,t.theme.modularCssLayers?d:void 0)};if(kt(e)){const t=In(e);return function(e){return t.variants?_n(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Fn(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(g),s=[];if(r.push(i),n&&c&&s.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=_n(e,r[t],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!p&&s.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?Bn(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),f||s.push(An),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(s.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const a=[...r,...o,...s],l=m(...a);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(y.withConfig=m.withConfig),y}}function Wn(e,t){}function Hn(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const Un={black:"#000",white:"#fff"},qn={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"},Yn={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"},Kn={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"},Gn={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"},Xn={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"},Jn={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"},Zn={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"};function Qn(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Un.white,default:Un.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const er=Qn();function tr(){return{text:{primary:Un.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:Un.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const nr=tr();function rr(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=j(e.main,o):"dark"===t&&(e.dark=D(e.main,i)))}function or(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:Xn[200],light:Xn[50],dark:Xn[400]}:{main:Xn[700],light:Xn[400],dark:Xn[800]}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:Yn[200],light:Yn[50],dark:Yn[400]}:{main:Yn[500],light:Yn[300],dark:Yn[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:Kn[500],light:Kn[300],dark:Kn[700]}:{main:Kn[700],light:Kn[400],dark:Kn[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Jn[400],light:Jn[300],dark:Jn[700]}:{main:Jn[700],light:Jn[500],dark:Jn[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Zn[400],light:Zn[300],dark:Zn[700]}:{main:Zn[800],light:Zn[500],dark:Zn[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Gn[400],light:Gn[300],dark:Gn[700]}:{main:"#ed6c02",light:Gn[500],dark:Gn[900]}}(t);function d(e){const t=function(e,t){const n=O(e),r=O(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,nr.text.primary)>=n?nr.text.primary:er.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(v(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(v(12,t?` (${t})`:"",JSON.stringify(e.main)));return rr(e,"light",o,r),rr(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let f;"light"===t?f=Qn():"dark"===t&&(f=tr());return Ot({common:{...Un},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:qn,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...f},o)}function ir(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}function sr(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const ar=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function lr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};var a,l;return a=(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),ar(i,e,`var(${r})`,a),ar(s,e,`var(${r}, ${l})`,a)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):a([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:s}}const cr=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=lr(l,t);let p=d;const f={},{[a]:h,...m}=i;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=lr(n,t);p=Ot(p,i),f[e]={css:o,vars:r}}),h){const{css:e,vars:n,varsWithDefaults:r}=lr(h,t);p=Ot(p,r),f[a]={css:e,vars:n}}function g(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(f).forEach(([,{vars:t}])=>{e=Ot(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...u}),u);const{[o]:a,...l}=f;if(a){const{css:e}=a,t=i[o]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...l}),l)}return Object.entries(l).forEach(([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)}),t}}};function ur(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}const dr={textTransform:"uppercase"},pr='"Roboto", "Helvetica", "Arial", sans-serif';function fr(e,t){const{fontFamily:n=pr,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t;const p=r/14,f=u||(e=>e/l*p+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===pr?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},...i,...c};var s},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,dr),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,dr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ot({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...m},d,{clone:!1})}function hr(...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 mr=["none",hr(0,2,1,-1,0,1,1,0,0,1,3,0),hr(0,3,1,-2,0,2,2,0,0,1,5,0),hr(0,3,3,-2,0,3,4,0,0,1,8,0),hr(0,2,4,-1,0,4,5,0,0,1,10,0),hr(0,3,5,-1,0,5,8,0,0,1,14,0),hr(0,3,5,-1,0,6,10,0,0,1,18,0),hr(0,4,5,-2,0,7,10,1,0,2,16,1),hr(0,5,5,-3,0,8,10,1,0,3,14,2),hr(0,5,6,-3,0,9,12,1,0,3,16,2),hr(0,6,6,-3,0,10,14,1,0,4,18,3),hr(0,6,7,-4,0,11,15,1,0,4,20,3),hr(0,7,8,-4,0,12,17,2,0,5,22,4),hr(0,7,8,-4,0,13,19,2,0,5,24,4),hr(0,7,9,-4,0,14,21,2,0,5,26,4),hr(0,8,9,-5,0,15,22,2,0,6,28,5),hr(0,8,10,-5,0,16,24,2,0,6,30,5),hr(0,8,11,-5,0,17,26,2,0,6,32,5),hr(0,9,11,-5,0,18,28,2,0,7,34,6),hr(0,9,12,-6,0,19,29,2,0,7,36,6),hr(0,10,13,-6,0,20,31,3,0,8,38,7),hr(0,10,13,-6,0,21,33,3,0,8,40,7),hr(0,10,14,-6,0,22,35,3,0,8,42,7),hr(0,11,14,-7,0,23,36,3,0,9,44,8),hr(0,11,15,-7,0,24,38,3,0,9,46,8)],gr={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)"},yr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function br(e){return`${Math.round(e)}ms`}function vr(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function xr(e){const t={...gr,...e.easing},n={...yr,...e.duration};return{getAutoHeightDuration:vr,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:s=0,...a}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:br(o)} ${i} ${"string"==typeof s?s:br(s)}`).join(",")},...e,easing:t,duration:n}}const wr={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Sr(e){return kt(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Cr(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!Sr(i)||o.startsWith("unstable_")?delete t[o]:kt(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}const kr=function(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(v(20));const u=or(i),d=Nn(e);let p=Ot(d,{mixins:ur(d.breakpoints,r),palette:u,shadows:mr.slice(),typography:fr(u,a),transitions:xr(s),zIndex:{...wr}});return p=Ot(p,c),p=t.reduce((e,t)=>Ot(e,t),p),p.unstable_sxConfig={...En,...c?.unstable_sxConfig},p.unstable_sx=function(e){return An({sx:e,theme:this})},p.toRuntimeSource=Cr,p};function Mr(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Or=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Mr(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Tr(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Pr(e){return"dark"===e?Or:[]}function Dr(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Er=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],jr=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return Er(e.cssVarPrefix).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Ar(e,t,n){!e[t]&&n&&(e[t]=n)}function Rr(e){return"string"==typeof e&&e.startsWith("hsl")?M(e):e}function Nr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=C(Rr(e[t])))}const Ir=e=>{try{return e()}catch(e){}};function Lr(e,t,n,r){if(!t)return;t=!0===t?{}:t;const o="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=or(t);return{palette:i,opacity:{...Tr(i.mode),...n},overlays:r||Pr(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...s}=kr({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...Tr(o),...t?.opacity},overlays:t?.overlays||Pr(o)},s}function $r(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=Dr,colorSchemeSelector:a=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&"light"!==u?"light":u),p=((e="mui")=>ir(e))(i),{[d]:f,light:h,dark:m,...g}=n,y={...g};let b=f;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(b=!0),!b)throw new Error(v(21,d));const x=Lr(y,b,c,d);h&&!y.light&&Lr(y,h,void 0,"light"),m&&!y.dark&&Lr(y,m,void 0,"dark");let w={defaultColorScheme:d,...x,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:p,colorSchemes:y,font:{...sr(x.typography),...x.font},spacing:(S=c.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(w.colorSchemes).forEach(e=>{const t=w.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};if("light"===t.mode&&(Ar(t.common,"background","#fff"),Ar(t.common,"onBackground","#000")),"dark"===t.mode&&(Ar(t.common,"background","#000"),Ar(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){Ar(t.Alert,"errorColor",E(t.error.light,.6)),Ar(t.Alert,"infoColor",E(t.info.light,.6)),Ar(t.Alert,"successColor",E(t.success.light,.6)),Ar(t.Alert,"warningColor",E(t.warning.light,.6)),Ar(t.Alert,"errorFilledBg",n("palette-error-main")),Ar(t.Alert,"infoFilledBg",n("palette-info-main")),Ar(t.Alert,"successFilledBg",n("palette-success-main")),Ar(t.Alert,"warningFilledBg",n("palette-warning-main")),Ar(t.Alert,"errorFilledColor",Ir(()=>t.getContrastText(t.error.main))),Ar(t.Alert,"infoFilledColor",Ir(()=>t.getContrastText(t.info.main))),Ar(t.Alert,"successFilledColor",Ir(()=>t.getContrastText(t.success.main))),Ar(t.Alert,"warningFilledColor",Ir(()=>t.getContrastText(t.warning.main))),Ar(t.Alert,"errorStandardBg",A(t.error.light,.9)),Ar(t.Alert,"infoStandardBg",A(t.info.light,.9)),Ar(t.Alert,"successStandardBg",A(t.success.light,.9)),Ar(t.Alert,"warningStandardBg",A(t.warning.light,.9)),Ar(t.Alert,"errorIconColor",n("palette-error-main")),Ar(t.Alert,"infoIconColor",n("palette-info-main")),Ar(t.Alert,"successIconColor",n("palette-success-main")),Ar(t.Alert,"warningIconColor",n("palette-warning-main")),Ar(t.AppBar,"defaultBg",n("palette-grey-100")),Ar(t.Avatar,"defaultBg",n("palette-grey-400")),Ar(t.Button,"inheritContainedBg",n("palette-grey-300")),Ar(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ar(t.Chip,"defaultBorder",n("palette-grey-400")),Ar(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ar(t.Chip,"defaultIconColor",n("palette-grey-700")),Ar(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ar(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ar(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ar(t.LinearProgress,"primaryBg",A(t.primary.main,.62)),Ar(t.LinearProgress,"secondaryBg",A(t.secondary.main,.62)),Ar(t.LinearProgress,"errorBg",A(t.error.main,.62)),Ar(t.LinearProgress,"infoBg",A(t.info.main,.62)),Ar(t.LinearProgress,"successBg",A(t.success.main,.62)),Ar(t.LinearProgress,"warningBg",A(t.warning.main,.62)),Ar(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ar(t.Slider,"primaryTrack",A(t.primary.main,.62)),Ar(t.Slider,"secondaryTrack",A(t.secondary.main,.62)),Ar(t.Slider,"errorTrack",A(t.error.main,.62)),Ar(t.Slider,"infoTrack",A(t.info.main,.62)),Ar(t.Slider,"successTrack",A(t.success.main,.62)),Ar(t.Slider,"warningTrack",A(t.warning.main,.62));const e=N(t.background.default,.8);Ar(t.SnackbarContent,"bg",e),Ar(t.SnackbarContent,"color",Ir(()=>t.getContrastText(e))),Ar(t.SpeedDialAction,"fabHoverBg",N(t.background.paper,.15)),Ar(t.StepConnector,"border",n("palette-grey-400")),Ar(t.StepContent,"border",n("palette-grey-400")),Ar(t.Switch,"defaultColor",n("palette-common-white")),Ar(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ar(t.Switch,"primaryDisabledColor",A(t.primary.main,.62)),Ar(t.Switch,"secondaryDisabledColor",A(t.secondary.main,.62)),Ar(t.Switch,"errorDisabledColor",A(t.error.main,.62)),Ar(t.Switch,"infoDisabledColor",A(t.info.main,.62)),Ar(t.Switch,"successDisabledColor",A(t.success.main,.62)),Ar(t.Switch,"warningDisabledColor",A(t.warning.main,.62)),Ar(t.TableCell,"border",A(P(t.divider,1),.88)),Ar(t.Tooltip,"bg",P(t.grey[700],.92))}if("dark"===t.mode){Ar(t.Alert,"errorColor",A(t.error.light,.6)),Ar(t.Alert,"infoColor",A(t.info.light,.6)),Ar(t.Alert,"successColor",A(t.success.light,.6)),Ar(t.Alert,"warningColor",A(t.warning.light,.6)),Ar(t.Alert,"errorFilledBg",n("palette-error-dark")),Ar(t.Alert,"infoFilledBg",n("palette-info-dark")),Ar(t.Alert,"successFilledBg",n("palette-success-dark")),Ar(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ar(t.Alert,"errorFilledColor",Ir(()=>t.getContrastText(t.error.dark))),Ar(t.Alert,"infoFilledColor",Ir(()=>t.getContrastText(t.info.dark))),Ar(t.Alert,"successFilledColor",Ir(()=>t.getContrastText(t.success.dark))),Ar(t.Alert,"warningFilledColor",Ir(()=>t.getContrastText(t.warning.dark))),Ar(t.Alert,"errorStandardBg",E(t.error.light,.9)),Ar(t.Alert,"infoStandardBg",E(t.info.light,.9)),Ar(t.Alert,"successStandardBg",E(t.success.light,.9)),Ar(t.Alert,"warningStandardBg",E(t.warning.light,.9)),Ar(t.Alert,"errorIconColor",n("palette-error-main")),Ar(t.Alert,"infoIconColor",n("palette-info-main")),Ar(t.Alert,"successIconColor",n("palette-success-main")),Ar(t.Alert,"warningIconColor",n("palette-warning-main")),Ar(t.AppBar,"defaultBg",n("palette-grey-900")),Ar(t.AppBar,"darkBg",n("palette-background-paper")),Ar(t.AppBar,"darkColor",n("palette-text-primary")),Ar(t.Avatar,"defaultBg",n("palette-grey-600")),Ar(t.Button,"inheritContainedBg",n("palette-grey-800")),Ar(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ar(t.Chip,"defaultBorder",n("palette-grey-700")),Ar(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ar(t.Chip,"defaultIconColor",n("palette-grey-300")),Ar(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ar(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ar(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ar(t.LinearProgress,"primaryBg",E(t.primary.main,.5)),Ar(t.LinearProgress,"secondaryBg",E(t.secondary.main,.5)),Ar(t.LinearProgress,"errorBg",E(t.error.main,.5)),Ar(t.LinearProgress,"infoBg",E(t.info.main,.5)),Ar(t.LinearProgress,"successBg",E(t.success.main,.5)),Ar(t.LinearProgress,"warningBg",E(t.warning.main,.5)),Ar(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ar(t.Slider,"primaryTrack",E(t.primary.main,.5)),Ar(t.Slider,"secondaryTrack",E(t.secondary.main,.5)),Ar(t.Slider,"errorTrack",E(t.error.main,.5)),Ar(t.Slider,"infoTrack",E(t.info.main,.5)),Ar(t.Slider,"successTrack",E(t.success.main,.5)),Ar(t.Slider,"warningTrack",E(t.warning.main,.5));const e=N(t.background.default,.98);Ar(t.SnackbarContent,"bg",e),Ar(t.SnackbarContent,"color",Ir(()=>t.getContrastText(e))),Ar(t.SpeedDialAction,"fabHoverBg",N(t.background.paper,.15)),Ar(t.StepConnector,"border",n("palette-grey-600")),Ar(t.StepContent,"border",n("palette-grey-600")),Ar(t.Switch,"defaultColor",n("palette-grey-300")),Ar(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ar(t.Switch,"primaryDisabledColor",E(t.primary.main,.55)),Ar(t.Switch,"secondaryDisabledColor",E(t.secondary.main,.55)),Ar(t.Switch,"errorDisabledColor",E(t.error.main,.55)),Ar(t.Switch,"infoDisabledColor",E(t.info.main,.55)),Ar(t.Switch,"successDisabledColor",E(t.success.main,.55)),Ar(t.Switch,"warningDisabledColor",E(t.warning.main,.55)),Ar(t.TableCell,"border",E(P(t.divider,1),.68)),Ar(t.Tooltip,"bg",P(t.grey[700],.92))}Nr(t.background,"default"),Nr(t.background,"paper"),Nr(t.common,"background"),Nr(t.common,"onBackground"),Nr(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ar(t[e],"mainChannel",C(Rr(n.main))),n.light&&Ar(t[e],"lightChannel",C(Rr(n.light))),n.dark&&Ar(t[e],"darkChannel",C(Rr(n.dark))),n.contrastText&&Ar(t[e],"contrastTextChannel",C(Rr(n.contrastText))),"text"===e&&(Nr(t[e],"primary"),Nr(t[e],"secondary")),"action"===e&&(n.active&&Nr(t[e],"active"),n.selected&&Nr(t[e],"selected")))})}),w=t.reduce((e,t)=>Ot(e,t),w);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:jr(w)},{vars:M,generateThemeVars:O,generateStyleSheets:T}=cr(w,k);return w.vars=M,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([e,t])=>{w[e]=t}),w.generateThemeVars=O,w.generateStyleSheets=T,w.generateSpacing=function(){return tn(c.spacing,Kt(this))},w.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...En,...c?.unstable_sxConfig},w.unstable_sx=function(e){return An({sx:e,theme:this})},w.toRuntimeSource=Cr,w}function Fr(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:or({...!0===n?{}:n.palette,mode:t})})}function zr(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...s}=e,a=i||"light",l=o?.[a],c={...o,...n?{[a]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return kr(e,...t);let r=n;"palette"in e||c[a]&&(!0!==c[a]?r=c[a].palette:"dark"===a&&(r={mode:"dark"}));const o=kr({...e,palette:r},...t);return o.defaultColorScheme=a,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Fr(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Fr(o,"light",c.light)),o}return n||"light"in c||"light"!==a||(c.light=!0),$r({...s,colorSchemes:c,defaultColorScheme:a,..."boolean"!=typeof r&&r},...t)}const _r=zr(),Br="$$material",Vr=Vn({themeId:Br,defaultTheme:_r,rootShouldForwardProp:F});function Wr(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=i.useRef(void 0!==t),[a,l]=i.useState(n);return[s?t:a,i.useCallback(e=>{s||l(e)},[])]}const Hr=Wr;const Ur=i.createContext(void 0);function qr(){return i.useContext(Ur)}function Yr(e){try{return e.matches(":focus-visible")}catch(e){0}return!1}function Kr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],s=t[i];if(s)if(o){r[i]={...s};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Kr(o[t],s[t],n)}}else r[i]=s;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=y(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}const Gr=i.createContext(void 0);function Xr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Kr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Kr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:i.useContext(Gr)}})}function Jr(e){return Xr(e)}function Zr(...e){const t=i.useRef(void 0),n=i.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return i.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const Qr=Zr,eo="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;const to=function(e){const t=i.useRef(e);return eo(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current},no=to,ro={};function oo(e,t){const n=i.useRef(ro);return n.current===ro&&(n.current=e(t)),n}class io{static create(){return new io}static use(){const e=oo(io.create).current,[t,n]=i.useState(!1);return e.shouldMount=t,e.setShouldMount=n,i.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function so(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ao(e,t){return ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ao(e,t)}function lo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ao(e,t)}const co=i.default.createContext(null);function uo(e,t){var n=Object.create(null);return e&&i.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)}),n}function po(e,t,n){return null!=n[t]?n[t]:e.props[t]}function fo(e,t,n){var r=uo(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var a={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];a[o[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(t,r);return Object.keys(o).forEach(function(s){var a=o[s];if((0,i.isValidElement)(a)){var l=s in t,c=s in r,u=t[s],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[s]=(0,i.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:po(a,"exit",e),enter:po(a,"enter",e)})):o[s]=(0,i.cloneElement)(a,{in:!1}):o[s]=(0,i.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:po(a,"exit",e),enter:po(a,"enter",e)})}}),o}var ho=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mo=function(e){function t(t,n){var r,o=(r=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}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}lo(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,s=t.handleExited;return{children:t.firstRender?(n=e,r=s,uo(n.children,function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:po(e,"appear",n),enter:po(e,"enter",n),exit:po(e,"exit",n)})})):fo(e,o,s),firstRender:!1}},n.handleExited=function(e,t){var n=uo(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=z({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=so(e,["component","childFactory"]),o=this.state.contextValue,s=ho(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.default.createElement(co.Provider,{value:o},s):i.default.createElement(co.Provider,{value:o},i.default.createElement(t,r,s))},t}(i.default.Component);mo.propTypes={},mo.defaultProps={component:"div",childFactory:function(e){return e}};const go=mo,yo=[];class bo{static create(){return new bo}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vo(){const e=oo(bo.create).current;var t;return t=e.disposeEffect,i.useEffect(t,yo),e}o(4146);var xo=function(e,t){var n=arguments;if(null==t||!ct.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=pt,o[1]=function(e,t){var n={};for(var r in t)ct.call(t,r)&&(n[r]=t[r]);return n[ut]=e,n}(e,t);for(var s=2;s<r;s++)o[s]=n[s];return i.createElement.apply(null,o)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(xo||(xo={}));var wo=at(function(e,t){var n=nt([e.styles],void 0,i.useContext(lt)),r=i.useRef();return it(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,s=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==s&&(i=!0,s.setAttribute("data-emotion",e),o.hydrate([s])),r.current=[o,i],function(){o.flush()}},[t]),it(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&He(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function So(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nt(t)}function Co(){var e=So.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const ko=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:l,in:c,onExited:u,timeout:d}=e,[p,f]=i.useState(!1),h=y(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+o},g=y(n.child,p&&n.childLeaving,r&&n.childPulsate);return c||p||f(!0),i.useEffect(()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}},[u,c,d]),(0,s.jsx)("span",{className:h,style:m,children:(0,s.jsx)("span",{className:g})})},Mo=e=>e,Oo=(()=>{let e=Mo;return{configure(t){e=t},generate:t=>e(t),reset(){e=Mo}}})(),To={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Po(e,t,n="Mui"){const r=To[t];return r?`${n}-${r}`:`${Oo.generate(e)}-${t}`}function Do(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Po(e,t,n)}),r}const Eo=Do("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),jo=Co`
|
|
3
|
+
0% {
|
|
4
|
+
transform: scale(0);
|
|
5
|
+
opacity: 0.1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
100% {
|
|
9
|
+
transform: scale(1);
|
|
10
|
+
opacity: 0.3;
|
|
11
|
+
}
|
|
12
|
+
`,Ao=Co`
|
|
13
|
+
0% {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
100% {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
`,Ro=Co`
|
|
21
|
+
0% {
|
|
22
|
+
transform: scale(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
50% {
|
|
26
|
+
transform: scale(0.92);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
100% {
|
|
30
|
+
transform: scale(1);
|
|
31
|
+
}
|
|
32
|
+
`,No=Vr("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Io=Vr(ko,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
33
|
+
opacity: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
|
|
36
|
+
&.${Eo.rippleVisible} {
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
transform: scale(1);
|
|
39
|
+
animation-name: ${jo};
|
|
40
|
+
animation-duration: ${550}ms;
|
|
41
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.${Eo.ripplePulsate} {
|
|
45
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& .${Eo.child} {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
display: block;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
background-color: currentColor;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
& .${Eo.childLeaving} {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
animation-name: ${Ao};
|
|
60
|
+
animation-duration: ${550}ms;
|
|
61
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .${Eo.childPulsate} {
|
|
65
|
+
position: absolute;
|
|
66
|
+
/* @noflip */
|
|
67
|
+
left: 0px;
|
|
68
|
+
top: 0;
|
|
69
|
+
animation-name: ${Ro};
|
|
70
|
+
animation-duration: 2500ms;
|
|
71
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
72
|
+
animation-iteration-count: infinite;
|
|
73
|
+
animation-delay: 200ms;
|
|
74
|
+
}
|
|
75
|
+
`,Lo=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...l}=n,[c,u]=i.useState([]),d=i.useRef(0),p=i.useRef(null);i.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const f=i.useRef(!1),h=vo(),m=i.useRef(null),g=i.useRef(null),b=i.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;u(e=>[...e,(0,s.jsx)(Io,{classes:{ripple:y(o.ripple,Eo.ripple),rippleVisible:y(o.rippleVisible,Eo.rippleVisible),ripplePulsate:y(o.ripplePulsate,Eo.ripplePulsate),child:y(o.child,Eo.child),childLeaving:y(o.childLeaving,Eo.childLeaving),childPulsate:y(o.childPulsate,Eo.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},d.current)]),d.current+=1,p.current=a},[o]),v=i.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const a=s?null:g.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,()=>{m.current&&(m.current(),m.current=null)})):b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,b,h]),x=i.useCallback(()=>{v({},{pulsate:!0})},[v]),w=i.useCallback((e,t)=>{if(h.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void h.start(0,()=>{w(e,t)});m.current=null,u(e=>e.length>0?e.slice(1):e),p.current=t},[h]);return i.useImperativeHandle(t,()=>({pulsate:x,start:v,stop:w}),[x,v,w]),(0,s.jsx)(No,{className:y(Eo.root,o.root,a),ref:g,...l,children:(0,s.jsx)(go,{component:null,exit:!0,children:c})})}),$o=Lo;function Fo(e){return Po("MuiButtonBase",e)}const zo=Do("MuiButtonBase",["root","disabled","focusVisible"]),_o=Vr("button",{name:"MuiButtonBase",slot:"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"},[`&.${zo.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Bo=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:g,onClick:v,onContextMenu:x,onDragLeave:w,onFocus:S,onFocusVisible:C,onKeyDown:k,onKeyUp:M,onMouseDown:O,onMouseLeave:T,onMouseUp:P,onTouchEnd:D,onTouchMove:E,onTouchStart:j,tabIndex:A=0,TouchRippleProps:R,touchRippleRef:N,type:I,...L}=n,$=i.useRef(null),F=io.use(),z=Qr(F.ref,N),[_,B]=i.useState(!1);u&&_&&B(!1),i.useImperativeHandle(r,()=>({focusVisible:()=>{B(!0),$.current.focus()}}),[]);const V=F.shouldMount&&!d&&!u;i.useEffect(()=>{_&&f&&!d&&F.pulsate()},[d,f,_,F]);const W=Vo(F,"start",O,p),H=Vo(F,"stop",x,p),U=Vo(F,"stop",w,p),q=Vo(F,"stop",P,p),Y=Vo(F,"stop",e=>{_&&e.preventDefault(),T&&T(e)},p),K=Vo(F,"start",j,p),G=Vo(F,"stop",D,p),X=Vo(F,"stop",E,p),J=Vo(F,"stop",e=>{Yr(e.target)||B(!1),g&&g(e)},!1),Z=no(e=>{$.current||($.current=e.currentTarget),Yr(e.target)&&(B(!0),C&&C(e)),S&&S(e)}),Q=()=>{const e=$.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ee=no(e=>{f&&!e.repeat&&_&&" "===e.key&&F.stop(e,()=>{F.start(e)}),e.target===e.currentTarget&&Q()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&Q()&&"Enter"===e.key&&!u&&(e.preventDefault(),v&&v(e))}),te=no(e=>{f&&" "===e.key&&_&&!e.defaultPrevented&&F.stop(e,()=>{F.pulsate(e)}),M&&M(e),v&&e.target===e.currentTarget&&Q()&&" "===e.key&&!e.defaultPrevented&&v(e)});let ne=c;"button"===ne&&(L.href||L.to)&&(ne=m);const re={};"button"===ne?(re.type=void 0===I?"button":I,re.disabled=u):(L.href||L.to||(re.role="button"),u&&(re["aria-disabled"]=u));const oe=Qr(t,$),ie={...n,centerRipple:o,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:A,focusVisible:_},se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=b({root:["root",t&&"disabled",n&&"focusVisible"]},Fo,o);return n&&r&&(i.root+=` ${r}`),i})(ie);return(0,s.jsxs)(_o,{as:ne,className:y(se.root,l),ownerState:ie,onBlur:J,onClick:v,onContextMenu:H,onFocus:Z,onKeyDown:ee,onKeyUp:te,onMouseDown:W,onMouseLeave:Y,onMouseUp:q,onDragLeave:U,onTouchEnd:G,onTouchMove:X,onTouchStart:K,ref:oe,tabIndex:u?-1:A,type:I,...re,...L,children:[a,V?(0,s.jsx)($o,{ref:z,center:o,...R}):null]})});function Vo(e,t,n,r=!1){return no(o=>(n&&n(o),r||e[t](o),!0))}const Wo=Bo;function Ho(e){return Po("PrivateSwitchBase",e)}Do("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Uo=function(e){return"string"==typeof e};const qo=function(e,t,n){return void 0===e||Uo(e)?t:{...t,ownerState:{...t.ownerState,...n}}};const Yo=function(e,t,n){return"function"==typeof e?e(t,n):e};const Ko=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};const Go=function(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};const Xo=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=y(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},s={...n,...o,...r};return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=Ko({...o,...r}),a=Go(r),l=Go(o),c=t(s),u=y(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...l,...a};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}};function Jo(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=Yo(d[e],o),{props:{component:m,...g},internalRef:y}=Xo({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),b=Zr(y,h?.ref,t.ref),v="root"===e?m||c:m;return[f,qo(f,{..."root"===e&&!c&&!u[e]&&s,..."root"!==e&&!u[e]&&s,...g,...v&&!a&&{as:v},...v&&a&&{component:v},ref:b},o)]}const Zo=Vr(Wo,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),Qo=Vr("input",{name:"MuiSwitchBase",shouldForwardProp:F})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ei=i.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:y,readOnly:v,required:x=!1,tabIndex:w,type:S,value:C,slots:k={},slotProps:M={},...O}=e,[T,P]=Hr({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),D=qr();let E=a;D&&void 0===E&&(E=D.disabled);const j="checkbox"===S||"radio"===S,A={...e,checked:T,disabled:E,disableFocusRipple:l,edge:c},R=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return b({root:["root",n&&"checked",r&&"disabled",o&&`edge${L(o)}`],input:["input"]},Ho,t)})(A),N={slots:k,slotProps:{input:p,...M}},[I,$]=Jo("root",{ref:t,elementType:Zo,className:R.root,shouldForwardComponentProp:!0,externalForwardedProps:{...N,component:"span",...O},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{y&&y(e),D&&D.onFocus&&D.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{m&&m(e),D&&D.onBlur&&D.onBlur(e)})(t)}}),ownerState:A,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:E,role:void 0,tabIndex:null}}),[F,z]=Jo("input",{ref:f,elementType:Qo,className:R.input,externalForwardedProps:N,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;P(t),g&&g(e,t)})(t)}}),ownerState:A,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:E,id:j?d:void 0,name:h,readOnly:v,required:x,tabIndex:w,type:S,..."checkbox"===S&&void 0===C?{}:{value:C}}});return(0,s.jsxs)(I,{...$,children:[(0,s.jsx)(F,{...z}),T?o:u]})}),ti=ei,ni={theme:void 0};const ri=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(ni.theme=r.theme,o=In(e(ni)),t=o,n=r.theme),o}};function oi(e){return Po("MuiSvgIcon",e)}Do("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ii=Vr("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${L(n.color)}`],t[`fontSize${L(n.fontSize)}`]]}})(ri(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),si=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",...h}=n,m=i.isValidElement(r)&&"svg"===r.type,g={...n,color:a,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:m},v={};d||(v.viewBox=f);const x=(e=>{const{color:t,fontSize:n,classes:r}=e;return b({root:["root","inherit"!==t&&`color${L(t)}`,`fontSize${L(n)}`]},oi,r)})(g);return(0,s.jsxs)(ii,{as:l,className:y(x.root,o),focusable:"false",color:u,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:t,...v,...h,...m&&r.props,ownerState:g,children:[m?r.props.children:r,p?(0,s.jsx)("title",{children:p}):null]})});si.muiName="SvgIcon";const ai=si;function li(e,t){function n(t,n){return(0,s.jsx)(ai,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ai.muiName,i.memo(i.forwardRef(n))}const ci=li((0,s.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"})),ui=li((0,s.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"})),di=li((0,s.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"}));function pi(e){return Po("MuiCheckbox",e)}const fi=Do("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function hi(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function mi(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,s=y(r?.className,o?.className,i?.className),a=n(i,o);return{...o,...i,...a,...!!s&&{className:s},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=y(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const gi=Vr(ti,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${L(n.size)}`],"default"!==n.color&&t[`color${L(n.color)}`]]}})(ri(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{[`&.${fi.checked}, &.${fi.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${fi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),yi=(0,s.jsx)(ui,{}),bi=(0,s.jsx)(ci,{}),vi=(0,s.jsx)(di,{}),xi=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiCheckbox"}),{checkedIcon:r=yi,color:o="primary",icon:a=bi,indeterminate:l=!1,indeterminateIcon:c=vi,inputProps:u,size:d="medium",disableRipple:p=!1,className:f,slots:h={},slotProps:m={},...g}=n,v=l?c:a,x=l?c:r,w={...n,disableRipple:p,color:o,indeterminate:l,size:d},S=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=b({root:["root",n&&"indeterminate",`color${L(r)}`,`size${L(o)}`]},pi,t);return{...t,...i}})(w),C=m.input??u,[k,M]=Jo("root",{ref:t,elementType:gi,className:y(S.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:m,...g},ownerState:w,additionalProps:{type:"checkbox",icon:i.cloneElement(v,{fontSize:v.props.fontSize??d}),checkedIcon:i.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:p,slots:h,slotProps:{input:mi("function"==typeof C?C(w):C,{"data-indeterminate":l})}}});return(0,s.jsx)(k,{...M,classes:S})}),wi=xi;function Si(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ci(e,t=!1){return e&&(Si(e.value)&&""!==e.value||t&&Si(e.defaultValue)&&""!==e.defaultValue)}const ki=function(e,t){return i.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};function Mi(e){return Po("MuiFormControl",e)}Do("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oi=Vr("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${L(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ti=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:f=!1,margin:h="none",required:m=!1,size:g="medium",variant:v="outlined",...x}=n,w={...n,color:a,component:l,disabled:c,error:u,fullWidth:p,hiddenLabel:f,margin:h,required:m,size:g,variant:v},S=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return b({root:["root","none"!==n&&`margin${L(n)}`,r&&"fullWidth"]},Mi,t)})(w),[C,k]=i.useState(()=>{let e=!1;return r&&i.Children.forEach(r,t=>{if(!ki(t,["Input","Select"]))return;const n=ki(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[M,O]=i.useState(()=>{let e=!1;return r&&i.Children.forEach(r,t=>{ki(t,["Input","Select"])&&(Ci(t.props,!0)||Ci(t.props.inputProps,!0))&&(e=!0)}),e}),[T,P]=i.useState(!1);c&&T&&P(!1);const D=void 0===d||c?T:d;let E;i.useRef(!1);const j=i.useCallback(()=>{O(!0)},[]),A=i.useCallback(()=>{O(!1)},[]),R=i.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:a,disabled:c,error:u,filled:M,focused:D,fullWidth:p,hiddenLabel:f,size:g,onBlur:()=>{P(!1)},onFocus:()=>{P(!0)},onEmpty:A,onFilled:j,registerEffect:E,required:m,variant:v}),[C,a,c,u,M,D,p,f,E,A,j,m,g,v]);return(0,s.jsx)(Ur.Provider,{value:R,children:(0,s.jsx)(Oi,{as:l,ownerState:w,className:y(S.root,o),ref:t,...x,children:r})})}),Pi=Ti;function Di({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}function Ei(e){return Po("MuiFormHelperText",e)}const ji=Do("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ai;const Ri=Vr("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${L(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ri(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ji.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ji.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Ni=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:p,variant:f,...h}=n,m=Di({props:n,muiFormControl:qr(),states:["variant","size","disabled","error","filled","focused","required"]}),g={...n,component:i,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete g.ownerState;const v=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e;return b({root:["root",o&&"disabled",i&&"error",r&&`size${L(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]},Ei,t)})(g);return(0,s.jsx)(Ri,{as:i,className:y(v.root,o),ref:t,...h,ownerState:g,children:" "===r?Ai||(Ai=(0,s.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function Ii(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Li=0;const $i={...i}.useId;function Fi(e){if(void 0!==$i){const t=$i();return e??t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect(()=>{null==t&&(Li+=1,n(`mui-${Li}`))},[t]),r}(e)}const zi=e=>{const t=i.useRef({});return i.useEffect(()=>{t.current=e}),t.current};function _i(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const Bi=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(e,{inputValue:a,getOptionLabel:l})=>{let c=s?a.trim():a;n&&(c=c.toLowerCase()),t&&(c=_i(c));const u=c?e.filter(e=>{let r=(i||l)(e);return n&&(r=r.toLowerCase()),t&&(r=_i(r)),"start"===o?r.startsWith(c):r.includes(c)}):e;return"number"==typeof r?u.slice(0,r):u}}(),Vi=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),Wi=[];function Hi(e,t,n,r){if(t||null==e||r)return"";const o=n(e);return"string"==typeof o?o:""}const Ui=function(e){const{unstable_isActiveElementInListbox:t=Vi,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?Wi:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:y=Bi,filterSelectedOptions:b=!1,freeSolo:v=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:S=e=>e.label??e,groupBy:C,handleHomeEndKeys:k=!e.freeSolo,id:M,includeInputInList:O=!1,inputValue:T,isOptionEqualToValue:P=(e,t)=>e===t,multiple:D=!1,onChange:E,onClose:j,onHighlightChange:A,onInputChange:R,onOpen:N,open:I,openOnFocus:L=!1,options:$,readOnly:F=!1,renderValue:z,selectOnFocus:_=!e.freeSolo,value:B}=e,V=Fi(M);let W=S;W=e=>{const t=S(e);return"string"!=typeof t?String(t):t};const H=i.useRef(!1),U=i.useRef(!0),q=i.useRef(null),Y=i.useRef(null),[K,G]=i.useState(null),[X,J]=i.useState(-1),Z=o?0:-1,Q=i.useRef(Z),ee=i.useRef(Hi(d??B,D,W)).current,[te,ne]=Wr({controlled:B,default:d,name:u}),[re,oe]=Wr({controlled:T,default:ee,name:u,state:"inputValue"}),[ie,se]=i.useState(!1),ae=i.useCallback((e,t,n)=>{if(!(D?te.length<t.length:null!==t)&&!l)return;const r=Hi(t,D,W,z);re!==r&&(oe(r),R&&R(e,r,n))},[W,re,D,R,oe,l,te,z]),[le,ce]=Wr({controlled:I,default:!1,name:u,state:"open"}),[ue,de]=i.useState(!0),pe=!D&&null!=te&&re===W(te),fe=le&&!F,he=fe?y($.filter(e=>!b||!(D?te:[te]).some(t=>null!==t&&P(e,t))),{inputValue:pe&&ue?"":re,getOptionLabel:W}):[],me=zi({filteredOptions:he,value:te,inputValue:re});i.useEffect(()=>{const e=te!==me.value;ie&&!e||v&&!e||ae(null,te,"reset")},[te,ae,ie,me.value,v]);const ge=le&&he.length>0&&!F,ye=to(e=>{if(-1===e)q.current.focus();else{const t=z?"data-item-index":"data-tag-index";K.querySelector(`[${t}="${e}"]`).focus()}});i.useEffect(()=>{D&&X>te.length-1&&(J(-1),ye(-1))},[te,D,X,ye]);const be=to(({event:e,index:t,reason:r})=>{if(Q.current=t,-1===t?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${V}-option-${t}`),A&&["mouse","keyboard","touch"].includes(r)&&A(e,-1===t?null:he[t],r),!Y.current)return;const o=Y.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let i=Y.current;if("listbox"!==Y.current.getAttribute("role")&&(i=Y.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const s=Y.current.querySelector(`[data-option-index="${t}"]`);if(s&&(s.classList.add(`${n}-focused`),"keyboard"===r&&s.classList.add(`${n}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=s,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))}}),ve=to(({event:e,diff:t,direction:n="next",reason:o})=>{if(!fe)return;const i=function(e,t){if(!Y.current||e<0||e>=he.length)return-1;let n=e;for(;;){const r=Y.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%he.length:(n-1+he.length)%he.length,n===e)return-1}}((()=>{const e=he.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const n=Q.current+t;return n<0?-1===n&&O?-1:g&&-1!==Q.current||Math.abs(t)>1?0:e:n>e?n===e+1&&O?-1:g||Math.abs(t)>1?e:0:n})(),n);if(be({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)q.current.value=re;else{const e=W(he[i]);q.current.value=e;0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&q.current.setSelectionRange(re.length,e.length)}}),xe=i.useCallback(()=>{if(!fe)return;const e=(()=>{if(-1!==Q.current&&me.filteredOptions&&me.filteredOptions.length!==he.length&&me.inputValue===re&&(D?te.length===me.value.length&&me.value.every((e,t)=>W(te[t])===W(e)):(e=me.value,t=te,(e?W(e):"")===(t?W(t):"")))){const e=me.filteredOptions[Q.current];if(e)return he.findIndex(t=>W(t)===W(e))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=D?te[0]:te;if(0!==he.length&&null!=t){if(Y.current){if(null!=t){const e=he[Q.current];if(D&&e&&-1!==te.findIndex(t=>P(e,t)))return;const n=he.findIndex(e=>P(e,t));return void(-1===n?ve({diff:"reset"}):be({index:n}))}Q.current>=he.length-1?be({index:he.length-1}):be({index:Q.current})}}else ve({diff:"reset"})},[he.length,!D&&te,b,ve,be,fe,re,D]),we=to(e=>{Ii(Y,e),e&&xe()});i.useEffect(()=>{xe()},[xe]);const Se=e=>{le||(ce(!0),de(!0),N&&N(e))},Ce=(e,t)=>{le&&(ce(!1),j&&j(e,t))},ke=(e,t,n,r)=>{if(D){if(te.length===t.length&&te.every((e,n)=>e===t[n]))return}else if(te===t)return;E&&E(e,t,n,r),ne(t)},Me=i.useRef(!1),Oe=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(D){i=Array.isArray(te)?te.slice():[];const e=i.findIndex(e=>P(t,e));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}ae(e,i,o),ke(e,i,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||Ce(e,o),(!0===a||"touch"===a&&Me.current||"mouse"===a&&!Me.current)&&q.current.blur()},Te=(e,t)=>{if(!D)return;""===re&&Ce(e,"toggleInput");let n=X;-1===X?""===re&&"previous"===t&&(n=te.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===te.length||"previous"===t&&-1===n)return-1;const e=z?"data-item-index":"data-tag-index",r=K.querySelector(`[${e}="${n}"]`);if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),J(n),ye(n)},Pe=e=>{H.current=!0,oe(""),R&&R(e,"","clear"),ke(e,D?[]:null,"clear")},De=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===X||["ArrowLeft","ArrowRight"].includes(t.key)||(J(-1),ye(-1)),229!==t.which))switch(t.key){case"Home":fe&&k&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&k&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),Se(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),Se(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),Se(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),Se(t);break;case"ArrowLeft":!D&&z?ye(0):Te(t,"previous");break;case"ArrowRight":!D&&z?ye(-1):Te(t,"next");break;case"Enter":if(-1!==Q.current&&fe){const e=he[Q.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Oe(t,e,"selectOption"),r&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else v&&""!==re&&!1===pe&&(D&&t.preventDefault(),Oe(t,re,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Ce(t,"escape")):c&&(""!==re||D&&te.length>0||z)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(D&&!F&&""===re&&te.length>0){const e=-1===X?te.length-1:X,n=te.slice();n.splice(e,1),ke(t,n,"removeOption",{option:te[e]})}D||!z||F||(ne(null),ye(-1));break;case"Delete":if(D&&!F&&""===re&&te.length>0&&-1!==X){const e=X,n=te.slice();n.splice(e,1),ke(t,n,"removeOption",{option:te[e]})}D||!z||F||(ne(null),ye(-1))}},Ee=e=>{se(!0),L&&!H.current&&Se(e)},je=e=>{t(Y)?q.current.focus():(se(!1),U.current=!0,H.current=!1,s&&-1!==Q.current&&fe?Oe(e,he[Q.current],"blur"):s&&v&&""!==re?Oe(e,re,"blur","freeSolo"):l&&ae(e,te,"blur"),Ce(e,"blur"))},Ae=e=>{const t=e.target.value;re!==t&&(oe(t),de(!1),R&&R(e,t,"input")),""===t?p||D||ke(e,null,"clear"):Se(e)},Re=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&be({event:e,index:t,reason:"mouse"})},Ne=e=>{be({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Me.current=!0},Ie=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Oe(e,he[t],"selectOption"),Me.current=!1},Le=e=>t=>{const n=te.slice();n.splice(e,1),ke(t,n,"removeOption",{option:te[e]})},$e=e=>{ke(e,null,"removeOption",{option:te})},Fe=e=>{le?Ce(e,"toggleInput"):Se(e)},ze=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==V&&e.preventDefault()},_e=e=>{e.currentTarget.contains(e.target)&&(q.current.focus(),_&&U.current&&q.current.selectionEnd-q.current.selectionStart===0&&q.current.select(),U.current=!1)},Be=e=>{h||""!==re&&le||Fe(e)};let Ve=v&&re.length>0;Ve=Ve||(D?te.length>0:null!==te);let We=he;if(C){new Map;We=he.reduce((e,t,n)=>{const r=C(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])}return h&&ie&&je(),{getRootProps:(e={})=>({...e,onKeyDown:De(e),onMouseDown:ze,onClick:_e}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:re,onBlur:je,onFocus:Ee,onChange:Ae,onMouseDown:Be,"aria-activedescendant":fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ge?`${V}-listbox`:void 0,"aria-expanded":ge,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getItemProps:({index:e=0}={})=>({...D&&{key:e},...z?{"data-item-index":e}:{"data-tag-index":e},tabIndex:-1,...!F&&{onDelete:D?Le(e):$e}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Fe}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!F&&{onDelete:Le(e)}}),getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(D?te:[te]).some(e=>null!=e&&P(t,e)),r=!!x&&x(t);return{key:w?.(t)??W(t),tabIndex:-1,role:"option",id:`${V}-option-${e}`,onMouseMove:Re,onClick:Ie,onTouchStart:Ne,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:V,inputValue:re,value:te,dirty:Ve,expanded:fe&&K,popupOpen:fe,focused:ie||-1!==X,anchorEl:K,setAnchorEl:G,focusedItem:X,focusedTag:X,groupedOptions:We}},qi=i.createContext();const Yi=()=>i.useContext(qi)??!1;function Ki(e){return e&&e.ownerDocument||document}function Gi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xi(e){return e instanceof Gi(e).Element||e instanceof Element}function Ji(e){return e instanceof Gi(e).HTMLElement||e instanceof HTMLElement}function Zi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Gi(e).ShadowRoot||e instanceof ShadowRoot)}var Qi=Math.max,es=Math.min,ts=Math.round;function ns(){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 rs(){return!/^((?!chrome|android).)*safari/i.test(ns())}function is(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ji(e)&&(o=e.offsetWidth>0&&ts(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ts(r.height)/e.offsetHeight||1);var s=(Xi(e)?Gi(e):window).visualViewport,a=!rs()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,c=(r.top+(a&&s?s.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function ss(e){var t=Gi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function as(e){return e?(e.nodeName||"").toLowerCase():null}function ls(e){return((Xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function cs(e){return is(ls(e)).left+ss(e).scrollLeft}function us(e){return Gi(e).getComputedStyle(e)}function ds(e){var t=us(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ps(e,t,n){void 0===n&&(n=!1);var r=Ji(t),o=Ji(t)&&function(e){var t=e.getBoundingClientRect(),n=ts(t.width)/e.offsetWidth||1,r=ts(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=ls(t),s=is(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==as(t)||ds(i))&&(a=function(e){return e!==Gi(e)&&Ji(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ss(e);var t}(t)),Ji(t)?((l=is(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=cs(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function fs(e){var t=is(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hs(e){return"html"===as(e)?e:e.assignedSlot||e.parentNode||(Zi(e)?e.host:null)||ls(e)}function ms(e){return["html","body","#document"].indexOf(as(e))>=0?e.ownerDocument.body:Ji(e)&&ds(e)?e:ms(hs(e))}function gs(e,t){var n;void 0===t&&(t=[]);var r=ms(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Gi(r),s=o?[i].concat(i.visualViewport||[],ds(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(gs(hs(s)))}function ys(e){return["table","td","th"].indexOf(as(e))>=0}function bs(e){return Ji(e)&&"fixed"!==us(e).position?e.offsetParent:null}function vs(e){for(var t=Gi(e),n=bs(e);n&&ys(n)&&"static"===us(n).position;)n=bs(n);return n&&("html"===as(n)||"body"===as(n)&&"static"===us(n).position)?t:n||function(e){var t=/firefox/i.test(ns());if(/Trident/i.test(ns())&&Ji(e)&&"fixed"===us(e).position)return null;var n=hs(e);for(Zi(n)&&(n=n.host);Ji(n)&&["html","body"].indexOf(as(n))<0;){var r=us(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var xs="top",ws="bottom",Ss="right",Cs="left",ks="auto",Ms=[xs,ws,Ss,Cs],Os="start",Ts="end",Ps="viewport",Ds="popper",Es=Ms.reduce(function(e,t){return e.concat([t+"-"+Os,t+"-"+Ts])},[]),js=[].concat(Ms,[ks]).reduce(function(e,t){return e.concat([t,t+"-"+Os,t+"-"+Ts])},[]),As=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Rs(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var Ns={placement:"bottom",modifiers:[],strategy:"absolute"};function Is(){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 Ls(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Ns:o;return function(e,t,n){void 0===n&&(n=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ns,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:Xi(e)?gs(e):e.contextElement?gs(e.contextElement):[],popper:gs(t)};var s=function(e){var t=Rs(e);return As.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(r,a.options.modifiers)));return a.orderedModifiers=s.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:u,options:r}),s=function(){};l.push(i||s)}}),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Is(t,n)){a.rects={reference:ps(t,vs(n),"fixed"===a.options.strategy),popper:fs(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,s=o.options,l=void 0===s?{}:s,d=o.name;"function"==typeof i&&(a=i({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(o())})})),s}),destroy:function(){d(),c=!0}};if(!Is(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var $s={passive:!0};const Fs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=Gi(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,$s)}),a&&l.addEventListener("resize",n.update,$s),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,$s)}),a&&l.removeEventListener("resize",n.update,$s)}},data:{}};function zs(e){return e.split("-")[0]}function _s(e){return e.split("-")[1]}function Bs(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vs(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?zs(o):null,s=o?_s(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case xs:t={x:a,y:n.y-r.height};break;case ws:t={x:a,y:n.y+n.height};break;case Ss:t={x:n.x+n.width,y:l};break;case Cs:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Bs(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Os:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ts:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Ws={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hs(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,f=void 0===p?0:p,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),v=Cs,x=xs,w=window;if(c){var S=vs(n),C="clientHeight",k="clientWidth";if(S===Gi(n)&&"static"!==us(S=ls(n)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),o===xs||(o===Cs||o===Ss)&&i===Ts)x=ws,m-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[C])-r.height,m*=l?1:-1;if(o===Cs||(o===xs||o===ws)&&i===Ts)v=Ss,f-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[k])-r.width,f*=l?1:-1}var M,O=Object.assign({position:a},c&&Ws),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ts(n*o)/o||0,y:ts(r*o)/o||0}}({x:f,y:m},Gi(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},O,((M={})[x]=b?"0":"",M[v]=y?"0":"",M.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",M)):Object.assign({},O,((t={})[x]=b?m+"px":"",t[v]=y?f+"px":"",t.transform="",t))}const Us={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,c={placement:zs(t.placement),variation:_s(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Hs(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hs(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const qs={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]||{},r=t.attributes[e]||{},o=t.elements[e];Ji(o)&&as(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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 r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ji(r)&&as(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};const Ys={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=js.reduce(function(e,n){return e[n]=function(e,t,n){var r=zs(e),o=[Cs,xs].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Cs,Ss].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var Ks={left:"right",right:"left",bottom:"top",top:"bottom"};function Gs(e){return e.replace(/left|right|bottom|top/g,function(e){return Ks[e]})}var Xs={start:"end",end:"start"};function Js(e){return e.replace(/start|end/g,function(e){return Xs[e]})}function Zs(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,n){return t===Ps?Qs(function(e,t){var n=Gi(e),r=ls(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=rs();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+cs(e),y:l}}(e,n)):Xi(t)?function(e,t){var n=is(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):Qs(function(e){var t,n=ls(e),r=ss(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Qi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Qi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+cs(e),l=-r.scrollTop;return"rtl"===us(o||n).direction&&(a+=Qi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(ls(e)))}function ta(e,t,n,r){var o="clippingParents"===t?function(e){var t=gs(hs(e)),n=["absolute","fixed"].indexOf(us(e).position)>=0&&Ji(e)?vs(e):e;return Xi(n)?t.filter(function(e){return Xi(e)&&Zs(e,n)&&"body"!==as(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(t,n){var o=ea(e,n,r);return t.top=Qi(o.top,t.top),t.right=es(o.right,t.right),t.bottom=es(o.bottom,t.bottom),t.left=Qi(o.left,t.left),t},ea(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function na(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ra(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function oa(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?Ps:c,d=n.elementContext,p=void 0===d?Ds:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,y=na("number"!=typeof g?g:ra(g,Ms)),b=p===Ds?"reference":Ds,v=e.rects.popper,x=e.elements[h?b:p],w=ta(Xi(x)?x:x.contextElement||ls(e.elements.popper),l,u,s),S=is(e.elements.reference),C=Vs({reference:S,element:v,strategy:"absolute",placement:o}),k=Qs(Object.assign({},v,C)),M=p===Ds?k:S,O={top:w.top-M.top+y.top,bottom:M.bottom-w.bottom+y.bottom,left:w.left-M.left+y.left,right:M.right-w.right+y.right},T=e.modifiersData.offset;if(p===Ds&&T){var P=T[o];Object.keys(O).forEach(function(e){var t=[Ss,ws].indexOf(e)>=0?1:-1,n=[xs,ws].indexOf(e)>=0?"y":"x";O[e]+=P[n]*t})}return O}const ia={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,y=zs(g),b=l||(y===g||!h?[Gs(g)]:function(e){if(zs(e)===ks)return[];var t=Gs(e);return[Js(e),t,Js(t)]}(g)),v=[g].concat(b).reduce(function(e,n){return e.concat(zs(n)===ks?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?js:l,u=_s(r),d=u?a?Es:Es.filter(function(e){return _s(e)===u}):Ms,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=oa(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[zs(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,k=v[0],M=0;M<v.length;M++){var O=v[M],T=zs(O),P=_s(O)===Os,D=[xs,ws].indexOf(T)>=0,E=D?"width":"height",j=oa(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),A=D?P?Ss:Cs:P?ws:xs;x[E]>w[E]&&(A=Gs(A));var R=Gs(A),N=[];if(i&&N.push(j[T]<=0),a&&N.push(j[A]<=0,j[R]<=0),N.every(function(e){return e})){k=O,C=!1;break}S.set(O,N)}if(C)for(var I=function(e){var t=v.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},L=h?3:1;L>0;L--){if("break"===I(L))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sa(e,t,n){return Qi(e,es(t,n))}const aa={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=oa(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=zs(t.placement),b=_s(t.placement),v=!b,x=Bs(y),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,M="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(i){var D,E="y"===x?xs:Cs,j="y"===x?ws:Ss,A="y"===x?"height":"width",R=S[x],N=R+g[E],I=R-g[j],L=f?-k[A]/2:0,$=b===Os?C[A]:k[A],F=b===Os?-k[A]:-C[A],z=t.elements.arrow,_=f&&z?fs(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=B[E],W=B[j],H=sa(0,C[A],_[A]),U=v?C[A]/2-L-H-V-O.mainAxis:$-H-V-O.mainAxis,q=v?-C[A]/2+L+H+W+O.mainAxis:F+H+W+O.mainAxis,Y=t.elements.arrow&&vs(t.elements.arrow),K=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(D=null==T?void 0:T[x])?D:0,X=R+q-G,J=sa(f?es(N,R+U-G-K):N,R,f?Qi(I,X):I);S[x]=J,P[x]=J-R}if(a){var Z,Q="x"===x?xs:Cs,ee="x"===x?ws:Ss,te=S[w],ne="y"===w?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[xs,Cs].indexOf(y),se=null!=(Z=null==T?void 0:T[w])?Z:0,ae=ie?re:te-C[ne]-k[ne]-se+O.altAxis,le=ie?te+C[ne]+k[ne]-se-O.altAxis:oe,ce=f&&ie?function(e,t,n){var r=sa(e,t,n);return r>n?n:r}(ae,te,le):sa(f?ae:re,te,f?le:oe);S[w]=ce,P[w]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};const la={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=zs(n.placement),l=Bs(a),c=[Cs,Ss].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return na("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ra(e,Ms))}(o.padding,n),d=fs(i),p="y"===l?xs:Cs,f="y"===l?ws:Ss,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],g=vs(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,v=u[p],x=y-d[c]-u[f],w=y/2-d[c]/2+b,S=sa(v,w,x),C=l;n.modifiersData[r]=((t={})[C]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Zs(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ca(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 ua(e){return[xs,Ss,ws,Cs].some(function(t){return e[t]>=0})}var da=Ls({defaultModifiers:[Fs,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Vs({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Us,qs,Ys,ia,aa,la,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=oa(t,{elementContext:"reference"}),a=oa(t,{altBoundary:!0}),l=ca(s,r),c=ca(a,o,i),u=ua(l),d=ua(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const pa=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:Yo(n,r),{props:a,internalRef:l}=Xo({...i,externalSlotProps:s}),c=Zr(l,s?.ref,e.additionalProps?.ref);return qo(t,{...a,ref:c},r)};var fa=o(7516);function ha(e){return parseInt(i.version,10)>=19?e?.props?.ref||null:e?.ref||null}const ma=i.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[s,a]=i.useState(null),l=Zr(i.isValidElement(n)?ha(n):null,t);if(eo(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),eo(()=>{if(s&&!o)return Ii(t,s),()=>{Ii(t,null)}},[t,s,o]),o){if(i.isValidElement(n)){const e={ref:l};return i.cloneElement(n,e)}return n}return s?fa.createPortal(n,s):s});function ga(e){return Po("MuiPopper",e)}Do("MuiPopper",["root"]);function ya(e){return"function"==typeof e?e():e}function ba(e){return void 0!==e.nodeType}const va={},xa=i.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:m,ownerState:g,...y}=e,v=i.useRef(null),x=Zr(v,t),w=i.useRef(null),S=Zr(w,p),C=i.useRef(S);eo(()=>{C.current=S},[S]),i.useImperativeHandle(p,()=>w.current,[]);const k=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}}(u,o),[M,O]=i.useState(k),[T,P]=i.useState(ya(n));i.useEffect(()=>{w.current&&w.current.forceUpdate()}),i.useEffect(()=>{n&&P(ya(n))},[n]),eo(()=>{if(!T||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{O(e.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=da(T,v.current,{placement:k,...d,modifiers:e});return C.current(t),()=>{t.destroy(),C.current(null)}},[T,a,l,c,d,k]);const D={placement:M};null!==m&&(D.TransitionProps=m);const E=(e=>{const{classes:t}=e;return b({root:["root"]},ga,t)})(e),j=h.root??"div",A=pa({elementType:j,externalSlotProps:f.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:E.root});return(0,s.jsx)(j,{...A,children:"function"==typeof r?r(D):r})}),wa=i.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=va,popperRef:h,style:m,transition:g=!1,slotProps:y={},slots:b={},...v}=e,[x,w]=i.useState(!0);if(!c&&!d&&(!g||x))return null;let S;if(o)S=o;else if(n){const e=ya(n);S=e&&ba(e)?Ki(e).body:Ki(null).body}const C=d||!c||g&&!x?void 0:"none",k=g?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,s.jsx)(ma,{disablePortal:l,container:S,children:(0,s.jsx)(xa,{anchorEl:n,direction:a,disablePortal:l,modifiers:u,ref:t,open:g?!x:d,placement:p,popperOptions:f,popperRef:h,slotProps:y,slots:b,...v,style:{position:"fixed",top:0,left:0,display:C,...m},TransitionProps:k,children:r})})}),Sa=Vr(wa,{name:"MuiPopper",slot:"Root"})({}),Ca=i.forwardRef(function(e,t){const n=Yi(),r=Jr({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:y,slots:b,slotProps:v,...x}=r,w=b?.root??a?.Root,S={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:y,...x};return(0,s.jsx)(Sa,{as:i,direction:n?"rtl":"ltr",slots:{root:w},slotProps:v??l,...S,ref:t})}),ka=Ca;function Ma(e){return Po("MuiListSubheader",e)}Do("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Oa=Vr("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${L(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(ri(({theme: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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Ta=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=n,d={...n,color:o,component:i,disableGutters:a,disableSticky:l,inset:c},p=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return b({root:["root","default"!==n&&`color${L(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},Ma,t)})(d);return(0,s.jsx)(Oa,{as:i,className:y(p.root,r),ref:t,ownerState:d,...u})});Ta&&(Ta.muiSkipListHighlight=!0);const Pa=Ta;const Da=function(e=null){const t=i.useContext(lt);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},Ea=Nn();const ja=function(e=Ea){return Da(e)};function Aa(){const e=ja(_r);return e[Br]||e}function Ra(e){return Po("MuiPaper",e)}Do("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 Na=Vr("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}`]]}})(ri(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ia=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiPaper"}),r=Aa(),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=n,d={...n,component:i,elevation:a,square:l,variant:c},p=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return b({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ra,o)})(d);return(0,s.jsx)(Na,{as:i,ownerState:d,className:y(p.root,o),ref:t,...u,style:{..."elevation"===c&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${T("#fff",Mr(a))}, ${T("#fff",Mr(a))})`}},...u.style}})}),La=Ia,$a=Fi;function Fa(e){return Po("MuiCircularProgress",e)}Do("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const za=44,_a=Co`
|
|
76
|
+
0% {
|
|
77
|
+
transform: rotate(0deg);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
100% {
|
|
81
|
+
transform: rotate(360deg);
|
|
82
|
+
}
|
|
83
|
+
`,Ba=Co`
|
|
84
|
+
0% {
|
|
85
|
+
stroke-dasharray: 1px, 200px;
|
|
86
|
+
stroke-dashoffset: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
50% {
|
|
90
|
+
stroke-dasharray: 100px, 200px;
|
|
91
|
+
stroke-dashoffset: -15px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
100% {
|
|
95
|
+
stroke-dasharray: 1px, 200px;
|
|
96
|
+
stroke-dashoffset: -126px;
|
|
97
|
+
}
|
|
98
|
+
`,Va="string"!=typeof _a?So`
|
|
99
|
+
animation: ${_a} 1.4s linear infinite;
|
|
100
|
+
`:null,Wa="string"!=typeof Ba?So`
|
|
101
|
+
animation: ${Ba} 1.4s ease-in-out infinite;
|
|
102
|
+
`:null,Ha=Vr("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${L(n.color)}`]]}})(ri(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Va||{animation:`${_a} 1.4s linear infinite`}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ua=Vr("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qa=Vr("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${L(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ri(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Wa||{animation:`${Ba} 1.4s ease-in-out infinite`}}]}))),Ya=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:a,thickness:c,value:u,variant:d},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return b({root:["root",n,`color${L(r)}`],svg:["svg"],circle:["circle",`circle${L(n)}`,o&&"circleDisableShrink"]},Fa,t)})(f),m={},g={},v={};if("determinate"===d){const e=2*Math.PI*((za-c)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,s.jsx)(Ha,{className:y(h.root,r),style:{width:a,height:a,...g,...l},ownerState:f,ref:t,role:"progressbar",...v,...p,children:(0,s.jsx)(Ua,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:(0,s.jsx)(qa,{className:h.circle,style:m,ownerState:f,cx:za,cy:za,r:(za-c)/2,fill:"none",strokeWidth:c})})})}),Ka=Ya;function Ga(e){return Po("MuiIconButton",e)}const Xa=Do("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ja=Vr(Wo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${L(n.color)}`],n.edge&&t[`edge${L(n.edge)}`],t[`size${L(n.size)}`]]}})(ri(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ri(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Xa.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Xa.loading}`]:{color:"transparent"}}))),Za=Vr("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Qa=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:p=null,loadingIndicator:f,...h}=n,m=$a(d),g=f??(0,s.jsx)(Ka,{"aria-labelledby":m,color:"inherit",size:16}),v={...n,edge:r,color:a,disabled:l,disableFocusRipple:c,loading:p,loadingIndicator:g,size:u},x=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:s}=e;return b({root:["root",s&&"loading",n&&"disabled","default"!==r&&`color${L(r)}`,o&&`edge${L(o)}`,`size${L(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Ga,t)})(v);return(0,s.jsxs)(Ja,{id:p?m:d,className:y(x.root,i),centerRipple:!0,focusRipple:!c,disabled:l||p,ref:t,...h,ownerState:v,children:["boolean"==typeof p&&(0,s.jsx)("span",{className:x.loadingWrapper,style:{display:"contents"},children:(0,s.jsx)(Za,{className:x.loadingIndicator,ownerState:v,children:p&&g})}),o]})}),el=Qa,tl=li((0,s.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"}));function nl(e){return Po("MuiChip",e)}const rl=Do("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ol=Vr("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${rl.avatar}`]:t.avatar},{[`& .${rl.avatar}`]:t[`avatar${L(a)}`]},{[`& .${rl.avatar}`]:t[`avatarColor${L(r)}`]},{[`& .${rl.icon}`]:t.icon},{[`& .${rl.icon}`]:t[`icon${L(a)}`]},{[`& .${rl.icon}`]:t[`iconColor${L(o)}`]},{[`& .${rl.deleteIcon}`]:t.deleteIcon},{[`& .${rl.deleteIcon}`]:t[`deleteIcon${L(a)}`]},{[`& .${rl.deleteIcon}`]:t[`deleteIconColor${L(r)}`]},{[`& .${rl.deleteIcon}`]:t[`deleteIcon${L(l)}Color${L(r)}`]},t.root,t[`size${L(a)}`],t[`color${L(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${L(r)})`],s&&t.deletable,s&&"default"!==r&&t[`deletableColor${L(r)}`],t[l],t[`${l}${L(r)}`]]}})(ri(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,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:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${rl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${rl.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${rl.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${rl.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${rl.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${rl.icon}`]:{marginLeft:5,marginRight:-6},[`& .${rl.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:T(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)`:T(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${rl.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${rl.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(hi(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${rl.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:T(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${rl.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${rl.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${rl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:T(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(hi(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${rl.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:T(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${rl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:T(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(hi(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${rl.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${rl.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${rl.avatar}`]:{marginLeft:4},[`& .${rl.avatarSmall}`]:{marginLeft:2},[`& .${rl.icon}`]:{marginLeft:4},[`& .${rl.iconSmall}`]:{marginLeft:2},[`& .${rl.deleteIcon}`]:{marginRight:5},[`& .${rl.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:T(e.palette[t].main,.7)}`,[`&.${rl.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${rl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:T(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${rl.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:T(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),il=Vr("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${L(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function sl(e){return"Backspace"===e.key||"Delete"===e.key}const al=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:f,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:v,size:x="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:C=!1,slots:k={},slotProps:M={},...O}=n,T=i.useRef(null),P=Qr(T,t),D=e=>{e.stopPropagation(),m&&m(e)},E=!(!1===a||!h)||a,j=E||m?Wo:c||"div",A={...n,component:j,disabled:d,size:x,color:l,iconColor:i.isValidElement(p)&&p.props.color||l,onDelete:!!m,clickable:E,variant:w},R=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e;return b({root:["root",l,n&&"disabled",`size${L(r)}`,`color${L(o)}`,a&&"clickable",a&&`clickableColor${L(o)}`,s&&"deletable",s&&`deletableColor${L(o)}`,`${l}${L(o)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(o)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(i)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(o)}`,`deleteIcon${L(l)}Color${L(o)}`]},nl,t)})(A),N=j===Wo?{component:c||"div",focusVisibleClassName:R.focusVisible,...m&&{disableRipple:!0}}:{};let I=null;m&&(I=u&&i.isValidElement(u)?i.cloneElement(u,{className:y(u.props.className,R.deleteIcon),onClick:D}):(0,s.jsx)(tl,{className:R.deleteIcon,onClick:D}));let $=null;r&&i.isValidElement(r)&&($=i.cloneElement(r,{className:y(R.avatar,r.props.className)}));let F=null;p&&i.isValidElement(p)&&(F=i.cloneElement(p,{className:y(R.icon,p.props.className)}));const z={slots:k,slotProps:M},[_,B]=Jo("root",{elementType:ol,externalForwardedProps:{...z,...O},ownerState:A,shouldForwardComponentProp:!0,ref:P,className:y(R.root,o),additionalProps:{disabled:!(!E||!d)||void 0,tabIndex:C&&d?-1:S,...N},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),h?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),(e=>{e.currentTarget===e.target&&sl(e)&&e.preventDefault(),g&&g(e)})?.(t)},onKeyUp:t=>{e.onKeyUp?.(t),(e=>{e.currentTarget===e.target&&m&&sl(e)&&m(e),v&&v(e)})?.(t)}})}),[V,W]=Jo("label",{elementType:il,externalForwardedProps:z,ownerState:A,className:R.label});return(0,s.jsxs)(_,{as:j,...B,children:[$||F,(0,s.jsx)(V,{...W,children:f}),I]})}),ll=al;function cl(e){return Po("MuiInputBase",e)}const ul=Do("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function dl(e){return Po("MuiInput",e)}const pl={...ul,...Do("MuiInput",["root","underline","input"])};function fl(e){return Po("MuiOutlinedInput",e)}const hl={...ul,...Do("MuiOutlinedInput",["root","notchedOutline","input"])};function ml(e){return Po("MuiFilledInput",e)}const gl={...ul,...Do("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},yl=li((0,s.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"})),bl=li((0,s.jsx)("path",{d:"M7 10l5 5 5-5z"}));function vl(e){return Po("MuiAutocomplete",e)}const xl=Do("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 wl,Sl;const Cl=Vr("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${xl.tag}`]:t.tag},{[`& .${xl.tag}`]:t[`tagSize${L(a)}`]},{[`& .${xl.inputRoot}`]:t.inputRoot},{[`& .${xl.input}`]:t.input},{[`& .${xl.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${xl.focused} .${xl.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${xl.clearIndicator}`]:{visibility:"visible"}},[`& .${xl.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${xl.inputRoot}`]:{[`.${xl.hasPopupIcon}&, .${xl.hasClearIcon}&`]:{paddingRight:30},[`.${xl.hasPopupIcon}.${xl.hasClearIcon}&`]:{paddingRight:56},[`& .${xl.input}`]:{width:0,minWidth:30}},[`& .${pl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${pl.root}.${ul.sizeSmall}`]:{[`& .${pl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${hl.root}`]:{padding:9,[`.${xl.hasPopupIcon}&, .${xl.hasClearIcon}&`]:{paddingRight:39},[`.${xl.hasPopupIcon}.${xl.hasClearIcon}&`]:{paddingRight:65},[`& .${xl.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${xl.endAdornment}`]:{right:9}},[`& .${hl.root}.${ul.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${xl.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${gl.root}`]:{paddingTop:19,paddingLeft:8,[`.${xl.hasPopupIcon}&, .${xl.hasClearIcon}&`]:{paddingRight:39},[`.${xl.hasPopupIcon}.${xl.hasClearIcon}&`]:{paddingRight:65},[`& .${gl.input}`]:{padding:"7px 4px"},[`& .${xl.endAdornment}`]:{right:9}},[`& .${gl.root}.${ul.sizeSmall}`]:{paddingBottom:1,[`& .${gl.input}`]:{padding:"2.5px 4px"}},[`& .${ul.hiddenLabel}`]:{paddingTop:8},[`& .${gl.root}.${ul.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${xl.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${gl.root}.${ul.hiddenLabel}.${ul.sizeSmall}`]:{[`& .${xl.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${xl.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${xl.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${xl.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${xl.inputRoot}`]:{flexWrap:"wrap"}}}]}),kl=Vr("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ml=Vr(el,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),Ol=Vr(el,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Tl=Vr(ka,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xl.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(ri(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Pl=Vr(La,{name:"MuiAutocomplete",slot:"Paper"})(ri(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Dl=Vr("div",{name:"MuiAutocomplete",slot:"Loading"})(ri(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),El=Vr("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ri(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),jl=Vr("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ri(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${xl.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"},[`&.${xl.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"},[`&.${xl.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})`:T(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xl.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:T(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${xl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:T(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),Al=Vr(Pa,{name:"MuiAutocomplete",slot:"GroupLabel"})(ri(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Rl=Vr("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${xl.option}`]:{paddingLeft:24}}),Nl=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=wl||(wl=(0,s.jsx)(yl,{fontSize:"small"})),clearOnBlur:p=!n.freeSolo,clearOnEscape:f=!1,clearText:h="Clear",closeText:m="Close",componentsProps:g,defaultValue:v=(n.multiple?[]:null),disableClearable:x=!1,disableCloseOnSelect:w=!1,disabled:S=!1,disabledItemsFocusable:C=!1,disableListWrap:k=!1,disablePortal:M=!1,filterOptions:O,filterSelectedOptions:T=!1,forcePopupIcon:P="auto",freeSolo:D=!1,fullWidth:E=!1,getLimitTagsText:j=e=>`+${e}`,getOptionDisabled:A,getOptionKey:R,getOptionLabel:N,isOptionEqualToValue:I,groupBy:$,handleHomeEndKeys:F=!n.freeSolo,id:z,includeInputInList:_=!1,inputValue:B,limitTags:V=-1,ListboxComponent:W,ListboxProps:H,loading:U=!1,loadingText:q="Loading…",multiple:Y=!1,noOptionsText:K="No options",onChange:G,onClose:X,onHighlightChange:J,onInputChange:Z,onOpen:Q,open:ee,openOnFocus:te=!1,openText:ne="Open",options:re,PaperComponent:oe,PopperComponent:ie,popupIcon:se=Sl||(Sl=(0,s.jsx)(bl,{})),readOnly:ae=!1,renderGroup:le,renderInput:ce,renderOption:ue,renderTags:de,renderValue:pe,selectOnFocus:fe=!n.freeSolo,size:he="medium",slots:me={},slotProps:ge={},value:ye,...be}=n,{getRootProps:ve,getInputProps:xe,getInputLabelProps:we,getPopupIndicatorProps:Se,getClearProps:Ce,getItemProps:ke,getListboxProps:Me,getOptionProps:Oe,value:Te,dirty:Pe,expanded:De,id:Ee,popupOpen:je,focused:Ae,focusedItem:Re,anchorEl:Ne,setAnchorEl:Ie,inputValue:Le,groupedOptions:$e}=Ui({...n,componentName:"Autocomplete"}),Fe=!x&&!S&&Pe&&!ae,ze=(!D||!0===P)&&!1!==P,{onMouseDown:_e}=xe(),{ref:Be,...Ve}=Me(),We=N||(e=>e.label??e),He={...n,disablePortal:M,expanded:De,focused:Ae,fullWidth:E,getOptionLabel:We,hasClearIcon:Fe,hasPopupIcon:ze,inputFocused:-1===Re,popupOpen:je,size:he},Ue=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e;return b({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${L(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},vl,t)})(He),qe={slots:{paper:oe,popper:ie,...me},slotProps:{chip:c,listbox:H,...g,...ge}},[Ye,Ke]=Jo("listbox",{elementType:jl,externalForwardedProps:qe,ownerState:He,className:Ue.listbox,additionalProps:Ve,ref:Be}),[Ge,Xe]=Jo("paper",{elementType:La,externalForwardedProps:qe,ownerState:He,className:Ue.paper}),[Je,Ze]=Jo("popper",{elementType:ka,externalForwardedProps:qe,ownerState:He,className:Ue.popper,additionalProps:{disablePortal:M,style:{width:Ne?Ne.clientWidth:null},role:"presentation",anchorEl:Ne,open:je}});let Qe;const et=e=>({className:Ue.tag,disabled:S,...ke(e)});if(Y?Te.length>0&&(Qe=de?de(Te,et,He):pe?pe(Te,et,He):Te.map((e,t)=>{const{key:n,...r}=et({index:t});return(0,s.jsx)(ll,{label:We(e),size:he,...r,...qe.slotProps.chip},n)})):pe&&null!=Te&&(Qe=pe(Te,et,He)),V>-1&&Array.isArray(Qe)){const e=Qe.length-V;!Ae&&e>0&&(Qe=Qe.splice(0,V),Qe.push((0,s.jsx)("span",{className:Ue.tag,children:j(e)},Qe.length)))}const tt=le||(e=>(0,s.jsxs)("li",{children:[(0,s.jsx)(Al,{className:Ue.groupLabel,ownerState:He,component:"div",children:e.group}),(0,s.jsx)(Rl,{className:Ue.groupUl,ownerState:He,children:e.children})]},e.key)),nt=ue||((e,t)=>{const{key:n,...r}=e;return(0,s.jsx)("li",{...r,children:We(t)},n)}),rt=(e,t)=>{const n=Oe({option:e,index:t});return nt({...n,className:Ue.option},e,{selected:n["aria-selected"],index:t,inputValue:Le},He)},ot=qe.slotProps.clearIndicator,it=qe.slotProps.popupIndicator;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(Cl,{ref:t,className:y(Ue.root,u),ownerState:He,...ve(be),children:ce({id:Ee,disabled:S,fullWidth:!0,size:"small"===he?"small":void 0,InputLabelProps:we(),InputProps:{ref:Ie,className:Ue.inputRoot,startAdornment:Qe,onMouseDown:e=>{e.target===e.currentTarget&&_e(e)},...(Fe||ze)&&{endAdornment:(0,s.jsxs)(kl,{className:Ue.endAdornment,ownerState:He,children:[Fe?(0,s.jsx)(Ml,{...Ce(),"aria-label":h,title:h,ownerState:He,...ot,className:y(Ue.clearIndicator,ot?.className),children:d}):null,ze?(0,s.jsx)(Ol,{...Se(),disabled:S,"aria-label":je?m:ne,title:je?m:ne,ownerState:He,...it,className:y(Ue.popupIndicator,it?.className),children:se}):null]})}},inputProps:{className:Ue.input,disabled:S,readOnly:ae,...xe()}})}),Ne?(0,s.jsx)(Tl,{as:Je,...Ze,children:(0,s.jsxs)(Pl,{as:Ge,...Xe,children:[U&&0===$e.length?(0,s.jsx)(Dl,{className:Ue.loading,ownerState:He,children:q}):null,0!==$e.length||D||U?null:(0,s.jsx)(El,{className:Ue.noOptions,ownerState:He,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:K}),$e.length>0?(0,s.jsx)(Ye,{as:W,...Ke,children:$e.map((e,t)=>$?tt({key:e.key,group:e.group,children:e.options.map((t,n)=>rt(t,e.index+n))}):rt(e,t))}):null]})}):null]})}),Il=Nl;function Ll(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function $l(e){return Ki(e).defaultView||window}function Fl(e){return parseInt(e,10)||0}const zl={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function _l(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Bl=i.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:l,...c}=e,{current:u}=i.useRef(null!=l),d=i.useRef(null),p=Zr(t,d),f=i.useRef(null),h=i.useRef(null),m=i.useCallback(()=>{const t=d.current,n=h.current;if(!t||!n)return;const i=$l(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const s=i.boxSizing,a=Fl(i.paddingBottom)+Fl(i.paddingTop),l=Fl(i.borderBottomWidth)+Fl(i.borderTopWidth),c=n.scrollHeight;n.value="x";const u=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*u,p)),r&&(p=Math.min(Number(r)*u,p)),p=Math.max(p,u);return{outerHeightStyle:p+("border-box"===s?a+l:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),g=to(()=>{const e=d.current,t=m();if(!e||!t||_l(t))return!1;const n=t.outerHeightStyle;return null!=f.current&&f.current!==n}),y=i.useCallback(()=>{const e=d.current,t=m();if(!e||!t||_l(t))return;const n=t.outerHeightStyle;f.current!==n&&(f.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[m]),b=i.useRef(-1);eo(()=>{const e=Ll(y),t=d?.current;if(!t)return;const n=$l(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{g()&&(r.unobserve(t),cancelAnimationFrame(b.current),y(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[m,y,g]),eo(()=>{y()});return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)("textarea",{value:l,onChange:e=>{u||y();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:p,rows:o,style:a,...c}),(0,s.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...zl,...a,paddingTop:0,paddingBottom:0}})]})}),Vl=Bl;const Wl=function(e){return"string"==typeof e};function Hl(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??En;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return kt(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Ul(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,s.jsx)(wo,{styles:r})}function ql(e){const t=St(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}const Yl=function({styles:e,themeId:t,defaultTheme:n={}}){const r=ja(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>ql("function"==typeof e?e(o):e)):ql(i)),(0,s.jsx)(Ul,{styles:i})};const Kl=function(e){return(0,s.jsx)(Yl,{...e,defaultTheme:_r,themeId:Br})};const Gl=eo;var Xl;const Jl=(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${L(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Zl=(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]},Ql=Vr("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Jl})(ri(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ul.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),ec=Vr("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zl})(ri(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ul.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ul.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),tc=function(e){return function(t){return(0,s.jsx)(Kl,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),nc=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:h,endAdornment:m,error:g,fullWidth:x=!1,id:w,inputComponent:S="input",inputProps:C={},inputRef:k,margin:M,maxRows:O,minRows:T,multiline:P=!1,name:D,onBlur:E,onChange:j,onClick:A,onFocus:R,onKeyDown:N,onKeyUp:I,placeholder:$,readOnly:F,renderSuffix:z,rows:_,size:B,slotProps:V={},slots:W={},startAdornment:H,type:U="text",value:q,...Y}=n,K=null!=C.value?C.value:q,{current:G}=i.useRef(null!=K),X=i.useRef(),J=i.useCallback(e=>{0},[]),Z=Qr(X,k,C.ref,J),[Q,ee]=i.useState(!1),te=qr();const ne=Di({props:n,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=te?te.focused:Q,i.useEffect(()=>{!te&&f&&Q&&(ee(!1),E&&E())},[te,f,Q,E]);const re=te&&te.onFilled,oe=te&&te.onEmpty,ie=i.useCallback(e=>{Ci(e)?re&&re():oe&&oe()},[re,oe]);Gl(()=>{G&&ie({value:K})},[K,ie,G]);i.useEffect(()=>{ie(X.current)},[]);let se=S,ae=C;P&&"input"===se&&(ae=_?{type:void 0,minRows:_,maxRows:_,...ae}:{type:void 0,maxRows:O,minRows:T,...ae},se=Vl);i.useEffect(()=>{te&&te.setAdornedStart(Boolean(H))},[te,H]);const le={...n,color:ne.color||"primary",disabled:ne.disabled,endAdornment:m,error:ne.error,focused:ne.focused,formControl:te,fullWidth:x,hiddenLabel:ne.hiddenLabel,multiline:P,size:ne.size,startAdornment:H,type:U},ce=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return b({root:["root",`color${L(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&"medium"!==p&&`size${L(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},cl,t)})(le),ue=W.root||u.Root||Ql,de=V.root||d.root||{},pe=W.input||u.Input||ec;return ae={...ae,...V.input??d.input},(0,s.jsxs)(i.Fragment,{children:[!h&&"function"==typeof tc&&(Xl||(Xl=(0,s.jsx)(tc,{}))),(0,s.jsxs)(ue,{...de,ref:t,onClick:e=>{X.current&&e.currentTarget===e.target&&X.current.focus(),A&&A(e)},...Y,...!Wl(ue)&&{ownerState:{...le,...de.ownerState}},className:y(ce.root,de.className,l,F&&"MuiInputBase-readOnly"),children:[H,(0,s.jsx)(Ur.Provider,{value:null,children:(0,s.jsx)(pe,{"aria-invalid":ne.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:p,disabled:ne.disabled,id:w,onAnimationStart:e=>{ie("mui-auto-fill-cancel"===e.animationName?X.current:{value:"x"})},name:D,placeholder:$,readOnly:F,required:ne.required,rows:_,value:K,onKeyDown:N,onKeyUp:I,type:U,...ae,...!Wl(pe)&&{as:se,ownerState:{...le,...ae.ownerState}},ref:Z,className:y(ce.input,ae.className,F&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),C.onBlur&&C.onBlur(e),te&&te.onBlur?te.onBlur(e):ee(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||X.current;if(null==t)throw new Error(v(1));ie({value:t.value})}C.onChange&&C.onChange(e,...t),j&&j(e,...t)},onFocus:e=>{R&&R(e),C.onFocus&&C.onFocus(e),te&&te.onFocus?te.onFocus(e):ee(!0)}})}),m,z?z({...ne,startAdornment:H}):null]})]})}),rc=nc,oc=Vr(Ql,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Jl(e,t),!n.disableUnderline&&t.underline]}})(ri(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,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(.${pl.disabled}, .${pl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${pl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),ic=Vr(ec,{name:"MuiInput",slot:"Input",overridesResolver:Zl})({}),sc=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...f}=n,h=(e=>{const{classes:t,disableUnderline:n}=e,r=b({root:["root",!n&&"underline"],input:["input"]},dl,t);return{...t,...r}})(n),m={root:{ownerState:{disableUnderline:r}}},g=u??i?Ot(u??i,m):m,y=d.root??o.Root??oc,v=d.input??o.Input??ic;return(0,s.jsx)(rc,{slots:{root:y,input:v},slotProps:g,fullWidth:a,inputComponent:l,multiline:c,ref:t,type:p,...f,classes:h})});sc.muiName="Input";const ac=sc,lc=Vr(Ql,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Jl(e,t),!n.disableUnderline&&t.underline]}})(ri(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${gl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${gl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${gl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${gl.disabled}, .${gl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${gl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),cc=Vr(ec,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zl})(ri(({theme: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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),uc=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:f="text",...h}=n,m={...n,disableUnderline:r,fullWidth:a,inputComponent:c,multiline:u,type:f},g=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=e,l=b({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===i&&`size${L(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},ml,t);return{...t,...l}})(n),y={root:{ownerState:m},input:{ownerState:m}},v=d??i?Ot(y,d??i):y,x=p.root??o.Root??lc,w=p.input??o.Input??cc;return(0,s.jsx)(rc,{slots:{root:x,input:w},slotProps:v,fullWidth:a,inputComponent:c,multiline:u,ref:t,type:f,...h,classes:g})});uc.muiName="Input";const dc=uc;var pc;const fc=Vr("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:F})({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%"}),hc=Vr("legend",{name:"MuiNotchedOutlined",shouldForwardProp:F})(ri(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));const mc=Vr(Ql,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Jl})(ri(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${hl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${hl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${hl.focused} .${hl.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{[`&.${hl.focused} .${hl.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hl.error} .${hl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${hl.disabled} .${hl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),gc=Vr(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=null!=o&&""!==o,c={...e,notched:i,withLabel:l};return(0,s.jsx)(fc,{"aria-hidden":!0,className:r,ownerState:c,...a,children:(0,s.jsx)(hc,{ownerState:c,children:l?(0,s.jsx)("span",{children:o}):pc||(pc=(0,s.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ri(({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}})),yc=Vr(ec,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zl})(ri(({theme: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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),bc=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:f="text",...h}=n,m=(e=>{const{classes:t}=e,n=b({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},fl,t);return{...t,...n}})(n),g=qr(),y=Di({props:n,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:o,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:f},x=d.root??r.Root??mc,w=d.input??r.Input??yc,[S,C]=Jo("notchedOutline",{elementType:gc,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:null!=l&&""!==l&&y.required?(0,s.jsxs)(i.Fragment,{children:[l," ","*"]}):l}});return(0,s.jsx)(rc,{slots:{root:x,input:w},slotProps:p,renderSuffix:e=>(0,s.jsx)(S,{...C,notched:void 0!==u?u:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:a,multiline:c,ref:t,type:f,...h,classes:{...m,notchedOutline:null}})});bc.muiName="Input";const vc=bc;function xc(e){return Po("MuiFormLabel",e)}const wc=Do("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Sc=Vr("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(ri(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{[`&.${wc.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${wc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wc.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Cc=Vr("span",{name:"MuiFormLabel",slot:"Asterisk"})(ri(({theme:e})=>({[`&.${wc.error}`]:{color:(e.vars||e).palette.error.main}}))),kc=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:i,component:a="label",disabled:l,error:c,filled:u,focused:d,required:p,...f}=n,h=Di({props:n,muiFormControl:qr(),states:["color","required","focused","disabled","error","filled"]}),m={...n,color:h.color||"primary",component:a,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},g=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e;return b({root:["root",`color${L(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]},xc,t)})(m);return(0,s.jsxs)(Sc,{as:a,ownerState:m,className:y(g.root,o),ref:t,...f,children:[r,h.required&&(0,s.jsxs)(Cc,{ownerState:m,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]})}),Mc=kc;function Oc(e){return Po("MuiInputLabel",e)}Do("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Tc=Vr(Mc,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ri(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Pc=i.forwardRef(function(e,t){const n=Jr({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:i,variant:a,className:l,...c}=n,u=qr();let d=i;void 0===d&&u&&(d=u.filled||u.focused||u.adornedStart);const p=Di({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f={...n,disableAnimation:r,formControl:u,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},h=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l=b({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"medium"!==r&&`size${L(r)}`,s],asterisk:[a&&"asterisk"]},Oc,t);return{...t,...l}})(f);return(0,s.jsx)(Tc,{"data-shrink":d,ref:t,className:y(h.root,l),...c,ownerState:f,classes:h})}),Dc=Ki;const Ec=i.createContext({});function jc(e){return Po("MuiList",e)}Do("MuiList",["root","padding","dense","subheader"]);const Ac=Vr("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Rc=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=n,p=i.useMemo(()=>({dense:l}),[l]),f={...n,component:a,dense:l,disablePadding:c},h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return b({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jc,t)})(f);return(0,s.jsx)(Ec.Provider,{value:p,children:(0,s.jsxs)(Ac,{as:a,className:y(h.root,o),ref:t,ownerState:f,...d,children:[u,r]})})});function Nc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Ic=Nc,Lc=$l;function $c(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zc(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]:n.startsWith(t.keys.join("")))}function _c(e,t,n,r,o,i){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&zc(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const Bc=i.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...f}=e,h=i.useRef(null),m=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gl(()=>{r&&h.current.focus()},[r]),i.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){const n=`${Ic(Lc(e))}px`;h.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,h.current.style.width=`calc(100% + ${n})`}return h.current}}),[]);const g=Qr(h,t);let y=-1;i.Children.forEach(a,(e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===y)&&(y=t),y===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))):y===t&&(y+=1,y>=a.length&&(y=-1))});const b=i.Children.map(a,(e,t)=>{if(t===y){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===p&&(t.tabIndex=0),i.cloneElement(e,t)}return e});return(0,s.jsx)(Rc,{role:"menu",ref:g,className:l,onKeyDown:e=>{const t=h.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(d&&d(e));const r=Dc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_c(t,r,u,c,$c);else if("ArrowUp"===n)e.preventDefault(),_c(t,r,u,c,Fc);else if("Home"===n)e.preventDefault(),_c(t,null,u,c,$c);else if("End"===n)e.preventDefault(),_c(t,null,u,c,Fc);else if(1===n.length){const o=m.current,i=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);const a=r&&!o.repeating&&zc(r,o);o.previousKeyMatched&&(a||_c(t,r,!1,c,$c,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:r?0:-1,...f,children:b})}),Vc=Bc,Wc=Ll,Hc=!1;var Uc=function(e){return e.scrollTop},qc="unmounted",Yc="exited",Kc="entering",Gc="entered",Xc="exiting",Jc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Yc,r.appearStatus=Kc):o=Gc:o=t.unmountOnExit||t.mountOnEnter?qc:Yc,r.state={status:o},r.nextCallback=null,r}lo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===qc?{status:Yc}: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!==Kc&&n!==Gc&&(t=Kc):n!==Kc&&n!==Gc||(t=Xc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Kc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:fa.default.findDOMNode(this);n&&Uc(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yc&&this.setState({status:qc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[fa.default.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||Hc?this.safeSetState({status:Gc},function(){t.props.onEntered(i)}):(this.props.onEnter(i,s),this.safeSetState({status:Kc},function(){t.props.onEntering(i,s),t.onTransitionEnd(l,function(){t.safeSetState({status:Gc},function(){t.props.onEntered(i,s)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:fa.default.findDOMNode(this);t&&!Hc?(this.props.onExit(r),this.safeSetState({status:Xc},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Yc},function(){e.props.onExited(r)})})})):this.safeSetState({status:Yc},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(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(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:fa.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===qc)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,so(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.default.createElement(co.Provider,{value:null},"function"==typeof n?n(e,r):i.default.cloneElement(i.default.Children.only(n),r))},t}(i.default.Component);function Zc(){}Jc.contextType=co,Jc.propTypes={},Jc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zc,onEntering:Zc,onEntered:Zc,onExit:Zc,onExiting:Zc,onExited:Zc},Jc.UNMOUNTED=qc,Jc.EXITED=Yc,Jc.ENTERING=Kc,Jc.ENTERED=Gc,Jc.EXITING=Xc;const Qc=Jc,eu=e=>e.scrollTop;function tu(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function nu(e){return`scale(${e}, ${e**2})`}const ru={entering:{opacity:1,transform:nu(1)},entered:{opacity:1,transform:"none"}},ou="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iu=i.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=Qc,...b}=e,v=vo(),x=i.useRef(),w=Aa(),S=i.useRef(null),C=Qr(S,ha(o),t),k=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},M=k(d),O=k((e,t)=>{eu(e);const{duration:n,delay:r,easing:o}=tu({style:m,timeout:g,easing:a},{mode:"enter"});let i;"auto"===g?(i=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=i):i=n,e.style.transition=[w.transitions.create("opacity",{duration:i,delay:r}),w.transitions.create("transform",{duration:ou?i:.666*i,delay:r,easing:o})].join(","),c&&c(e,t)}),T=k(u),P=k(h),D=k(e=>{const{duration:t,delay:n,easing:r}=tu({style:m,timeout:g,easing:a},{mode:"exit"});let o;"auto"===g?(o=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:ou?o:.666*o,delay:ou?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=nu(.75),p&&p(e)}),E=k(f);return(0,s.jsx)(y,{appear:r,in:l,nodeRef:S,onEnter:O,onEntered:T,onEntering:M,onExit:D,onExited:E,onExiting:P,addEndListener:e=>{"auto"===g&&v.start(x.current||0,e),n&&n(S.current,e)},timeout:"auto"===g?null:g,...b,children:(e,{ownerState:t,...n})=>i.cloneElement(o,{style:{opacity:0,transform:nu(.75),visibility:"exited"!==e||l?void 0:"hidden",...ru[e],...m,...o.props.style},ref:C,...n})})});iu&&(iu.muiSupportAuto=!0);const su=iu,au=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lu(e){const t=[],n=[];return Array.from(e.querySelectorAll(au)).forEach((e,r)=>{const o=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!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!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===o?t.push(e):n.push({documentOrder:r,tabIndex:o,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 cu(){return!0}const uu=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=lu,isEnabled:l=cu,open:c}=e,u=i.useRef(!1),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),h=i.useRef(null),m=i.useRef(!1),g=i.useRef(null),y=Zr(ha(t),g),b=i.useRef(null);i.useEffect(()=>{c&&g.current&&(m.current=!n)},[n,c]),i.useEffect(()=>{if(!c||!g.current)return;const e=Ki(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[c]),i.useEffect(()=>{if(!c||!g.current)return;const e=Ki(g.current),t=t=>{b.current=t,!r&&l()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(u.current=!0,p.current&&p.current.focus())},n=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==d.current&&e.activeElement!==p.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!m.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==p.current||(n=a(g.current)),n.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,l,c,a]);const v=e=>{null===f.current&&(f.current=e.relatedTarget),m.current=!0};return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)("div",{tabIndex:c?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:y,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),m.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,s.jsx)("div",{tabIndex:c?0:-1,onFocus:v,ref:p,"data-testid":"sentinelEnd"})]})},du={entering:{opacity:1},entered:{opacity:1}},pu=i.forwardRef(function(e,t){const n=Aa(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:h,onExited:m,onExiting:g,style:y,timeout:b=r,TransitionComponent:v=Qc,...x}=e,w=i.useRef(null),S=Qr(w,ha(l),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),M=C((e,t)=>{eu(e);const r=tu({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)}),O=C(p),T=C(g),P=C(e=>{const t=tu({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)}),D=C(m);return(0,s.jsx)(v,{appear:a,in:u,nodeRef:w,onEnter:M,onEntered:O,onEntering:k,onExit:P,onExited:D,onExiting:T,addEndListener:e=>{o&&o(w.current,e)},timeout:b,...x,children:(e,{ownerState:t,...n})=>i.cloneElement(l,{style:{opacity:0,visibility:"exited"!==e||u?void 0:"hidden",...du[e],...y,...l.props.style},ref:S,...n})})}),fu=pu;function hu(e){return Po("MuiBackdrop",e)}Do("MuiBackdrop",["root","invisible"]);const mu=Vr("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),gu=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:h,...m}=n,g={...n,component:i,invisible:a},v=(e=>{const{classes:t,invisible:n}=e;return b({root:["root",n&&"invisible"]},hu,t)})(g),x={component:i,slots:{transition:f,root:c.Root,...p},slotProps:{...u,...d}},[w,S]=Jo("root",{elementType:mu,externalForwardedProps:x,className:y(v.root,o),ownerState:g}),[C,k]=Jo("transition",{elementType:fu,externalForwardedProps:x,ownerState:g});return(0,s.jsx)(C,{in:l,timeout:h,...m,...k,children:(0,s.jsx)(w,{"aria-hidden":!0,...S,classes:v,ref:t,children:r})})});function yu(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function bu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vu(e){return parseInt($l(e).getComputedStyle(e).paddingRight,10)||0}function xu(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&bu(e,o)})}function wu(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Su(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ki(e);return t.body===e?$l(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Nc($l(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${vu(r)+e}px`;const t=Ki(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vu(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Ki(r).body;else{const t=r.parentElement,n=$l(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}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)})}}const Cu=()=>{},ku=new class{constructor(){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&&bu(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);xu(t,e.mount,e.modalRef,r,!0);const o=wu(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=wu(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=Su(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=wu(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&bu(e.modalRef,t),xu(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&bu(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const Mu=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=i.useRef({}),f=i.useRef(null),h=i.useRef(null),m=Zr(h,d),[g,y]=i.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{ku.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},S=to(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ki(f.current).body;ku.add(x(),e),h.current&&w()}),C=()=>ku.isTopModal(x()),k=to(e=>{f.current=e,e&&(u&&C()?w():h.current&&bu(h.current,v))}),M=i.useCallback(()=>{ku.remove(x(),v)},[v]);i.useEffect(()=>()=>{M()},[M]),i.useEffect(()=>{u?S():b&&o||M()},[u,M,b,o,S]);const O=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},T=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ko(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:O(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:T(t),open:u}},getTransitionProps:()=>({onEnter:yu(()=>{y(!1),s&&s()},l?.props.onEnter??Cu),onExited:yu(()=>{y(!0),a&&a(),o&&M()},l?.props.onExited??Cu)}),rootRef:m,portalRef:k,isTopModal:C,exited:g,hasTransition:b}};function Ou(e){return Po("MuiModal",e)}Do("MuiModal",["root","hidden","backdrop"]);const Tu=Vr("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ri(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Pu=Vr(gu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Du=i.forwardRef(function(e,t){const n=Jr({name:"MuiModal",props:e}),{BackdropComponent:r=Pu,BackdropProps:o,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:f={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:x=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:C=!1,keepMounted:k=!1,onClose:M,onTransitionEnter:O,onTransitionExited:T,open:P,slotProps:D={},slots:E={},theme:j,...A}=n,R={...n,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:x,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:C,keepMounted:k},{getRootProps:N,getBackdropProps:I,getTransitionProps:L,portalRef:$,isTopModal:F,exited:z,hasTransition:_}=Mu({...R,rootRef:t}),B={...R,exited:z},V=(e=>{const{open:t,exited:n,classes:r}=e;return b({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ou,r)})(B),W={};if(void 0===u.props.tabIndex&&(W.tabIndex="-1"),_){const{onEnter:e,onExited:t}=L();W.onEnter=e,W.onExited=t}const H={slots:{root:f.Root,backdrop:f.Backdrop,...E},slotProps:{...h,...D}},[U,q]=Jo("root",{ref:t,elementType:Tu,externalForwardedProps:{...H,...A,component:p},getSlotProps:N,ownerState:B,className:y(l,V?.root,!B.open&&B.exited&&V?.hidden)}),[Y,K]=Jo("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>I({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:y(o?.className,V?.backdrop),ownerState:B});return k||P||_&&!z?(0,s.jsx)(ma,{ref:$,container:d,disablePortal:x,children:(0,s.jsxs)(U,{...q,children:[!C&&r?(0,s.jsx)(Y,{...K}):null,(0,s.jsx)(uu,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:w,isEnabled:F,open:P,children:i.cloneElement(u,W)})]})}):null}),Eu=Du;function ju(e){return Po("MuiPopover",e)}Do("MuiPopover",["root","paper"]);function Au(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ru(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Nu(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Iu(e){return"function"==typeof e?e():e}const Lu=Vr(Eu,{name:"MuiPopover",slot:"Root"})({}),$u=Vr(La,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Fu=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:f=8,marginThreshold:h=16,open:m,PaperProps:g={},slots:v={},slotProps:x={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:C="auto",TransitionProps:k={},disableScrollLock:M=!1,...O}=n,T=i.useRef(),P={...n,anchorOrigin:a,anchorReference:c,elevation:f,marginThreshold:h,transformOrigin:w,TransitionComponent:S,transitionDuration:C,TransitionProps:k},D=(e=>{const{classes:t}=e;return b({root:["root"],paper:["paper"]},ju,t)})(P),E=i.useCallback(()=>{if("anchorPosition"===c)return l;const e=Iu(o),t=(e&&1===e.nodeType?e:Dc(T.current).body).getBoundingClientRect();return{top:t.top+Au(t,a.vertical),left:t.left+Ru(t,a.horizontal)}},[o,a.horizontal,a.vertical,l,c]),j=i.useCallback(e=>({vertical:Au(e,w.vertical),horizontal:Ru(e,w.horizontal)}),[w.horizontal,w.vertical]),A=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=j(t);if("none"===c)return{top:null,left:null,transformOrigin:Nu(n)};const r=E();let i=r.top-n.vertical,s=r.left-n.horizontal;const a=i+t.height,l=s+t.width,u=Lc(Iu(o)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&i<h){const e=i-h;i-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;i-=e,n.vertical+=e}if(null!==h&&s<h){const e=s-h;s-=e,n.horizontal+=e}else if(l>p){const e=l-p;s-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(s)}px`,transformOrigin:Nu(n)}},[o,c,E,j,h]),[R,N]=i.useState(m),I=i.useCallback(()=>{const e=T.current;if(!e)return;const t=A(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)},[A]);i.useEffect(()=>(M&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[o,M,I]);i.useEffect(()=>{m&&I()}),i.useImperativeHandle(r,()=>m?{updatePosition:()=>{I()}}:null,[m,I]),i.useEffect(()=>{if(!m)return;const e=Wc(()=>{I()}),t=Lc(Iu(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,m,I]);let L=C;const $={slots:{transition:S,...v},slotProps:{transition:k,paper:g,...x}},[F,z]=Jo("transition",{elementType:su,externalForwardedProps:$,ownerState:P,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),I()},onExited:t=>{e.onExited?.(t),N(!1)}}),additionalProps:{appear:!0,in:m}});"auto"!==C||F.muiSupportAuto||(L=void 0);const _=p||(o?Dc(Iu(o)).body:void 0),[B,{slots:V,slotProps:W,...H}]=Jo("root",{ref:t,elementType:Lu,externalForwardedProps:{...$,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:mi("function"==typeof x.backdrop?x.backdrop(P):x.backdrop,{invisible:!0})},container:_,open:m},ownerState:P,className:y(D.root,d)}),[U,q]=Jo("paper",{ref:T,className:D.paper,elementType:$u,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:R?void 0:{opacity:0}},ownerState:P});return(0,s.jsx)(B,{...H,...!Wl(B)&&{slots:V,slotProps:W,disableScrollLock:M},children:(0,s.jsx)(F,{...z,timeout:L,children:(0,s.jsx)(U,{...q,children:u})})})}),zu=Fu;function _u(e){return Po("MuiMenu",e)}Do("MuiMenu",["root","paper","list"]);const Bu={vertical:"top",horizontal:"right"},Vu={vertical:"top",horizontal:"left"},Wu=Vr(zu,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),Hu=Vr($u,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Uu=Vr(Vc,{name:"MuiMenu",slot:"List"})({outline:0}),qu=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m,...g}={},variant:v="selectedMenu",slots:x={},slotProps:w={},...S}=n,C=Yi(),k={...n,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:g,variant:v},M=(e=>{const{classes:t}=e;return b({root:["root"],paper:["paper"],list:["list"]},_u,t)})(k),O=r&&!l&&d,T=i.useRef(null);let P=-1;i.Children.map(o,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===P)&&(P=t))});const D={slots:x,slotProps:{list:c,transition:g,paper:p,...w}},E=pa({elementType:x.root,externalSlotProps:w.root,ownerState:k,className:[M.root,a]}),[j,A]=Jo("paper",{className:M.paper,elementType:Hu,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:k}),[R,N]=Jo("list",{className:y(M.list,c.className),elementType:Uu,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:k}),I="function"==typeof D.slotProps.transition?D.slotProps.transition(k):D.slotProps.transition;return(0,s.jsx)(Wu,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Bu:Vu,slots:{root:x.root,paper:j,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:E,paper:A,backdrop:"function"==typeof w.backdrop?w.backdrop(k):w.backdrop,transition:{...I,onEntering:(...e)=>{((e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)})(...e),I?.onEntering?.(...e)}}},open:d,ref:t,transitionDuration:h,ownerState:k,...S,classes:f,children:(0,s.jsx)(R,{actions:T,autoFocus:r&&(-1===P||l),autoFocusItem:O,variant:v,...N,children:o})})}),Yu=qu;function Ku(e){return Po("MuiNativeSelect",e)}const Gu=Do("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Xu=Vr("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Gu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Ju=Vr(Xu,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:F,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Gu.multiple}`]:t.multiple}]}})({}),Zu=Vr("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Gu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Qu=Vr(Zu,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${L(n.variant)}`],n.open&&t.iconOpen]}})({}),ed=i.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:l,variant:c="standard",...u}=e,d={...e,disabled:r,variant:c,error:o},p=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e;return b({select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${L(n)}`,i&&"iconOpen",r&&"disabled"]},Ku,t)})(d);return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(Ju,{ownerState:d,className:y(p.select,n),disabled:r,ref:l||t,...u}),e.multiple?null:(0,s.jsx)(Qu,{as:a,ownerState:d,className:p.icon})]})});function td(e){return Po("MuiSelect",e)}const nd=Do("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var rd;const od=Vr(Xu,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nd.select}`]:t.select},{[`&.${nd.select}`]:t[n.variant]},{[`&.${nd.error}`]:t.error},{[`&.${nd.multiple}`]:t.multiple}]}})({[`&.${nd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),id=Vr(Zu,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${L(n.variant)}`],n.open&&t.iconOpen]}})({}),sd=Vr("input",{shouldForwardProp:e=>$(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ad(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function ld(e){return null==e||"string"==typeof e&&!e.trim()}const cd=i.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:x,MenuProps:w={},multiple:S,name:C,onBlur:k,onChange:M,onClose:O,onFocus:T,onOpen:P,open:D,readOnly:E,renderValue:j,required:A,SelectDisplayProps:R={},tabIndex:N,type:I,value:$,variant:F="standard",...z}=e,[_,B]=Hr({controlled:$,default:d,name:"Select"}),[V,W]=Hr({controlled:D,default:u,name:"Select"}),H=i.useRef(null),U=i.useRef(null),[q,Y]=i.useState(null),{current:K}=i.useRef(null!=D),[G,X]=i.useState(),J=Qr(t,g),Z=i.useCallback(e=>{U.current=e,e&&Y(e)},[]),Q=q?.parentNode;i.useImperativeHandle(J,()=>({focus:()=>{U.current.focus()},node:H.current,value:_}),[_]),i.useEffect(()=>{u&&V&&q&&!K&&(X(a?null:Q.clientWidth),U.current.focus())},[q,a]),i.useEffect(()=>{o&&U.current.focus()},[o]),i.useEffect(()=>{if(!x)return;const e=Dc(U.current).getElementById(x);if(e){const t=()=>{getSelection().isCollapsed&&U.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[x]);const ee=(e,t)=>{e?P&&P(t):O&&O(t),K||(X(a?null:Q.clientWidth),W(e))},te=i.Children.toArray(l),ne=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(S){n=Array.isArray(_)?_.slice():[];const t=_.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),_!==n&&(B(n),M)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:C}}),M(o,e)}S||ee(!1,t)}},re=null!==q&&V;let oe,ie;delete z["aria-invalid"];const se=[];let ae=!1,le=!1;(Ci({value:_})||f)&&(j?oe=j(_):ae=!0);const ce=te.map(e=>{if(!i.isValidElement(e))return null;let t;if(S){if(!Array.isArray(_))throw new Error(v(2));t=_.some(t=>ad(t,e.props.value)),t&&ae&&se.push(e.props.children)}else t=ad(_,e.props.value),t&&ae&&(ie=e.props.children);return t&&(le=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ne(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ae&&(oe=S?0===se.length?null:se.reduce((e,t,n)=>(e.push(t),n<se.length-1&&e.push(", "),e),[]):ie);let ue,de=G;!a&&K&&q&&(de=Q.clientWidth),ue=void 0!==N?N:p?null:0;const pe=R.id||(C?`mui-component-select-${C}`:void 0),fe={...e,variant:F,value:_,open:re,error:h},he=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e;return b({select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${L(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},td,t)})(fe),me={...w.PaperProps,...w.slotProps?.paper},ge={...w.MenuListProps,...w.slotProps?.list},ye=Fi();return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(od,{as:"div",ref:Z,tabIndex:ue,role:"combobox","aria-controls":re?ye:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[x,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":A?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:e=>{if(!E){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:p||E?null:e=>{0===e.button&&(e.preventDefault(),U.current.focus(),ee(!0,e))},onBlur:e=>{!re&&k&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:C}}),k(e))},onFocus:T,...R,ownerState:fe,className:y(R.className,he.select,c),id:pe,children:ld(oe)?rd||(rd=(0,s.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):oe}),(0,s.jsx)(sd,{"aria-invalid":h,value:Array.isArray(_)?_.join(","):_,name:C,ref:H,"aria-hidden":!0,onChange:e=>{const t=te.find(t=>t.props.value===e.target.value);void 0!==t&&(B(t.props.value),M&&M(e,t))},tabIndex:-1,disabled:p,className:he.nativeInput,autoFocus:o,required:A,...z,ownerState:fe}),(0,s.jsx)(id,{as:m,className:he.icon,ownerState:fe}),(0,s.jsx)(Yu,{id:`menu-${C||""}`,anchorEl:Q,open:re,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:ye,...ge},paper:{...me,style:{minWidth:de,...null!=me?me.style:null}}},children:ce})]})}),ud=cd,dd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>F(e)&&"variant"!==e},pd=Vr(ac,dd)(""),fd=Vr(vc,dd)(""),hd=Vr(dc,dd)(""),md=i.forwardRef(function(e,t){const n=Jr({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=bl,id:p,input:f,inputProps:h,label:m,labelId:g,MenuProps:v,multiple:x=!1,native:w=!1,onClose:S,onOpen:C,open:k,renderValue:M,SelectDisplayProps:O,variant:T="outlined",...P}=n,D=w?ed:ud,E=Di({props:n,muiFormControl:qr(),states:["variant","error"]}),j=E.variant||T,A={...n,variant:j,classes:a},R=(e=>{const{classes:t}=e,n=b({root:["root"]},td,t);return{...t,...n}})(A),{root:N,...I}=R,L=f||{standard:(0,s.jsx)(pd,{ownerState:A}),outlined:(0,s.jsx)(fd,{label:m,ownerState:A}),filled:(0,s.jsx)(hd,{ownerState:A})}[j],$=Qr(t,ha(L));return(0,s.jsx)(i.Fragment,{children:i.cloneElement(L,{inputComponent:D,inputProps:{children:o,error:E.error,IconComponent:d,variant:j,type:void 0,multiple:x,...w?{id:p}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:v,onClose:S,onOpen:C,open:k,renderValue:M,SelectDisplayProps:{id:p,...O}},...h,classes:h?Ot(I,h.classes):I,...f?f.props.inputProps:{}},...(x&&w||u)&&"outlined"===j?{notched:!0}:{},ref:$,className:y(L.props.className,l,R.root),...!f&&{variant:j},...P})})});md.muiName="Select";const gd=md;function yd(e){return Po("MuiTextField",e)}Do("MuiTextField",["root"]);const bd={standard:ac,filled:dc,outlined:vc},vd=Vr(Pi,{name:"MuiTextField",slot:"Root"})({}),xd=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:f=!1,helperText:h,id:m,InputLabelProps:g,inputProps:v,InputProps:x,inputRef:w,label:S,maxRows:C,minRows:k,multiline:M=!1,name:O,onBlur:T,onChange:P,onFocus:D,placeholder:E,required:j=!1,rows:A,select:R=!1,SelectProps:N,slots:I={},slotProps:L={},type:$,value:F,variant:z="outlined",..._}=n,B={...n,autoFocus:o,color:l,disabled:u,error:d,fullWidth:f,multiline:M,required:j,select:R,variant:z},V=(e=>{const{classes:t}=e;return b({root:["root"]},yd,t)})(B);const W=Fi(m),H=h&&W?`${W}-helper-text`:void 0,U=S&&W?`${W}-label`:void 0,q=bd[z],Y={slots:I,slotProps:{input:x,inputLabel:g,htmlInput:v,formHelperText:p,select:N,...L}},K={},G=Y.slotProps.inputLabel;"outlined"===z&&(G&&void 0!==G.shrink&&(K.notched=G.shrink),K.label=S),R&&(N&&N.native||(K.id=void 0),K["aria-describedby"]=void 0);const[X,J]=Jo("root",{elementType:vd,shouldForwardComponentProp:!0,externalForwardedProps:{...Y,..._},ownerState:B,className:y(V.root,a),ref:t,additionalProps:{disabled:u,error:d,fullWidth:f,required:j,color:l,variant:z}}),[Z,Q]=Jo("input",{elementType:q,externalForwardedProps:Y,additionalProps:K,ownerState:B}),[ee,te]=Jo("inputLabel",{elementType:Pc,externalForwardedProps:Y,ownerState:B}),[ne,re]=Jo("htmlInput",{elementType:"input",externalForwardedProps:Y,ownerState:B}),[oe,ie]=Jo("formHelperText",{elementType:Ni,externalForwardedProps:Y,ownerState:B}),[se,ae]=Jo("select",{elementType:gd,externalForwardedProps:Y,ownerState:B}),le=(0,s.jsx)(Z,{"aria-describedby":H,autoComplete:r,autoFocus:o,defaultValue:c,fullWidth:f,multiline:M,name:O,rows:A,maxRows:C,minRows:k,type:$,value:F,id:W,inputRef:w,onBlur:T,onChange:P,onFocus:D,placeholder:E,inputProps:re,slots:{input:I.htmlInput?ne:void 0},...Q});return(0,s.jsxs)(X,{...J,children:[null!=S&&""!==S&&(0,s.jsx)(ee,{htmlFor:W,id:U,...te,children:S}),R?(0,s.jsx)(se,{"aria-describedby":H,id:W,labelId:U,value:F,input:le,...ae,children:i}):le,h&&(0,s.jsx)(oe,{id:H,...ie,children:h})]})}),wd=xd;function Sd(e){return Sd="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},Sd(e)}var Cd=["required","disabled","error"];function kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Md(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Sd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Sd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Od=function(e){var t=e.required,n=e.disabled,r=e.error,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Cd);return(0,s.jsx)(Pc,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach(function(t){Md(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({required:t,disabled:n,error:r,sx:[{backgroundColor:"transparent",display:"flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:"#333","& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},t&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},n&&{color:"#333333 !important"},r&&{color:"#AE1C1C !important"}]},o))},Td=li((0,s.jsx)("path",{d:"M19 5v14H5V5zm0-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-2"})),Pd=li((0,s.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}));var Dd=o(2543),Ed=o.n(Dd);function jd(e){return jd="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},jd(e)}var Ad=["id","required","disabled","label"];function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach(function(t){Id(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Id(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=jd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ld=function(e){var t=e.id,n=e.required,r=void 0!==n&&n,o=e.disabled,i=void 0!==o&&o,a=e.label,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ad);return(0,s.jsxs)(Pi,{fullWidth:!0,children:[(0,s.jsx)(Od,{disabled:i,shrink:!0,required:r,htmlFor:t,sx:[{backgroundColor:"transparent",display:"flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:"#333","& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},r&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},i&&{color:"rgba(0,0,0,0.6)"}],children:a}),(0,s.jsx)(Vl,Nd(Nd({style:{color:"#333",fontFamily:"Rubik",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"24px",border:"none",resize:"none",padding:"0px 0px",outline:"none",boxShadow:"none"},readOnly:!0,disableUnderline:!0,label:null,disabled:i,id:t},l),{},{value:Ed().isEmpty(null==l?void 0:l.value)?"-":l.value}))]})};var $d=["id","dataTestId","options","disabled","label","placeholder","multiple","required","error","helperText","onChange"];function Fd(e){return Fd="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},Fd(e)}function zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zd(Object(n),!0).forEach(function(t){Bd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Fd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vd={marginTop:"8px",borderRadius:"3px",height:40,"& .MuiOutlinedInput-notchedOutline":{borderRadius:"3px","& legend":{width:0}},"& .MuiAutocomplete-inputFocused":{border:"none",boxShadow:"none",outline:"none"},"& .MuiAutocomplete-inputRoot":{paddingTop:0,paddingBottom:0},"& .Mui-disabled":{backgroundColor:"#EDEDED",border:"#EDEDED"},"& .MuiChip-deleteIcon":{color:"#757575"}},Wd=(0,s.jsx)(Pd,{fontSize:"small"}),Hd=(0,s.jsx)(Td,{fontSize:"small"});const Ud=function(e){var t,n,r,o=e.id,i=e.dataTestId,a=e.options,l=void 0===a?[]:a,c=e.disabled,u=void 0!==c&&c,d=e.label,p=e.placeholder,f=e.multiple,h=void 0!==f&&f,m=e.required,g=void 0!==m&&m,y=e.error,b=void 0!==y&&y,v=e.helperText,x=e.onChange,w=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,$d);return u?(0,s.jsx)(Ld,_d(_d({required:g,label:d,id:o,size:"small"},w),{},{value:Ed().isEmpty(w.value)?"-":w.value})):(0,s.jsxs)(Pi,{error:b,fullWidth:!0,children:[(0,s.jsx)("div",{style:{width:1,display:"flex",flexDirection:"column",flexGrow:1}}),(0,s.jsx)(Od,{htmlFor:"".concat(o),id:"".concat(o,"-label"),disabled:u,required:g,shrink:!0,style:{marginBottom:0,height:16},sx:[{backgroundColor:"transparent",display:"flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:"#333","& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},g&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},u&&{color:"rgba(0,0,0,0.6)"},b&&{color:"#AE1C1C !important"}],children:d}),v&&(0,s.jsx)(Ni,{tabIndex:0,"aria-live":"polite",id:"".concat(o,"-helper-text"),"data-testid":"".concat(o,"-helper-text"),error:b,sx:[{margin:"4px 0px 0px 0px",color:"#515151",lineHeight:1},b&&{color:"#AE1C1C !important"}],children:v}),(0,s.jsx)(Il,_d(_d({disablePortal:!0,id:o,"data-testid":i,options:l,disabled:u,multiple:h,disableCloseOnSelect:h,disableClearable:!(null!==(t=w.value)&&void 0!==t&&t.length)||""===(null===(n=w.value)||void 0===n?void 0:n[0])||"-"===(null===(r=w.value)||void 0===r?void 0:r[0]),sx:h?_d(_d({},Vd),{},{height:"auto","& .MuiAutocomplete-inputRoot":{paddingTop:1,paddingBottom:1}}):Vd,renderInput:function(e){var t=e.inputProps;return t["aria-required"]=g,t["aria-describedby"]="".concat(o,"-helper-text"),t["aria-labelledby"]="".concat(o,"-label"),(0,s.jsx)(wd,_d(_d({sx:{border:"none","& .MuiOutlinedInput-notchedOutline":{borderRadius:"3px",borderColor:"#8C8C8C","& legend":{width:0}},"& .MuiInputBase-input":{opacity:1,color:"#333","&::placeholder":{opacity:1,color:"#717171"}}}},e),{},{placeholder:p,inputProps:t,label:"",error:b}))},renderOption:function(e,t,n){var r=n.selected;return h?function(e,t,n){var r=_d(_d({},e),{},{key:"".concat(e.key,"_").concat(e.id)});return(0,s.jsxs)("li",_d(_d({},r),{},{children:[(0,s.jsx)(wi,{icon:Hd,checkedIcon:Wd,style:{marginRight:8},checked:n}),t]}))}(e,t,r):function(e,t){var n=_d(_d({},e),{},{key:"".concat(e.key,"_").concat(e.id)});return(0,s.jsx)("li",_d(_d({},n),{},{children:t}))}(e,t)}},w),{},{onChange:function(e,t,n,r){return x(o,t||"",n,r)}}))]})};function qd(e){return qd="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},qd(e)}var Yd=["children","className","href","loading","onClick","size","type","variant"],Kd=["className"];function Gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach(function(t){Jd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qd(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qd=["secondary","outline","outline-secondary","outline-filled","action","cyan","danger","danger-primary","white"],ep=["big"],tp=function(e){var t=e.children,n=void 0===t?null:t,r=e.className,o=void 0===r?"":r,i=e.href,a=void 0===i?"":i,l=e.loading,c=void 0!==l&&l,u=e.onClick,d=void 0===u?function(){return null}:u,p=e.size,f=void 0===p?null:p,h=e.type,m=void 0===h?"button":h,g=e.variant,y=void 0===g?null:g,b=Zd(e,Yd),v="qpp-c-button";return Qd.includes(y)&&(v+=" qpp-c-button--".concat(y)),ep.includes(f)&&(v+=" qpp-c-button--".concat(f)),o&&(v+=" ".concat(o)),a?(0,s.jsx)("a",{href:a,"data-testid":"ds-btn",className:v,onClick:d,children:n}):(0,s.jsx)("button",Xd(Xd({"data-testid":"ds-btn",className:v,onClick:d,disabled:c,type:m},b),{},{children:n}))},np=function(e){var t=e.className,n=void 0===t?"":t,r=Zd(e,Kd);return(0,s.jsx)(tp,Xd({className:"qpp-c-button--text ".concat(n)},r))};const rp=tp;function op(e){return op="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},op(e)}var ip=["color"];function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach(function(t){lp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=op(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==op(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cp=function(e){var t=e.color,n=void 0===t?"#0073C8":t,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ip);return(0,s.jsxs)("svg",ap(ap({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},r),{},{children:[(0,s.jsx)("g",{clipPath:"url(#clip0_17397_1786)",children:(0,s.jsx)("path",{d:"M6.4165 10.5H7.58317V9.33334H6.4165V10.5ZM6.99984 1.16667C3.77984 1.16667 1.1665 3.78001 1.1665 7.00001C1.1665 10.22 3.77984 12.8333 6.99984 12.8333C10.2198 12.8333 12.8332 10.22 12.8332 7.00001C12.8332 3.78001 10.2198 1.16667 6.99984 1.16667ZM6.99984 11.6667C4.42734 11.6667 2.33317 9.57251 2.33317 7.00001C2.33317 4.42751 4.42734 2.33334 6.99984 2.33334C9.57234 2.33334 11.6665 4.42751 11.6665 7.00001C11.6665 9.57251 9.57234 11.6667 6.99984 11.6667ZM6.99984 3.50001C5.71067 3.50001 4.6665 4.54417 4.6665 5.83334H5.83317C5.83317 5.19167 6.35817 4.66667 6.99984 4.66667C7.6415 4.66667 8.1665 5.19167 8.1665 5.83334C8.1665 7.00001 6.4165 6.85417 6.4165 8.75001H7.58317C7.58317 7.43751 9.33317 7.29167 9.33317 5.83334C9.33317 4.54417 8.289 3.50001 6.99984 3.50001Z",fill:n})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_17397_1786",children:(0,s.jsx)("rect",{width:"14",height:"14",fill:n})})})]}))};function up(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const pp=function(e){var t=e.tooltipText,n=void 0===t?"informational text":t,r=e.id,o=up((0,i.useState)(!1),2),a=o[0],l=o[1];return(0,s.jsxs)("button",{"data-testid":"".concat(r,"-button"),tabIndex:0,onFocus:function(){return l(!0)},onBlur:function(){l(!1)},onMouseEnter:function(){l(!0)},onMouseLeave:function(){l(!1)},onKeyDown:function(e){"Escape"===e.key&&l(!1)},className:"madie-tooltip-button",onClick:function(e){return e.preventDefault()},children:[(0,s.jsx)(cp,{}),(0,s.jsx)("div",{role:"tooltip",id:r,"data-testid":r,"aria-live":"polite",className:a?"madie-tooltip":"madie-tooltip hidden",children:(0,s.jsx)("p",{children:n})})]})};function fp(e){return fp="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},fp(e)}var hp=["id","error","helperText","required","disabled","label","tooltipText","inputProps","labelColor","textFieldStyles","maxLength"];function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mp(Object(n),!0).forEach(function(t){yp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=fp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bp=function(e){var t,n=e.id,r=e.error,o=void 0!==r&&r,i=e.helperText,a=void 0===i?void 0:i,l=e.required,c=void 0!==l&&l,u=e.disabled,d=void 0!==u&&u,p=e.label,f=e.tooltipText,h=e.inputProps,m=e.labelColor,g=void 0===m?void 0:m,y=e.textFieldStyles,b=void 0===y?{}:y,v=e.maxLength,x=void 0===v?void 0:v,w=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,hp);if(d)return(0,s.jsx)(Ld,gp({required:c,label:p,id:n,size:"small"},w));var S=gp({},h)||{};if(S["data-testid"]||(S["data-testid"]="".concat(n,"-input")),!S["aria-describedby"]){var C="";a&&(C+="".concat(n,"-helper-text ")),f&&(C+="".concat(n,"-tooltip")),C&&(S["aria-describedby"]=C)}var k=gp({borderRadius:"3px",border:"none",marginTop:"8px","& .MuiOutlinedInput-notchedOutline":{borderRadius:"3px",borderColor:"#8C8C8C","& legend":{width:0}},"& .MuiInputBase-root":{height:"auto"},"& .MuiOutlinedInput-root":{"&&":{borderRadius:"3px"}},"& .MuiInputBase-input":{color:"#333",fontFamily:"Rubik",fontSize:14,borderRadius:"3px",padding:"9px 14px","&::placeholder":{opacity:1,color:"#717171"}}},b);return(0,s.jsxs)(Pi,{fullWidth:!0,error:o,children:[(0,s.jsx)("div",{style:{width:1,display:"flex",flexDirection:"column",flexGrow:1}}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,s.jsx)(Od,{disabled:d,shrink:!0,required:c,error:o,htmlFor:n,style:{marginBottom:0,height:16},sx:[{backgroundColor:"transparent",display:"flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:function(){return g||"#333"},"& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},c&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},d&&{color:"rgba(0,0,0,0.6)"},o&&{color:"#AE1C1C !important"}],children:p}),f&&(0,s.jsx)(pp,{tooltipText:f,id:"".concat(n,"-tooltip")})]}),a&&(0,s.jsx)(Ni,{tabIndex:0,"aria-live":"polite",id:"".concat(n,"-helper-text"),"data-testid":"".concat(n,"-helper-text"),sx:[{margin:"4px 0px 0px 0px",color:"#515151",lineHeight:1},o&&{color:"#AE1C1C !important"}],children:a}),(0,s.jsx)(wd,gp({sx:k,label:null,error:o,disabled:d,id:n,inputProps:gp({},S)},w)),x&&!d&&(0,s.jsxs)("span",{style:{fontFamily:"Rubik",fontSize:12,color:"#717171",position:"absolute",bottom:-26,right:0},children:[null===(t=w.value)||void 0===t?void 0:t.length,"/",x," Characters"]})]})};function vp(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=xt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(An),l=i.forwardRef(function(e,i){const l=ja(n),{className:c,component:u="div",...d}=Hl(e);return(0,s.jsx)(a,{as:u,ref:i,className:y(c,o?o(r):r),theme:t&&l[t]||l,...d})});return l}const xp=Do("MuiBox",["root"]),wp=zr(),Sp=vp({themeId:Br,defaultTheme:wp,defaultClassName:xp.root,generateClassName:Oo.generate});function Cp(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Kr(t.components[n].defaultProps,r):r}function kp(e,t,n,r,o){const[s,a]=i.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return eo(()=>{if(!n)return;const t=n(e),r=()=>{a(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e,n]),s}const Mp={...i}.useSyncExternalStore;function Op(e,t,n,r,o){const s=i.useCallback(()=>t,[t]),a=i.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return s},[s,e,r,o,n]),[l,c]=i.useMemo(()=>{if(null===n)return[s,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[s,n,e]);return Mp(c,l,a)}function Tp(e={}){const{themeId:t}=e;return function(e,n={}){let r=Da();r&&t&&(r=r[t]||r);const o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:s=(o?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:l=!1}=Cp({name:"MuiUseMediaQuery",props:n,theme:r});let c="function"==typeof e?e(r):e;c=c.replace(/^@media( ?)/m,""),c.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join("\n"));return(void 0!==Mp?Op:kp)(c,i,s,a,l)}}Tp();const Pp=Tp({themeId:Br});function Dp({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=ja(n);return r&&(o=o[r]||o),Cp({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:_r,themeId:Br})}var Ep=o(5556),jp=o.n(Ep);const Ap=Ep.oneOfType([Ep.func,Ep.object]),Rp=(e,t)=>e.length===t.length&&t.every(t=>e.includes(t)),Np=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(null!=e)i=e;else if(o.includes(t))i=t;else{if(!(o.length>0))throw new Error("MUI X: The `views` prop must contain at least one view.");i=o[0]}return{views:o,openTo:i}},Ip=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},Lp=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=Ip(s,s.date(void 0,a),e);n&&s.isBefore(o,l)&&(o=l),t&&s.isAfter(r,l)&&(r=l);let c=e,u=e;for(s.isBefore(e,o)&&(c=o,u=null),s.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&s.isAfter(c,r)&&(c=null),u&&s.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=s.addDays(c,1)}if(u){if(!i(u))return u;u=s.addDays(u,-1)}}return null},$p=(e,t,n)=>null!=t&&e.isValid(t)?t:n,Fp=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},zp=(e,t,n)=>"date"===n?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),_p=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},Bp=["year","month","day"],Vp=e=>Bp.includes(e),Wp=(e,{format:t,views:n},r)=>{if(null!=t)return t;const o=e.formats;return Rp(n,["year"])?o.year:Rp(n,["month"])?o.month:Rp(n,["day"])?o.dayOfMonth:Rp(n,["month","year"])?`${o.month} ${o.year}`:Rp(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Hp=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(t=>e.addDays(n,t))},Up=["hours","minutes","seconds"],qp=e=>Up.includes(e),Yp=e=>Up.includes(e)||"meridiem"===e,Kp=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},Gp=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),Xp=(e,t)=>(n,r)=>e?t.isAfter(n,r):Gp(n,t)>Gp(r,t),Jp=(e,{format:t,views:n,ampm:r})=>{if(null!=t)return t;const o=e.formats;return Rp(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Rp(n,["minutes"])?o.minutes:Rp(n,["seconds"])?o.seconds:Rp(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Rp(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},Zp={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Qp=(e,t,n)=>{if(t===Zp.year)return e.startOfYear(n);if(t===Zp.month)return e.startOfMonth(n);if(t===Zp.day)return e.startOfDay(n);let r=n;return t<Zp.minutes&&(r=e.setMinutes(r,0)),t<Zp.seconds&&(r=e.setSeconds(r,0)),t<Zp.milliseconds&&(r=e.setMilliseconds(r,0)),r},ef=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},tf=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let s=o;for(;e.isBefore(s,i);)n.push(s),s=e.addDays(s,1);return n.map(n=>e.formatByString(n,t))},nf=(e,t,n,r)=>{switch(n){case"month":return Fp(e,e.date(void 0,t)).map(t=>e.formatByString(t,r));case"weekDay":return tf(e,r);case"meridiem":{const n=e.date(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map(t=>e.formatByString(t,r))}default:return[]}},rf=["0","1","2","3","4","5","6","7","8","9"],of=(e,t)=>{if("0"===t[0])return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},sf=(e,t)=>"0"===t[0]?e:e.split("").map(e=>t[Number(e)]).join(""),af=(e,t)=>{const n=of(e,t);return" "!==n&&!Number.isNaN(Number(n))},lf=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},cf=(e,t,n,r,o)=>{if("day"===o.type&&"digit-with-letter"===o.contentType){const r=e.setDate(n.longestMonth,t);return e.formatByString(r,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=lf(i,o.maxLength)),sf(i,r)},uf=(e,t,n,r,o,i,s,a)=>{const l=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),c="Home"===r,u="End"===r,d=""===n.value||c||u;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),p=t=>cf(e,t,r,i,n),f="minutes"===n.type&&a?.minutesStep?a.minutesStep:1;let h;if(d){if("year"===n.type&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);h=l>0||c?r.minimum:r.maximum}else h=parseInt(of(n.value,i),10)+l*f;return h%f!==0&&((l<0||c)&&(h+=f-(f+h)%f),(l>0||u)&&(h-=h%f)),h>r.maximum?p(r.minimum+(h-r.maximum-1)%(r.maximum-r.minimum+1)):h<r.minimum?p(r.maximum-(r.minimum-h-1)%(r.maximum-r.minimum+1)):p(h)})():(()=>{const r=nf(e,t,n.type,n.format);if(0===r.length)return n.value;if(d)return l>0||c?r[0]:r[r.length-1];const o=r.indexOf(n.value);return r[((o+l)%r.length+r.length)%r.length]})()},df=(e,t,n)=>{let r=e.value||e.placeholder;const o="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(of(r,n)).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!o&&1===r.length&&(r=`${r}`),"input-rtl"===t&&(r=`${r}`),r},pf=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),ff=(e,t)=>4===e.formatByString(e.date(void 0,"system"),t).length,hf=(e,t,n,r)=>{if("digit"!==t)return!1;const o=e.date(void 0,"default");switch(n){case"year":return"dayjs"===e.lib&&"YY"===r||e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}};const mf=(e,t)=>{0},gf={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},yf=(e,t,n,r,o)=>[...n].sort((e,t)=>gf[e.type]-gf[t.type]).reduce((n,r)=>!o||r.modified?((e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const r=tf(e,t.format),o=e.formatByString(n,t.format),i=r.indexOf(o),s=r.indexOf(t.value)-i;return e.addDays(n,s)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const t=e.getHours(n)<12,o=e.getHours(r);return t&&o>=12?e.addHours(r,-12):!t&&o<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}})(e,r,t,n):n,r),bf=(e,t)=>{if(null==e)return null;if("all"===e)return"all";if("string"==typeof e){const n=t.findIndex(t=>t.type===e);return-1===n?null:n}return e},vf=(e,t)=>{if(e.value)switch(e.type){case"month":{if("digit"===e.contentType)return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return"digit"===e.contentType?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;default:return}},xf=(e,t)=>{if(e.value)switch(e.type){case"weekDay":if("letter"===e.contentType)return;return Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return"digit-with-letter"===e.contentType?parseInt(e.value,10):Number(e.value);case"month":{if("digit"===e.contentType)return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return"letter"!==e.contentType?Number(e.value):void 0}},wf=["value","referenceDate"],Sf={emptyValue:null,getTodayValue:zp,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=so(e,wf);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():Qp(t,n,zp(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,i)&&(i=Qp(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,i)&&(i=Qp(t,n,e.maxDate));const s=Xp(e.disableIgnoringDatePartForTimeValidation??!1,t);return null!=e.minTime&&s(e.minTime,i)&&(i=Qp(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ip(t,i,e.minTime))),null!=e.maxTime&&s(i,e.maxTime)&&(i=Qp(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ip(t,i,e.maxTime))),i})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},Cf={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:e=>e.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),getV6InputValueFromSections:(e,t,n)=>{const r=e.map(e=>{const r=df(e,n?"input-rtl":"input-ltr",t);return`${e.startSeparator}${r}${e.endSeparator}`}).join("");return n?`${r}`:r},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},kf=["localeText"],Mf=i.createContext(null);const Of=function(e){const{localeText:t}=e,n=so(e,kf),{utils:r,localeText:o}=i.useContext(Mf)??{utils:void 0,localeText:void 0},a=Dp({props:n,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:f}=a,h=i.useMemo(()=>z({},f,o,t),[f,o,t]),m=i.useMemo(()=>{if(!c)return r||null;const e=new c({locale:p,formats:u,instance:d});if(!e.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e},[c,p,u,d,r]),g=i.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=i.useMemo(()=>({utils:m,defaultDates:g,localeText:h}),[g,m,h]);return(0,s.jsx)(Mf.Provider,{value:y,children:l})},Tf=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return e=>{const i=null!==e&&t.isValid(e)?t.format(e,n):null;return(o??r)(e,t,i)}},Pf={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${r||null!==t&&n.isValid(t)?`Selected time is ${r??n.format(t,"fullTime")}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Df=Pf;z({},Pf);const Ef=()=>{const e=i.useContext(Mf);if(null===e)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=i.useMemo(()=>z({},Df,e.localeText),[e.localeText]);return i.useMemo(()=>z({},e,{localeText:t}),[e,t])},jf=()=>Ef().utils,Af=()=>Ef().defaultDates,Rf=e=>{const t=jf(),n=i.useRef(void 0);return void 0===n.current&&(n.current=t.date(void 0,e)),n.current};function Nf(e){return Po("MuiTypography",e)}Do("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const If={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Lf=Hl,$f=Vr("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${L(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ri(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${L(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),Ff={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zf=i.forwardRef(function(e,t){const{color:n,...r}=Jr({props:e,name:"MuiTypography"}),o=Lf({...r,...!If[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:f=Ff,...h}=o,m={...o,align:i,color:n,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:f},g=l||(d?"p":f[p]||Ff[p])||"span",v=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e;return b({root:["root",i,"inherit"!==e.align&&`align${L(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Nf,s)})(m);return(0,s.jsx)($f,{as:g,ref:t,className:y(v.root,a),...h,ownerState:m,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...h.style}})}),_f=zf;function Bf(e){return Po("MuiPickersToolbar",e)}const Vf=Do("MuiPickersToolbar",["root","content"]),Wf=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Hf=Vr("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Uf=Vr("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),qf=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:i,hidden:a,titleId:l}=n,c=so(n,Wf),u=n,d=(e=>{const{classes:t}=e;return b({root:["root"],content:["content"]},Bf,t)})(u);return a?null:(0,s.jsxs)(Hf,z({ref:t,className:y(d.root,o),ownerState:u},c,{children:[(0,s.jsx)(_f,{color:"text.secondary",variant:"overline",id:l,children:i}),(0,s.jsx)(Uf,{className:d.content,ownerState:u,children:r})]}))}),Yf=()=>Ef().localeText;function Kf(e){return Po("MuiDatePickerToolbar",e)}Do("MuiDatePickerToolbar",["root","title"]);const Gf=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Xf=Vr(qf,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jf=Vr(_f,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Zf=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:l="––",views:c,className:u}=n,d=so(n,Gf),p=jf(),f=Yf(),h=(e=>{const{classes:t}=e;return b({root:["root"],title:["title"]},Kf,t)})(n),m=i.useMemo(()=>{if(!r)return l;const e=Wp(p,{format:a,views:c},!0);return p.formatByString(r,e)},[r,a,l,p,c]),g=n;return(0,s.jsx)(Xf,z({ref:t,toolbarTitle:f.datePickerToolbarTitle,isLandscape:o,className:y(h.root,u)},d,{children:(0,s.jsx)(Jf,{variant:"h4",align:o?"left":"center",ownerState:g,className:h.title,children:m})}))});function Qf(e,t){const n=jf(),r=Af(),o=Dp({props:e,name:t}),s=i.useMemo(()=>null==o.localeText?.toolbarTitle?o.localeText:z({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return z({},o,{localeText:s},Np({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:$p(n,o.minDate,r.minDate),maxDate:$p(n,o.maxDate,r.maxDate),slots:z({toolbar:Zf},o.slots)})}const eh=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],th=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],nh=["minDateTime","maxDateTime"],rh=[...eh,...th,...nh],oh=e=>rh.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),ih=({props:e,value:t,timezone:n,adapter:r})=>{if(null===t)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:s,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=$p(r.utils,e.minDate,r.defaultDates.minDate),d=$p(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case Boolean(o&&o(t)):return"shouldDisableDate";case Boolean(i&&i(t)):return"shouldDisableMonth";case Boolean(s&&s(t)):return"shouldDisableYear";case Boolean(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case Boolean(a&&r.utils.isBeforeDay(t,c)):return"disablePast";case Boolean(u&&r.utils.isBeforeDay(t,u)):return"minDate";case Boolean(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};function sh(e){return Po("MuiInputAdornment",e)}ih.valueManager=Sf;const ah=Do("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var lh;const ch=Vr("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${L(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(ri(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${ah.positionStart}&:not(.${ah.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),uh=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...p}=n,f=qr()||{};let h=d;d&&f.variant,f&&!h&&(h=f.variant);const m={...n,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:l,position:u,variant:h},g=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e;return b({root:["root",n&&"disablePointerEvents",o&&`position${L(o)}`,s,r&&"hiddenLabel",i&&`size${L(i)}`]},sh,t)})(m);return(0,s.jsx)(Ur.Provider,{value:null,children:(0,s.jsx)(ch,{as:a,ownerState:m,className:y(g.root,o),ref:t,...p,children:"string"!=typeof r||c?(0,s.jsxs)(i.Fragment,{children:["start"===u?lh||(lh=(0,s.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]}):(0,s.jsx)(_f,{color:"textSecondary",children:r})})})}),dh=uh;function ph(e){return Po("MuiPickersPopper",e)}Do("MuiPickersPopper",["root","paper"]);function fh(e,t){return Array.isArray(t)?t.every(t=>-1!==e.indexOf(t)):-1!==e.indexOf(t)}const hh=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?hh(t.shadowRoot):t:null},mh=e=>Array.from(e.children).indexOf(hh(document)),gh="@media (pointer: fine)",yh="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),bh=yh&&yh[1]?parseInt(yh[1],10):null,vh=yh&&yh[2]?parseInt(yh[2],10):null,xh=bh&&bh<10||vh&&vh<13||!1,wh=()=>Pp("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||xh,Sh=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Ch=Vr(ka,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),kh=Vr(La,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});const Mh=i.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:a,paperClasses:l,onPaperClick:c,onPaperTouchStart:u}=e,d=so(e,Sh),p=z({},o,{placement:r}),f=pa({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return(0,s.jsx)(n,z({},d,f,{onClick:e=>{c(e),f.onClick?.(e)},onTouchStart:e=>{u(e),f.onTouchStart?.(e)},ownerState:p,children:i}))});function Oh(e){const t=Dp({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:a,onBlur:l,onDismiss:c,open:u,role:d,placement:p,slots:f,slotProps:h,reduceAnimations:m}=t;i.useEffect(()=>{function e(e){u&&"Escape"===e.key&&c()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,u]);const g=i.useRef(null);i.useEffect(()=>{"tooltip"===d||a&&!a()||(u?g.current=hh(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[u,d,a]);const[y,v,x]=function(e,t){const n=i.useRef(!1),r=i.useRef(!1),o=i.useRef(null),s=i.useRef(!1);i.useEffect(()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),s.current=!1};function t(){s.current=!0}},[e]);const a=to(e=>{if(!s.current)return;const i=r.current;r.current=!1;const a=Ki(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,a))return;if(n.current)return void(n.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(o.current)>-1:!a.documentElement.contains(e.target)||o.current.contains(e.target),l||i||t(e)}),l=()=>{r.current=!0};return i.useEffect(()=>{if(e){const e=Ki(o.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",a),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",t)}}},[e,a]),i.useEffect(()=>{if(e){const e=Ki(o.current);return e.addEventListener("click",a),()=>{e.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,l,l]}(u,l??c),w=Zr(i.useRef(null),o),S=Zr(w,y),C=t,k=(e=>{const{classes:t}=e;return b({root:["root"],paper:["paper"]},ph,t)})(C),M=wh(),O=m??M,T=f?.desktopTransition??O?fu:su,P=f?.desktopTrapFocus??uu,D=f?.desktopPaper??kh,E=f?.popper??Ch,j=pa({elementType:E,externalSlotProps:h?.popper,additionalProps:{transition:!0,role:d,open:u,anchorEl:n,placement:p,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),c())}},className:k.root,ownerState:t});return(0,s.jsx)(E,z({},j,{children:({TransitionProps:e,placement:t})=>(0,s.jsx)(P,z({open:u,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===d,isEnabled:()=>!0},h?.desktopTrapFocus,{children:(0,s.jsx)(T,z({},e,h?.desktopTransition,{children:(0,s.jsx)(Mh,{PaperComponent:D,ownerState:C,popperPlacement:t,ref:S,onPaperClick:v,onPaperTouchStart:x,paperClasses:k.paper,paperSlotProps:h?.desktopPaper,children:r})}))}))}))}function Th(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,a=Ef(),l=i.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:r,timezone:o,props:t}),u=n.valueManager.hasError(c);i.useEffect(()=>{s&&!n.valueManager.isSameError(c,l.current)&&s(c,r),l.current=c},[n,s,c,r]);const d=to(e=>n({adapter:a,value:e,timezone:o,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Ph=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const a=jf(),l=i.useRef(n),c=t??l.current??s.emptyValue,u=i.useMemo(()=>s.getTimezone(a,c),[a,s,c]),d=to(e=>null==u?e:s.setTimezone(a,u,e));let p;p=e||(u||(r?a.getTimezone(r):"default"));return{value:i.useMemo(()=>s.setTimezone(a,p,c),[s,a,p,c]),handleValueChange:to((e,...t)=>{const n=d(e);o?.(n,...t)}),timezone:p}},Dh=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[a,l]=Wr({name:e,state:"value",controlled:n,default:r??s.emptyValue}),c=to((e,...t)=>{l(e),i?.(e,...t)});return Ph({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:s})},Eh=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:a,value:l,defaultValue:c,closeOnSelect:u="desktop"===r,timezone:d,referenceDate:p}=e,{current:f}=i.useRef(c),{current:h}=i.useRef(void 0!==l),[m,g]=i.useState(d);const y=jf(),b=Ef(),{isOpen:v,setIsOpen:x}=(({open:e,onOpen:t,onClose:n})=>{const r=i.useRef("boolean"==typeof e).current,[o,s]=i.useState(!1);return i.useEffect(()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]),{isOpen:o,setIsOpen:i.useCallback(e=>{r||s(e),e&&t&&t(),!e&&n&&n()},[r,t,n])}})(e),{timezone:w,value:S,handleValueChange:C}=Ph({timezone:d,value:l,defaultValue:f,referenceDate:p,onChange:a,valueManager:t}),[k,M]=i.useState(()=>{let e;return e=void 0!==S?S:void 0!==f?f:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),O=t.getTimezone(y,k.draft);m!==d&&(g(d),d&&O&&d!==O&&M(e=>z({},e,{draft:t.setTimezone(y,d,e.draft)})));const{getValidationErrorForNewValue:T}=Th({props:e,validator:o,timezone:w,value:k.draft,onError:e.onError}),P=to(e=>{const n={action:e,dateState:k,hasChanged:n=>!t.areValuesEqual(y,e.value,n),isControlled:h,closeOnSelect:u},r=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!i||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!i||n(r.lastPublishedValue)))})(n),o=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,s=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!s||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&i?!!s||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(n),i=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(n);M(t=>z({},t,{draft:e.value,lastPublishedValue:r?e.value:t.lastPublishedValue,lastCommittedValue:o?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let a=null;const l=()=>{if(!a){const t="setValueFromField"===e.name?e.context.validationError:T(e.value);a={validationError:t},"setValueFromShortcut"===e.name&&(a.shortcut=e.shortcut)}return a};r&&C(e.value,l()),o&&s&&s(e.value,l()),i&&x(!1)});if(k.lastControlledValue!==l){const e=t.areValuesEqual(y,k.draft,S);M(t=>z({},t,{lastControlledValue:l},e?{}:{lastCommittedValue:S,lastPublishedValue:S,draft:S,hasBeenModifiedSinceMount:!0}))}const D=to(()=>{P({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),E=to(()=>{P({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),j=to(()=>{P({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),A=to(()=>{P({value:k.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),R=to(()=>{P({value:t.getTodayValue(y,w,n),name:"setValueFromAction",pickerAction:"today"})}),N=to(e=>{e.preventDefault(),x(!0)}),I=to(e=>{e?.preventDefault(),x(!1)}),L=to((e,t="partial")=>P({name:"setValueFromView",value:e,selectionState:t})),$=to((e,t,n)=>P({name:"setValueFromShortcut",value:e,changeImportance:t,shortcut:n})),F=to((e,t)=>P({name:"setValueFromField",value:e,context:t})),_={onClear:D,onAccept:E,onDismiss:j,onCancel:A,onSetToday:R,onOpen:N,onClose:I},B={value:k.draft,onChange:F},V=i.useMemo(()=>t.cleanValue(y,k.draft),[y,t,k.draft]),W={value:V,onChange:L,onClose:I,open:v},H=z({},_,{value:V,onChange:L,onSelectShortcut:$,isValid:n=>{const r=o({adapter:b,value:n,timezone:w,props:e});return!t.hasError(r)}}),U=i.useMemo(()=>({onOpen:N,onClose:I,open:v}),[v,I,N]);return{open:v,fieldProps:B,viewProps:W,layoutProps:H,actions:_,contextValue:U}};function jh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:a,onFocusedViewChange:l}){const c=i.useRef(n),u=i.useRef(o),d=i.useRef(o.includes(n)?n:o[0]),[p,f]=Wr({name:"useViews",state:"view",controlled:r,default:d.current}),h=i.useRef(s?p:null),[m,g]=Wr({name:"useViews",state:"focusedView",controlled:a,default:h.current});i.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(e=>!o.includes(e)))&&(f(o.includes(n)?n:o[0]),u.current=o,c.current=n)},[n,f,p,o]);const y=o.indexOf(p),b=o[y-1]??null,v=o[y+1]??null,x=to((e,t)=>{g(t?e:t=>e===t?null:t),l?.(e,t)}),w=to(e=>{x(e,!0),e!==p&&(f(e),t&&t(e))}),S=to(()=>{v&&w(v)}),C=to((t,n,r)=>{const i="finish"===n,s=r?o.indexOf(r)<o.length-1:Boolean(v);if(e(t,i&&s?"partial":n,r),r&&r!==p){const e=o[o.indexOf(r)+1];e&&w(e)}else i&&S()});return{view:p,setView:w,focusedView:m,setFocusedView:x,nextView:v,previousView:b,defaultView:o.includes(n)?n:o[0],goToNextView:S,setValueAndGoToNextView:C}}const Ah=["className","sx"];function Rh(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const Nh=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=((e,t)=>{const[n,r]=i.useState(Rh);return eo(()=>{const e=()=>{r(Rh())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),!fh(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,o);return{layoutProps:z({},n,t,{isLandscape:s,isRtl:Yi(),wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};const Ih=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:a,rendererInterceptor:l,fieldRef:c})=>{const u=Eh({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),d=(({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:s})=>{const{onChange:a,open:l,onClose:c}=t,{view:u,views:d,openTo:p,onViewChange:f,viewRenderers:h,timezone:m}=e,g=so(e,Ah),{view:y,setView:b,defaultView:v,focusedView:x,setFocusedView:w,setValueAndGoToNextView:S}=jh({view:u,views:d,openTo:p,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:C,viewModeLookup:k}=i.useMemo(()=>d.reduce((e,t)=>{let n;return n=null!=h[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e},{hasUIView:!1,viewModeLookup:{}}),[h,d]),M=i.useMemo(()=>d.reduce((e,t)=>null!=h[t]&&qp(t)?e+1:e,0),[h,d]),O=k[y],T=to(()=>"UI"===O),[P,D]=i.useState("UI"===O?y:null);return P!==y&&"UI"===k[y]&&D(y),eo(()=>{"field"===O&&l&&(c(),setTimeout(()=>{s?.current?.setSelectedSections(y),s?.current?.focusField(y)}))},[y]),eo(()=>{if(!l)return;let e=y;"field"===O&&null!=P&&(e=P),e!==v&&"UI"===k[e]&&"UI"===k[v]&&(e=v),e!==y&&b(e),w(e,!0)},[l]),{hasUIView:C,shouldRestoreFocus:T,layoutProps:{views:d,view:P,onViewChange:b},renderCurrentView:()=>{if(null==P)return null;const e=h[P];if(null==e)return null;const r=z({},g,n,t,{views:d,timezone:m,onChange:S,view:P,onViewChange:b,focusedView:x,onFocusedViewChange:w,showViewSwitcher:M>1,timeViewsCount:M});return o?o(h,P,r):e(r)}}})({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:c,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=Nh({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),f=function(e){const{props:t,pickerValueResponse:n}=e;return i.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:f}};function Lh(e){return Po("MuiPickersLayout",e)}const $h=Do("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function Fh(e){return Po("MuiButton",e)}const zh=Do("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);const _h=i.createContext({});const Bh=i.createContext(void 0),Vh=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Wh=Vr(Wo,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${L(n.color)}`],t[`size${L(n.size)}`],t[`${n.variant}Size${L(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ri(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${zh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${zh.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${zh.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${zh.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:T(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zh.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${zh.loading}`]:{color:"transparent"}}}]}})),Hh=Vr("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${L(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Vh]})),Uh=Vr("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${L(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Vh]})),qh=Vr("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Yh=Vr("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Kh=i.forwardRef(function(e,t){const n=i.useContext(_h),r=i.useContext(Bh),o=Jr({props:Kr(n,e),name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:m,fullWidth:g=!1,id:v,loading:x=null,loadingIndicator:w,loadingPosition:S="center",size:C="medium",startIcon:k,type:M,variant:O="text",...T}=o,P=$a(v),D=w??(0,s.jsx)(Ka,{"aria-labelledby":P,color:"inherit",size:16}),E={...o,color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:g,loading:x,loadingIndicator:D,loadingPosition:S,size:C,type:M,variant:O},j=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=e,c=b({root:["root",s&&"loading",i,`${i}${L(t)}`,`size${L(o)}`,`${i}Size${L(o)}`,`color${L(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${L(a)}`],startIcon:["icon","startIcon",`iconSize${L(o)}`],endIcon:["icon","endIcon",`iconSize${L(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Fh,l);return{...l,...c}})(E),A=(k||x&&"start"===S)&&(0,s.jsx)(Hh,{className:j.startIcon,ownerState:E,children:k||(0,s.jsx)(Yh,{className:j.loadingIconPlaceholder,ownerState:E})}),R=(h||x&&"end"===S)&&(0,s.jsx)(Uh,{className:j.endIcon,ownerState:E,children:h||(0,s.jsx)(Yh,{className:j.loadingIconPlaceholder,ownerState:E})}),N=r||"",I="boolean"==typeof x?(0,s.jsx)("span",{className:j.loadingWrapper,style:{display:"contents"},children:x&&(0,s.jsx)(qh,{className:j.loadingIndicator,ownerState:E,children:D})}):null;return(0,s.jsxs)(Wh,{ownerState:E,className:y(n.className,j.root,u,N),component:c,disabled:d||x,focusRipple:!f,focusVisibleClassName:y(j.focusVisible,m),ref:t,type:M,id:x?P:v,...T,classes:j,children:[A,"end"!==S&&I,a,"end"===S&&I,R]})}),Gh=Kh;function Xh(e){return Po("MuiDialogActions",e)}Do("MuiDialogActions",["root","spacing"]);const Jh=Vr("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Zh=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...i}=n,a={...n,disableSpacing:o},l=(e=>{const{classes:t,disableSpacing:n}=e;return b({root:["root",!n&&"spacing"]},Xh,t)})(a);return(0,s.jsx)(Jh,{className:y(l.root,r),ownerState:a,ref:t,...i})}),Qh=["onAccept","onClear","onCancel","onSetToday","actions"];function em(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=so(e,Qh),l=Yf();if(null==i||0===i.length)return null;const c=i?.map(e=>{switch(e){case"clear":return(0,s.jsx)(Gh,{onClick:n,children:l.clearButtonLabel},e);case"cancel":return(0,s.jsx)(Gh,{onClick:r,children:l.cancelButtonLabel},e);case"accept":return(0,s.jsx)(Gh,{onClick:t,children:l.okButtonLabel},e);case"today":return(0,s.jsx)(Gh,{onClick:o,children:l.todayButtonLabel},e);default:return null}});return(0,s.jsx)(Zh,z({},a,{children:c}))}function tm(e){return Po("MuiListItem",e)}Do("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const nm=Do("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function rm(e){return Po("MuiListItemSecondaryAction",e)}Do("MuiListItemSecondaryAction",["root","disableGutters"]);const om=Vr("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),im=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=i.useContext(Ec),l={...n,disableGutters:a.disableGutters},c=(e=>{const{disableGutters:t,classes:n}=e;return b({root:["root",t&&"disableGutters"]},rm,n)})(l);return(0,s.jsx)(om,{className:y(c.root,r),ownerState:l,ref:t,...o})});im.muiName="ListItemSecondaryAction";const sm=im,am=Vr("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(ri(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${nm.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),lm=Vr("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),cm=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...f}={},dense:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:x,slotProps:w={},slots:S={},...C}=n,k=i.useContext(Ec),M=i.useMemo(()=>({dense:h||k.dense||!1,alignItems:r,disableGutters:m}),[r,k.dense,h,m]),O=i.useRef(null),T=i.Children.toArray(o),P=T.length&&ki(T[T.length-1],["ListItemSecondaryAction"]),D={...n,alignItems:r,dense:M.dense,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:P},E=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:a}=e;return b({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider","flex-start"===t&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},tm,n)})(D),j=Qr(O,t),A=S.root||c.Root||am,R=w.root||u.root||{},N={className:y(E.root,R.className,a),...C};let I=l||"li";return P?(I=N.component||l?I:"div","li"===d&&("li"===I?I="div":"li"===N.component&&(N.component="div")),(0,s.jsx)(Ec.Provider,{value:M,children:(0,s.jsxs)(lm,{as:d,className:y(E.container,p),ref:j,ownerState:D,...f,children:[(0,s.jsx)(A,{...R,...!Wl(A)&&{as:I,ownerState:{...D,...R.ownerState}},...N,children:T}),T.pop()]})})):(0,s.jsx)(Ec.Provider,{value:M,children:(0,s.jsxs)(A,{...R,as:I,ref:j,...!Wl(A)&&{ownerState:{...D,...R.ownerState}},...N,children:[T,x&&(0,s.jsx)(sm,{children:x})]})})}),um=320,dm=336,pm=["items","changeImportance","isLandscape","onChange","isValid"],fm=["getValue"];function hm(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=so(e,pm);if(null==t||0===t.length)return null;const a=t.map(e=>{let{getValue:t}=e,i=so(e,fm);const s=t({isValid:o});return z({},i,{label:i.label,onClick:()=>{r(s,n,i)},disabled:!o(s)})});return(0,s.jsx)(Rc,z({dense:!0,sx:[{maxHeight:dm,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(e=>(0,s.jsx)(cm,{children:(0,s.jsx)(ll,z({},e))},e.id??e.label))}))}const mm=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:l,onViewChange:c,value:u,onChange:d,onSelectShortcut:p,isValid:f,isLandscape:h,disabled:m,readOnly:g,children:y,slots:v,slotProps:x}=e,w=(e=>{const{classes:t,isLandscape:n}=e;return b({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Lh,t)})(e),S=v?.actionBar??em,C=pa({elementType:S,externalSlotProps:x?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:"desktop"===t?[]:["cancel","accept"]},className:w.actionBar,ownerState:z({},e,{wrapperVariant:t})}),k=(0,s.jsx)(S,z({},C)),M=v?.toolbar,O=pa({elementType:M,externalSlotProps:x?.toolbar,additionalProps:{isLandscape:h,onChange:d,value:u,view:a,onViewChange:c,views:l,disabled:m,readOnly:g},className:w.toolbar,ownerState:z({},e,{wrapperVariant:t})}),T=function(e){return null!==e.view}(O)&&M?(0,s.jsx)(M,z({},O)):null,P=y,D=v?.tabs,E=a&&D?(0,s.jsx)(D,z({view:a,onViewChange:c,className:w.tabs},x?.tabs)):null,j=v?.shortcuts??hm,A=pa({elementType:j,externalSlotProps:x?.shortcuts,additionalProps:{isValid:f,isLandscape:h,onChange:p},className:w.shortcuts,ownerState:{isValid:f,isLandscape:h,onChange:p,wrapperVariant:t}});return{toolbar:T,content:P,tabs:E,actionBar:k,shortcuts:a&&j?(0,s.jsx)(j,z({},A)):null}},gm=Vr("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${$h.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${$h.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${$h.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${$h.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${$h.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${$h.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${$h.shortcuts}`]:{gridColumn:3}}}]}),ym=Vr("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),bm=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:l,shortcuts:c}=mm(n),{sx:u,className:d,isLandscape:p,wrapperVariant:f}=n,h=(e=>{const{isLandscape:t,classes:n}=e;return b({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Lh,n)})(n);return(0,s.jsxs)(gm,{ref:t,sx:u,className:y(h.root,d),ownerState:n,children:[p?c:r,p?r:c,(0,s.jsx)(ym,{className:h.contentWrapper,children:"desktop"===f?(0,s.jsxs)(i.Fragment,{children:[o,a]}):(0,s.jsxs)(i.Fragment,{children:[a,o]})}),l]})}),vm=i.createContext(null);function xm(e){const{contextValue:t,localeText:n,children:r}=e;return(0,s.jsx)(vm.Provider,{value:t,children:(0,s.jsx)(Of,{localeText:n,children:r})})}const wm=["props","getOpenDialogAriaText"],Sm=["ownerState"],Cm=["ownerState"],km=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=so(e,wm);const{slots:o,slotProps:a,className:l,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:p,selectedSections:f,onSelectedSectionsChange:h,timezone:m,name:g,label:y,inputRef:b,readOnly:v,disabled:x,autoFocus:w,localeText:S,reduceAnimations:C}=t,k=i.useRef(null),M=i.useRef(null),O=Fi(),T=a?.toolbar?.hidden??!1,{open:P,actions:D,hasUIView:E,layoutProps:j,renderCurrentView:A,shouldRestoreFocus:R,fieldProps:N,contextValue:I,ownerState:L}=Ih(z({},r,{props:t,fieldRef:M,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),$=o.inputAdornment??dh,F=so(pa({elementType:$,externalSlotProps:a?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),Sm),_=o.openPickerButton??el,B=so(pa({elementType:_,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:x||v,onClick:P?D.onClose:D.onOpen,"aria-label":n(N.value),edge:F.position},ownerState:t}),Cm),V=o.openPickerIcon,W=pa({elementType:V,externalSlotProps:a?.openPickerIcon,ownerState:L}),H=o.field,U=pa({elementType:H,externalSlotProps:a?.field,additionalProps:z({},N,T&&{id:O},{readOnly:v,disabled:x,className:l,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:p,selectedSections:f,onSelectedSectionsChange:h,timezone:m,label:y,name:g,autoFocus:w&&!t.open,focused:!!P||void 0},b?{inputRef:b}:{}),ownerState:t});E&&(U.InputProps=z({},U.InputProps,{ref:k},!t.disableOpenPicker&&{[`${F.position}Adornment`]:(0,s.jsx)($,z({},F,{children:(0,s.jsx)(_,z({},B,{children:(0,s.jsx)(V,z({},W))}))}))}));const q=z({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},U.slots),Y=o.layout??bm;let K=O;T&&(K=y?`${O}-label`:void 0);const G=z({},a,{toolbar:z({},a?.toolbar,{titleId:O}),popper:z({"aria-labelledby":K},a?.popper)}),X=Zr(M,U.unstableFieldRef);return{renderPicker:()=>(0,s.jsxs)(xm,{contextValue:I,localeText:S,children:[(0,s.jsx)(H,z({},U,{slots:q,slotProps:G,unstableFieldRef:X})),(0,s.jsx)(Oh,z({role:"dialog",placement:"bottom-start",anchorEl:k.current},D,{open:P,slots:o,slotProps:G,shouldRestoreFocus:R,reduceAnimations:C,children:(0,s.jsx)(Y,z({},j,G?.layout,{slots:o,slotProps:G,children:A()}))}))]})}},Mm=li((0,s.jsx)("path",{d:"M7 10l5 5 5-5z"})),Om=li((0,s.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Tm=li((0,s.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Pm=li((0,s.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})),Dm=li((0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,s.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),Em=li((0,s.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})),jm=li((0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,s.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),Am=li((0,s.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Rm=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},Nm=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:s,startSeparator:a})=>{if(""===s)throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=ef(e,s),c=hf(e,l.contentType,l.type,s),u=n?c:"digit"===l.contentType,d=null!=t&&e.isValid(t);let p=d?e.formatByString(t,s):"",f=null;if(u)if(c)f=""===p?e.formatByString(i,s).length:p.length;else{if(null==l.maxLength)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);f=l.maxLength,d&&(p=sf(lf(of(p,o),f),o))}return z({},l,{format:s,maxLength:f,value:p,placeholder:Rm(e,r,l,s),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},Im=e=>{let t=(({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o})(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=(({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(t);)n.push({start:s.index,end:i.lastIndex-1});return n})(z({},e,{expandedFormat:t})),r=(e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let s="";const a=Object.keys(t.formatTokenMap).sort((e,t)=>t.length-e.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),d=e=>r.find(t=>t.start<=e&&t.end>=e);let p=0;for(;p<n.length;){const t=d(p),r=null!=t,a=l.exec(n.slice(p))?.[1];if(!r&&null!=a&&c.test(a)){let t=a;for(;t.length>0;){const n=u.exec(t)[1];t=t.slice(n.length),i.push(Nm(z({},e,{now:o,token:n,startSeparator:s}))),s=""}p+=a.length}else{const e=n[p];r&&t?.start===p||t?.end===p||(0===i.length?s+=e:i[i.length-1].endSeparator+=e),p+=1}}return 0===i.length&&s.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),i})(z({},e,{expandedFormat:t,escapedParts:n}));return(({isRtl:e,formatDensity:t,sections:n})=>n.map(n=>{const r=n=>{let r=n;return e&&null!==r&&r.includes(" ")&&(r=`${r}`),"spacious"===t&&["/",".","-"].includes(r)&&(r=` ${r} `),r};return n.startSeparator=r(n.startSeparator),n.endSeparator=r(n.endSeparator),n}))(z({},e,{sections:r}))},Lm=e=>{const t=jf(),n=Yf(),r=Ef(),o=Yi(),{valueManager:s,fieldValueManager:a,valueType:l,validator:c,internalProps:u,internalProps:{value:d,defaultValue:p,referenceDate:f,onChange:h,format:m,formatDensity:g="dense",selectedSections:y,onSelectedSectionsChange:b,shouldRespectLeadingZeros:v=!1,timezone:x,enableAccessibleFieldDOMStructure:w=!1}}=e,{timezone:S,value:C,handleValueChange:k}=Ph({timezone:x,value:d,defaultValue:p,referenceDate:f,onChange:h,valueManager:s}),M=i.useMemo(()=>(e=>{const t=e.date(void 0);return"0"===e.formatByString(e.setSeconds(t,0),"s")?rf:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),"s"))})(t),[t]),O=i.useMemo(()=>((e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:a}=Fp(e,r).reduce((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t},{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:ff(e,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):s,longestMonth:a}),weekDay:({format:t,contentType:n})=>{if("digit"===n){const n=tf(e,t).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:({format:n})=>{const o=e.getHours(i);return of(e.formatByString(e.endOfDay(r),n),t)!==o.toString()?{minimum:1,maximum:Number(of(e.formatByString(e.startOfDay(r),n),t))}:{minimum:0,maximum:o}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}})(t,M,S),[t,M,S]),T=i.useCallback((e,r=null)=>a.getSectionsFromValue(t,e,r,e=>Im({utils:t,localeText:n,localizedDigits:M,format:m,date:e,formatDensity:g,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:w,isRtl:o})),[a,m,n,M,o,v,t,g,w]),[P,D]=i.useState(()=>{const e=T(C);mf();const n={sections:e,value:C,referenceValue:s.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map(e=>Zp[e.type]??1)))(e);return z({},n,{referenceValue:s.getInitialReferenceValue({referenceDate:f,value:C,utils:t,props:u,granularity:r,timezone:S})})}),[E,j]=Wr({controlled:y,default:null,name:"useField",state:"selectedSections"}),A=e=>{j(e),b?.(e)},R=i.useMemo(()=>bf(E,P.sections),[E,P.sections]),N="all"===R?0:R,I=({value:e,referenceValue:n,sections:o})=>{if(D(t=>z({},t,{sections:o,value:e,referenceValue:n,tempValueStrAndroid:null})),s.areValuesEqual(t,P.value,e))return;const i={validationError:c({adapter:r,value:e,timezone:S,props:u})};k(e,i)},L=(e,t)=>{const n=[...P.sections];return n[e]=z({},n[e],{value:t,modified:!0}),n};return i.useEffect(()=>{const e=T(P.value);mf(),D(t=>z({},t,{sections:e}))},[m,t.locale,o]),i.useEffect(()=>{let e;e=!s.areValuesEqual(t,P.value,C)||s.getTimezone(t,P.value)!==s.getTimezone(t,C),e&&D(e=>z({},e,{value:C,referenceValue:a.updateReferenceValue(t,C,e.referenceValue),sections:T(C)}))},[C]),{state:P,activeSectionIndex:N,parsedSelectedSections:R,setSelectedSections:A,clearValue:()=>{I({value:s.emptyValue,referenceValue:P.referenceValue,sections:T(s.emptyValue)})},clearActiveSection:()=>{if(null==N)return;const e=P.sections[N],n=a.getActiveDateManager(t,P,e),r=n.getSections(P.sections).filter(e=>""!==e.value).length===(""===e.value?0:1),o=L(N,""),i=r?null:t.getInvalidDate(),s=n.getNewValuesFromNewActiveDate(i);I(z({},s,{sections:o}))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:r})=>{r&&N<P.sections.length-1&&A(N+1);const o=a.getActiveDateManager(t,P,e),i=L(N,n),s=o.getSections(i),l=((e,t,n)=>{const r=t.some(e=>"day"===e.type),o=[],i=[];for(let e=0;e<t.length;e+=1){const s=t[e];r&&"weekDay"===s.type||(o.push(s.format),i.push(df(s,"non-input",n)))}const s=o.join(" "),a=i.join(" ");return e.parse(a,s)})(t,s,M);let c,u;if(null!=l&&t.isValid(l)){const e=yf(t,l,s,o.referenceDate,!0);c=o.getNewValuesFromNewActiveDate(e),u=!0}else c=o.getNewValuesFromNewActiveDate(l),u=(null!=l&&!t.isValid(l))!=(null!=o.date&&!t.isValid(o.date));return u?I(z({},c,{sections:i})):D(e=>z({},e,c,{sections:i,tempValueStrAndroid:null}))},updateValueFromValueStr:e=>{const r=a.parseValueStr(e,P.referenceValue,(e,r)=>{const i=t.parse(e,m);if(null==i||!t.isValid(i))return null;const s=Im({utils:t,localeText:n,localizedDigits:M,format:m,date:i,formatDensity:g,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:w,isRtl:o});return yf(t,i,s,r,!1)}),i=a.updateReferenceValue(t,r,P.referenceValue);I({value:r,referenceValue:i,sections:T(r,P.sections)})},setTempAndroidValueStr:e=>D(t=>z({},t,{tempValueStrAndroid:e})),getSectionsFromValue:T,sectionsValueBoundaries:O,localizedDigits:M,timezone:S}},$m=e=>null!=e.saveQuery,Fm=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const a=jf(),[l,c]=i.useState(null),u=to(()=>c(null));i.useEffect(()=>{null!=l&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),i.useEffect(()=>{if(null!=l){const e=setTimeout(()=>u(),5e3);return()=>{clearTimeout(e)}}return()=>{}},[l,u]);const d=({keyPressed:t,sectionIndex:n},r,o)=>{const i=t.toLowerCase(),s=e[n];if(null!=l&&(!o||o(l.value))&&l.sectionIndex===n){const e=`${l.value}${i}`,t=r(e,s);if(!$m(t))return c({sectionIndex:n,value:e,sectionType:s.type}),t}const a=r(i,s);return $m(a)&&!a.saveQuery?(u(),null):(c({sectionIndex:n,value:i,sectionType:s.type}),$m(a)?null:a)},p=to(i=>{const l=e[i.sectionIndex],c=af(i.keyPressed,r)?(e=>{const t=(e,t)=>{const o=of(e,r),i=Number(o),s=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(i>s.maximum)return{saveQuery:!1};if(i<s.minimum)return{saveQuery:!0};const l=10*i>s.maximum||o.length===s.maximum.toString().length;return{sectionValue:cf(a,i,s,r,t),shouldGoToNextSection:l}};return d(e,(e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const r=hf(a,"digit","month","MM"),o=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});return $m(o)?o:z({},o,{sectionValue:pf(a,o.sectionValue,"MM",n.format)})}if("weekDay"===n.type){const r=t(e,n);return $m(r)?r:z({},r,{sectionValue:tf(a,n.format)[Number(r.sectionValue)-1]})}return{saveQuery:!1}},e=>af(e,r))})(z({},i,{keyPressed:sf(i.keyPressed,r)})):(e=>{const t=(e,t,n)=>{const r=t.filter(e=>e.toLowerCase().startsWith(n));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,o)=>{const i=e=>nf(a,s,n.type,e);if("letter"===n.contentType)return t(n.format,i(n.format),e);if(r&&null!=o&&"letter"===ef(a,r).contentType){const n=i(r),s=t(0,n,e);return $m(s)?{saveQuery:!1}:z({},s,{sectionValue:o(s.sectionValue,n)})}return{saveQuery:!1}};return d(e,(e,t)=>{switch(t.type){case"month":{const r=e=>pf(a,e,a.formats.month,t.format);return n(e,t,a.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,a.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}})})(i);null!=c?t({activeSection:l,newSectionValue:c.sectionValue,shouldGoToNextSection:c.shouldGoToNextSection}):o(null)});return{applyCharacterEditing:p,resetCharacterQuery:u}},zm=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:a,onInput:l,onPaste:c,focused:u,autoFocus:d=!1},fieldValueManager:p,applyCharacterEditing:f,resetCharacterQuery:h,setSelectedSections:m,parsedSelectedSections:g,state:y,clearActiveSection:b,clearValue:v,updateSectionValue:x,updateValueFromValueStr:w,sectionOrder:S,areAllSectionsEmpty:C,sectionsValueBoundaries:k}=e,M=i.useRef(null),O=Zr(r,M),T=Yf(),P=jf(),D=Fi(),[E,j]=i.useState(!1),A=i.useMemo(()=>({syncSelectionToDOM:()=>{if(!M.current)return;const e=document.getSelection();if(!e)return;if(null==g)return e.rangeCount>0&&M.current.getRoot().contains(e.getRangeAt(0).startContainer)&&e.removeAllRanges(),void(E&&M.current.getRoot().blur());if(!M.current.getRoot().contains(hh(document)))return;const t=new window.Range;let n;if("all"===g)n=M.current.getRoot();else{n="empty"===y.sections[g].type?M.current.getSectionContainer(g):M.current.getSectionContent(g)}t.selectNodeContents(n),n.focus(),e.removeAllRanges(),e.addRange(t)},getActiveSectionIndexFromDOM:()=>{const e=hh(document);return e&&M.current&&M.current.getRoot().contains(e)?M.current.getSectionIndexFromDOMElement(e):null},focusField:(e=0)=>{if(!M.current||null!=A.getActiveSectionIndexFromDOM())return;const t=bf(e,y.sections);j(!0),M.current.getSectionContent(t).focus()},setSelectedSections:e=>{if(!M.current)return;const t=bf(e,y.sections);j(null!==("all"===t?0:t)),m(e)},isFieldFocused:()=>{const e=hh(document);return!!M.current&&M.current.getRoot().contains(e)}}),[g,m,y.sections,E]),R=to(e=>{if(!M.current)return;const t=y.sections[e];M.current.getSectionContent(e).innerHTML=t.value||t.placeholder,A.syncSelectionToDOM()}),N=to((e,...t)=>{if(!e.isDefaultPrevented()&&M.current)if(j(!0),s?.(e,...t),"all"===g)setTimeout(()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void m(S.startIndex);let t=0,n=0;for(;n<e&&t<y.sections.length;){const e=y.sections[t];t+=1,n+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}m(t-1)});else if(E){M.current.getRoot().contains(e.target)||m(S.startIndex)}else j(!0),m(S.startIndex)}),I=to(e=>{if(l?.(e),!M.current||"all"!==g)return;const t=e.target.textContent??"";M.current.getRoot().innerHTML=y.sections.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),A.syncSelectionToDOM(),0===t.length||10===t.charCodeAt(0)?(h(),v(),m("all")):t.length>1?w(t):("all"===g&&m(0),f({keyPressed:t,sectionIndex:0}))}),L=to(e=>{if(c?.(e),n||"all"!==g)return void e.preventDefault();const t=e.clipboardData.getData("text");e.preventDefault(),h(),w(t)}),$=to((...e)=>{if(a?.(...e),E||!M.current)return;j(!0);null!=M.current.getSectionIndexFromDOMElement(hh(document))||m(S.startIndex)}),F=to((...e)=>{o?.(...e),setTimeout(()=>{if(!M.current)return;const e=hh(document);!M.current.getRoot().contains(e)&&(j(!1),m(null))})}),z=to(e=>t=>{t.isDefaultPrevented()||m(e)}),_=to(e=>{e.preventDefault()}),B=to(e=>()=>{m(e)}),V=to(e=>{if(e.preventDefault(),n||t||"number"!=typeof g)return;const r=y.sections[g],o=e.clipboardData.getData("text"),i=/^[a-zA-Z]+$/.test(o),s=/^[0-9]+$/.test(o),a=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(o);"letter"===r.contentType&&i||"digit"===r.contentType&&s||"digit-with-letter"===r.contentType&&a?(h(),x({activeSection:r,newSectionValue:o,shouldGoToNextSection:!0})):i||s||(h(),w(o))}),W=to(e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"}),H=to(e=>{if(!M.current)return;const t=e.target,r=t.textContent??"",o=M.current.getSectionIndexFromDOMElement(t),i=y.sections[o];if(!n&&M.current){if(0===r.length){if(""===i.value)return void R(o);const t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void R(o):(h(),void b())}f({keyPressed:r,sectionIndex:o}),R(o)}else R(o)});eo(()=>{if(E&&M.current)if("all"===g)M.current.getRoot().focus();else if("number"==typeof g){const e=M.current.getSectionContent(g);e&&e.focus()}},[g,E]);const U=i.useMemo(()=>y.sections.reduce((e,t)=>(e[t.type]=k[t.type]({currentDate:null,contentType:t.contentType,format:t.format}),e),{}),[k,y.sections]),q="all"===g,Y=i.useMemo(()=>y.sections.map((e,r)=>{const o=!q&&!t&&!n;return{container:{"data-sectionindex":r,onClick:z(r)},content:{tabIndex:q||r>0?-1:0,contentEditable:!q&&!t&&!n,role:"spinbutton",id:`${D}-${e.type}`,"aria-labelledby":`${D}-${e.type}`,"aria-readonly":n,"aria-valuenow":xf(e,P),"aria-valuemin":U[e.type].minimum,"aria-valuemax":U[e.type].maximum,"aria-valuetext":e.value?vf(e,P):T.empty,"aria-label":T[e.type],"aria-disabled":t,spellCheck:!o&&void 0,autoCapitalize:o?"off":void 0,autoCorrect:o?"off":void 0,[parseInt(i.version,10)>=17?"enterKeyHint":"enterkeyhint"]:o?"next":void 0,children:e.value||e.placeholder,onInput:H,onPaste:V,onFocus:B(r),onDragOver:W,onMouseUp:_,inputMode:"letter"===e.contentType?"text":"numeric"},before:{children:e.startSeparator},after:{children:e.endSeparator}}}),[y.sections,B,V,W,H,z,_,t,n,q,T,P,U,D]),K=to(e=>{w(e.target.value)}),G=i.useMemo(()=>C?"":p.getV7HiddenInputValueFromSections(y.sections),[C,y.sections,p]);return i.useEffect(()=>{if(null==M.current)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join("\n"));d&&M.current&&M.current.getSectionContent(S.startIndex).focus()},[]),{interactions:A,returnedValue:{autoFocus:d,readOnly:n,focused:u??E,sectionListRef:O,onBlur:F,onClick:N,onFocus:$,onInput:I,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:Y,tabIndex:0===g?-1:0,contentEditable:q,value:G,onChange:K,areAllSectionsEmpty:C}}},_m=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Bm=e=>{const t=Yi(),n=i.useRef(void 0),r=i.useRef(void 0),{forwardedProps:{onFocus:o,onClick:s,onPaste:a,onBlur:l,inputRef:c,placeholder:u},internalProps:{readOnly:d=!1,disabled:p=!1},parsedSelectedSections:f,activeSectionIndex:h,state:m,fieldValueManager:g,valueManager:y,applyCharacterEditing:b,resetCharacterQuery:v,updateSectionValue:x,updateValueFromValueStr:w,clearActiveSection:S,clearValue:C,setTempAndroidValueStr:k,setSelectedSections:M,getSectionsFromValue:O,areAllSectionsEmpty:T,localizedDigits:P}=e,D=i.useRef(null),E=Zr(c,D),j=i.useMemo(()=>((e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let s=0;s<e.length;s+=1){const a=e[s],l=df(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=_m(c).length,d=c.length,p=_m(l),f=o+(""===p?0:l.indexOf(p[0]))+a.startSeparator.length,h=f+p.length;i.push(z({},a,{start:r,end:r+u,startInInput:f,endInInput:h})),r+=u,o+=d}return i})(m.sections,P,t),[m.sections,P,t]),A=i.useMemo(()=>({syncSelectionToDOM:()=>{if(!D.current)return;if(null==f)return void(D.current.scrollLeft&&(D.current.scrollLeft=0));if(D.current!==hh(document))return;const e=D.current.scrollTop;if("all"===f)D.current.select();else{const e=j[f],t="empty"===e.type?e.startInInput-e.startSeparator.length:e.startInInput,n="empty"===e.type?e.endInInput+e.endSeparator.length:e.endInInput;t===D.current.selectionStart&&n===D.current.selectionEnd||D.current===hh(document)&&D.current.setSelectionRange(t,n),clearTimeout(r.current),r.current=setTimeout(()=>{!D.current||D.current!==hh(document)||D.current.selectionStart!==D.current.selectionEnd||D.current.selectionStart===t&&D.current.selectionEnd===n||A.syncSelectionToDOM()})}D.current.scrollTop=e},getActiveSectionIndexFromDOM:()=>{const e=D.current.selectionStart??0,t=D.current.selectionEnd??0;if(0===e&&0===t)return null;const n=e<=j[0].startInInput?1:j.findIndex(t=>t.startInInput-t.startSeparator.length>e);return-1===n?j.length-1:n-1},focusField:(e=0)=>{hh(document)!==D.current&&(D.current?.focus(),M(e))},setSelectedSections:e=>M(e),isFieldFocused:()=>D.current===hh(document)}),[D,f,j,M]),R=()=>{const e=D.current.selectionStart??0;let t;t=e<=j[0].startInInput||e>=j[j.length-1].endInInput?1:j.findIndex(t=>t.startInInput-t.startSeparator.length>e);const n=-1===t?j.length-1:t-1;M(n)},N=to((...e)=>{o?.(...e);const t=D.current;clearTimeout(n.current),n.current=setTimeout(()=>{t&&t===D.current&&null==h&&(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?M("all"):R())})}),I=to((e,...t)=>{e.isDefaultPrevented()||(s?.(e,...t),R())}),L=to(e=>{if(a?.(e),e.preventDefault(),d||p)return;const t=e.clipboardData.getData("text");if("number"==typeof f){const e=m.sections[f],n=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),o=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===e.contentType&&n||"digit"===e.contentType&&r||"digit-with-letter"===e.contentType&&o)return v(),void x({activeSection:e,newSectionValue:t,shouldGoToNextSection:!0});if(n||r)return}v(),w(t)}),$=to((...e)=>{l?.(...e),M(null)}),F=to(e=>{if(d)return;const n=e.target.value;if(""===n)return v(),void C();const r=e.nativeEvent.data,o=r&&r.length>1,i=o?r:n,s=_m(i);if("all"===f&&M(h),null==h||o)return void w(o?r:s);let a;if("all"===f&&1===s.length)a=s;else{const e=_m(g.getV6InputValueFromSections(j,P,t));let n=-1,r=-1;for(let t=0;t<e.length;t+=1)-1===n&&e[t]!==s[t]&&(n=t),-1===r&&e[e.length-t-1]!==s[s.length-t-1]&&(r=t);const o=j[h];if(n<o.start||e.length-r-1>o.end)return;const i=s.length-e.length+o.end-_m(o.endSeparator||"").length;a=s.slice(o.start+_m(o.startSeparator||"").length,i)}if(0===a.length)return navigator.userAgent.toLowerCase().includes("android")&&k(i),v(),void S();b({keyPressed:a,sectionIndex:h})}),_=i.useMemo(()=>void 0!==u?u:g.getV6InputValueFromSections(O(y.emptyValue),P,t),[u,g,O,y.emptyValue,P,t]),B=i.useMemo(()=>m.tempValueStrAndroid??g.getV6InputValueFromSections(m.sections,P,t),[m.sections,g,m.tempValueStrAndroid,P,t]);i.useEffect(()=>(D.current&&D.current===hh(document)&&M("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const V=i.useMemo(()=>null==h||"letter"===m.sections[h].contentType?"text":"numeric",[h,m.sections]),W=D.current&&D.current===hh(document);return{interactions:A,returnedValue:{readOnly:d,onBlur:$,onClick:I,onFocus:N,onPaste:L,inputRef:E,enableAccessibleFieldDOMStructure:!1,placeholder:_,inputMode:V,autoComplete:"off",value:!W&&T?"":B,onChange:F}}},Vm=e=>{const t=jf(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:c,error:u,clearable:d,onClear:p},fieldValueManager:f,valueManager:h,validator:m}=e,g=Yi(),y=Lm(e),{state:b,activeSectionIndex:v,parsedSelectedSections:x,setSelectedSections:w,clearValue:S,clearActiveSection:C,updateSectionValue:k,setTempAndroidValueStr:M,sectionsValueBoundaries:O,localizedDigits:T,timezone:P}=y,D=Fm({sections:b.sections,updateSectionValue:k,sectionsValueBoundaries:O,localizedDigits:T,setTempAndroidValueStr:M,timezone:P}),{resetCharacterQuery:E}=D,j=h.areValuesEqual(t,b.value,h.emptyValue),A=s?zm:Bm,R=i.useMemo(()=>((e,t)=>{const n={};if(!t)return e.forEach((t,r)=>{const o=0===r?null:r-1,i=r===e.length-1?null:r+1;n[r]={leftIndex:o,rightIndex:i}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,s=0,a=e.length-1;for(;a>=0;){s=e.findIndex((e,t)=>t>=i&&e.endSeparator?.includes(" ")&&" / "!==e.endSeparator),-1===s&&(s=e.length-1);for(let e=s;e>=i;e-=1)o[e]=a,r[a]=e,a-=1;i=s+1}return e.forEach((t,i)=>{const s=o[i],a=0===s?null:r[s-1],l=s===e.length-1?null:r[s+1];n[i]={leftIndex:a,rightIndex:l}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(b.sections,g&&!s),[b.sections,g,s]),{returnedValue:N,interactions:I}=A(z({},e,y,D,{areAllSectionsEmpty:j,sectionOrder:R})),L=to(e=>{if(c?.(e),!a)switch(!0){case(e.ctrlKey||e.metaKey)&&"A"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey:e.preventDefault(),w("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==x)w(R.startIndex);else if("all"===x)w(R.endIndex);else{const e=R.neighbors[x].rightIndex;null!==e&&w(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==x)w(R.endIndex);else if("all"===x)w(R.startIndex);else{const e=R.neighbors[x].leftIndex;null!==e&&w(e)}break;case"Delete"===e.key:if(e.preventDefault(),l)break;null==x||"all"===x?S():C(),E();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),l||null==v)break;"all"===x&&w(v);const n=b.sections[v],r=f.getActiveDateManager(t,b,n),i=uf(t,P,n,e.key,O,T,r.date,{minutesStep:o});k({activeSection:n,newSectionValue:i,shouldGoToNextSection:!1});break}}});eo(()=>{I.syncSelectionToDOM()});const{hasValidationError:$}=Th({props:n,validator:m,timezone:P,value:b.value,onError:n.onError}),F=i.useMemo(()=>void 0!==u?u:$,[$,u]);i.useEffect(()=>{F||null!=v||E()},[b.referenceValue,v,F]),i.useEffect(()=>{null!=b.tempValueStrAndroid&&null!=v&&(E(),C())},[b.sections]),i.useImperativeHandle(r,()=>({getSections:()=>b.sections,getActiveSectionIndex:I.getActiveSectionIndexFromDOM,setSelectedSections:I.setSelectedSections,focusField:I.focusField,isFieldFocused:I.isFieldFocused}));const _={onKeyDown:L,onClear:to((e,...t)=>{e.preventDefault(),p?.(e,...t),S(),I.isFieldFocused()?w(R.startIndex):I.focusField(0)}),error:F,clearable:Boolean(d&&!j&&!l&&!a)},B={disabled:a,readOnly:l};return z({},e.forwardedProps,_,B,N)},Wm=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Hm=(e,t)=>i.useMemo(()=>{const n=z({},e),r={},o=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return Wm.forEach(o),"date"===t?eh.forEach(o):"time"===t?th.forEach(o):"date-time"===t&&(eh.forEach(o),th.forEach(o),nh.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),Um=e=>{const t=(e=>{const t=jf(),n=Af();return z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:$p(t,e.minDate,n.minDate),maxDate:$p(t,e.maxDate,n.maxDate)})})(e),{forwardedProps:n,internalProps:r}=Hm(t,"date");return Vm({forwardedProps:n,internalProps:r,valueManager:Sf,fieldValueManager:Cf,validator:ih,valueType:"date"})},qm=["clearable","onClear","InputProps","sx","slots","slotProps"],Ym=["ownerState"],Km=e=>{const t=Yf(),{clearable:n,onClear:r,InputProps:o,sx:a,slots:l,slotProps:c}=e,u=so(e,qm),d=l?.clearButton??el,p=so(pa({elementType:d,externalSlotProps:c?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),Ym),f=l?.clearIcon??Am,h=pa({elementType:f,externalSlotProps:c?.clearIcon,ownerState:{}});return z({},u,{InputProps:z({},o,{endAdornment:(0,s.jsxs)(i.Fragment,{children:[n&&(0,s.jsx)(dh,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:(0,s.jsx)(d,z({},p,{onClick:r,children:(0,s.jsx)(f,z({fontSize:"small"},h))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a)?a:[a]]})};function Gm(e){return Po("MuiPickersTextField",e)}Do("MuiPickersTextField",["root","focused","disabled","error","required"]);function Xm(e){return Po("MuiPickersInputBase",e)}const Jm=Do("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Zm(e){return Po("MuiPickersOutlinedInput",e)}const Qm=z({},Jm,Do("MuiPickersOutlinedInput",["root","notchedOutline","input"])),eg=["children","className","label","notched","shrink"],tg=Vr("fieldset",{name:"MuiPickersOutlinedInput",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{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),ng=Vr("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),rg=Vr("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function og(e){const{className:t,label:n}=e,r=so(e,eg),o=null!=n&&""!==n,i=z({},e,{withLabel:o});return(0,s.jsx)(tg,z({"aria-hidden":!0,className:t},r,{ownerState:i,children:(0,s.jsx)(rg,{ownerState:i,children:o?(0,s.jsx)(ng,{children:n}):(0,s.jsx)(ng,{className:"notranslate",children:""})})}))}const ig={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function sg(e){return Po("MuiPickersSectionList",e)}const ag=Do("MuiPickersSectionList",["root","section","sectionContent"]),lg=["slots","slotProps","elements","sectionListRef"],cg=Vr("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),ug=Vr("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),dg=Vr("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),pg=Vr("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"});function fg(e){const{slots:t,slotProps:n,element:r,classes:o}=e,i=t?.section??ug,a=pa({elementType:i,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=t?.sectionContent??pg,c=pa({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),u=t?.sectionSeparator??dg,d=pa({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=pa({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return(0,s.jsxs)(i,z({},a,{children:[(0,s.jsx)(u,z({},d)),(0,s.jsx)(l,z({},c)),(0,s.jsx)(u,z({},p))]}))}const hg=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:a,sectionListRef:l}=n,c=so(n,lg),u=(e=>{const{classes:t}=e;return b({root:["root"],section:["section"],sectionContent:["sectionContent"]},sg,t)})(n),d=i.useRef(null),p=Zr(t,d),f=e=>{if(!d.current)throw new Error(`MUI X: Cannot call sectionListRef.${e} before the mount of the component.`);return d.current};i.useImperativeHandle(l,()=>({getRoot:()=>f("getRoot"),getSectionContainer:e=>f("getSectionContainer").querySelector(`.${ag.section}[data-sectionindex="${e}"]`),getSectionContent:e=>f("getSectionContent").querySelector(`.${ag.section}[data-sectionindex="${e}"] .${ag.sectionContent}`),getSectionIndexFromDOMElement(e){const t=f("getSectionIndexFromDOMElement");if(null==e||!t.contains(e))return null;let n=null;return e.classList.contains(ag.section)?n=e:e.classList.contains(ag.sectionContent)&&(n=e.parentElement),null==n?null:Number(n.dataset.sectionindex)}}));const h=r?.root??cg,m=pa({elementType:h,externalSlotProps:o?.root,externalForwardedProps:c,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return(0,s.jsx)(h,z({},m,{children:m.contentEditable?a.map(({content:e,before:t,after:n})=>`${t.children}${e.children}${n.children}`).join(""):(0,s.jsx)(i.Fragment,{children:a.map((e,t)=>(0,s.jsx)(fg,{slots:r,slotProps:o,element:e,classes:u},t))})}))}),mg=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],gg=Vr("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{return z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:(t=.15/16,Math.round(1e5*t)/1e5)+"em",variants:[{props:{fullWidth:!0},style:{width:"100%"}}]});var t}),yg=Vr(cg,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:t,filled:n,label:r})=>!e&&!t&&!n&&null==r,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}}]})),bg=Vr(ug,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),vg=Vr(pg,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),xg=Vr(dg,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),wg=Vr("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(z({},ig)),Sg=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:p,slots:f,slotProps:h,contentEditable:m,tabIndex:g,onInput:y,onPaste:v,onKeyDown:x,name:w,readOnly:S,inputProps:C,inputRef:k,sectionListRef:M}=n,O=so(n,mg),T=Zr(t,i.useRef(null)),P=Zr(C?.ref,k),D=Yi(),E=qr();if(!E)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");i.useEffect(()=>{E&&E.setAdornedStart(Boolean(d))},[E,d]),i.useEffect(()=>{E&&(o?E.onEmpty():E.onFilled())},[E,o]);const j=z({},n,E,{isRtl:D}),A=(e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:s,color:a,size:l,endAdornment:c,startAdornment:u}=e;return b({root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",i&&"fullWidth",`color${I(a)}`,"small"===l&&"inputSizeSmall",Boolean(u)&&"adornedStart",Boolean(c)&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]},Xm,o)})(j),R=f?.root||gg,N=pa({elementType:R,externalSlotProps:h?.root,externalForwardedProps:O,additionalProps:{"aria-invalid":E.error,ref:T},className:A.root,ownerState:j}),L=f?.input||yg;return(0,s.jsxs)(R,z({},N,{children:[d,(0,s.jsx)(hg,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:A.sectionsContainer,onFocus:e=>{E.disabled?e.stopPropagation():E.onFocus?.(e)},onBlur:E.onBlur,onInput:y,onPaste:v,onKeyDown:x,slots:{root:L,section:bg,sectionContent:vg,sectionSeparator:xg},slotProps:{root:{ownerState:j},sectionContent:{className:Jm.sectionContent},sectionSeparator:({position:e})=>({className:"before"===e?Jm.sectionBefore:Jm.sectionAfter})}}),u,p?p(z({},E)):null,(0,s.jsx)(wg,z({name:w,className:A.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:E.required,disabled:E.disabled},C,{ref:P}))]}))}),Cg=["label","autoFocus","ownerState","notched"],kg=Vr(gg,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Qm.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qm.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Qm.focused} .${Qm.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Qm.disabled}`]:{[`& .${Qm.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Qm.error} .${Qm.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t]?.main??!1).map(t=>({props:{color:t},style:{[`&.${Qm.focused}:not(.${Qm.error}) .${Qm.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))}}),Mg=Vr(yg,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Og=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:a}=n,l=so(n,Cg),c=qr(),u=z({},n,o,c,{color:c?.color||"primary"}),d=(e=>{const{classes:t}=e;return z({},t,b({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Zm,t))})(u);return(0,s.jsx)(Sg,z({slots:{root:kg,input:Mg},renderSuffix:e=>(0,s.jsx)(og,{shrink:Boolean(a||e.adornedStart||e.focused||e.filled),notched:Boolean(a||e.adornedStart||e.focused||e.filled),className:d.notchedOutline,label:null!=r&&""!==r&&c?.required?(0,s.jsxs)(i.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:d,ref:t}))});function Tg(e){return Po("MuiPickersFilledInput",e)}Og.muiName="Input";const Pg=z({},Jm,Do("MuiPickersFilledInput",["root","underline","input"])),Dg=["label","autoFocus","disableUnderline","ownerState"],Eg=Vr(gg,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>$n(e)&&"disableUnderline"!==e})(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Pg.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Pg.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Pg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pg.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Pg.disabled}, .${Pg.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pg.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:12}},{props:({endAdornment:e})=>!!e,style:{paddingRight:12}}]}}),jg=Vr(yg,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),Ag=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:i}=n,a=so(n,Dg),l=qr(),c=(e=>{const{classes:t,disableUnderline:n}=e;return z({},t,b({root:["root",!n&&"underline"],input:["input"]},Tg,t))})(z({},n,i,l,{color:l?.color||"primary"}));return(0,s.jsx)(Sg,z({slots:{root:Eg,input:jg},slotProps:{root:{disableUnderline:o}}},a,{label:r,classes:c,ref:t}))});function Rg(e){return Po("MuiPickersFilledInput",e)}Ag.muiName="Input";const Ng=z({},Jm,Do("MuiPickersInput",["root","input"])),Ig=["label","autoFocus","disableUnderline","ownerState"],Lg=Vr(gg,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ng.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ng.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,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(.${Ng.disabled}, .${Ng.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Ng.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),$g=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:i}=n,a=so(n,Ig),l=qr(),c=(e=>{const{classes:t,disableUnderline:n}=e;return z({},t,b({root:["root",!n&&"underline"],input:["input"]},Rg,t))})(z({},n,i,l,{disableUnderline:o,color:l?.color||"primary"}));return(0,s.jsx)(Sg,z({slots:{root:Lg}},a,{label:r,classes:c,ref:t}))});$g.muiName="Input";const Fg=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],zg={standard:$g,filled:Ag,outlined:Og},_g=Vr(Pi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Bg=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:a,color:l="primary",disabled:c=!1,error:u=!1,variant:d="outlined",required:p=!1,InputProps:f,inputProps:h,inputRef:m,sectionListRef:g,elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:S,onKeyUp:C,onPaste:k,onInput:M,endAdornment:O,startAdornment:T,tabIndex:P,contentEditable:D,focused:E,value:j,onChange:A,fullWidth:R,id:N,name:I,helperText:L,FormHelperTextProps:$,label:F,InputLabelProps:_}=n,B=so(n,Fg),V=Zr(t,i.useRef(null)),W=Fi(N),H=L&&W?`${W}-helper-text`:void 0,U=F&&W?`${W}-label`:void 0,q=z({},n,{color:l,disabled:c,error:u,focused:E,required:p,variant:d}),Y=(e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return b({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},Gm,r)})(q),K=zg[d];return(0,s.jsxs)(_g,z({className:y(Y.root,a),ref:V,focused:E,onFocus:r,onBlur:o,disabled:c,variant:d,error:u,color:l,fullWidth:R,required:p,ownerState:q},B,{children:[(0,s.jsx)(Pc,z({htmlFor:W,id:U},_,{children:F})),(0,s.jsx)(K,z({elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:S,onKeyUp:C,onInput:M,onPaste:k,endAdornment:O,startAdornment:T,tabIndex:P,contentEditable:D,value:j,onChange:A,id:W,fullWidth:R,inputProps:h,inputRef:m,sectionListRef:g,label:F,name:I,role:"group","aria-labelledby":U,"aria-describedby":H,"aria-live":H?"polite":void 0},f)),L&&(0,s.jsx)(Ni,z({id:H},$,{children:L}))]}))}),Vg=["enableAccessibleFieldDOMStructure"],Wg=["InputProps","readOnly"],Hg=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Ug=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=so(e,Vg);if(t){const{InputProps:e,readOnly:t}=n;return z({},so(n,Wg),{InputProps:z({},e??{},{readOnly:t})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:s,InputProps:a,inputProps:l,inputRef:c}=n;return z({},so(n,Hg),{InputProps:z({},a??{},{readOnly:s}),inputProps:z({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})},qg=["slots","slotProps","InputProps","inputProps"],Yg=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiDateField"}),{slots:r,slotProps:o,InputProps:i,inputProps:a}=n,l=so(n,qg),c=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Bg:wd),d=pa({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:t},ownerState:c});d.inputProps=z({},a,d.inputProps),d.InputProps=z({},i,d.InputProps);const p=Um(d),f=Ug(p),h=Km(z({},f,{slots:r,slotProps:o}));return(0,s.jsx)(u,z({},h))}),Kg=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:a,timezone:l})=>{const c=Ef();return i.useCallback(i=>null!==ih({adapter:c,value:i,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:a}}),[c,e,t,n,r,o,s,a,l])},Gg=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:a,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p}=e,f=jf(),h=i.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return z({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const e=o.newTimezone;if(n.getTimezone(r.currentMonth)===e)return r;let t=n.setTimezone(r.currentMonth,e);return n.getMonth(t)!==n.getMonth(r.currentMonth)&&(t=n.setMonth(t,n.getMonth(r.currentMonth))),z({},r,{currentMonth:t})}case"finishMonthSwitchingAnimation":return z({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=o.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=null!=o.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return z({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:null!=o.focusedDay&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(u),s,f)).current,m=i.useMemo(()=>Sf.getInitialReferenceValue({value:t,utils:f,timezone:p,props:e,referenceDate:n,granularity:Zp.day}),[n,p]),[g,y]=i.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:f.startOfMonth(m),slideDirection:"left"});i.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:f.getTimezone(m)})},[m,f]);const b=i.useCallback(e=>{y(z({type:"changeMonth"},e)),c&&c(e.newMonth)},[c]),v=i.useCallback(e=>{const t=e;f.isSameMonth(t,g.currentMonth)||b({newMonth:f.startOfMonth(t),direction:f.isAfterDay(t,g.currentMonth)?"left":"right"})},[g.currentMonth,b,f]),x=Kg({shouldDisableDate:d,minDate:l,maxDate:a,disableFuture:r,disablePast:o,timezone:p}),w=i.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),S=to((e,t)=>{x(e)||y({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})});return{referenceDate:m,calendarState:g,changeMonth:v,changeFocusedDay:S,isDateDisabled:x,onMonthSwitchingAnimationEnd:w,handleChangeMonth:b}},Xg=e=>Po("MuiPickersFadeTransitionGroup",e),Jg=(Do("MuiPickersFadeTransitionGroup",["root"]),Vr(go,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function Zg(e){const t=Dp({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=(e=>{const{classes:t}=e;return b({root:["root"]},Xg,t)})(t),l=Aa();return o?n:(0,s.jsx)(Jg,{className:y(a.root,r),children:(0,s.jsx)(fu,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function Qg(e){return Po("MuiPickersDay",e)}const ey=Do("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),ty=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],ny=({theme:e})=>z({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:T(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ey.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ey.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ey.disabled}:not(.${ey.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ey.disabled}&.${ey.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:"0 2px"}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${ey.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ry=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},oy=Vr(Wo,{name:"MuiPickersDay",slot:"Root",overridesResolver:ry})(ny),iy=Vr("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ry})(({theme:e})=>z({},ny({theme:e}),{opacity:0,pointerEvents:"none"})),sy=()=>{},ay=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,day:a,disabled:l=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:p,onDaySelect:f,onFocus:h=sy,onBlur:m=sy,onKeyDown:g=sy,onMouseDown:v=sy,onMouseEnter:x=sy,outsideCurrentMonth:w,selected:S=!1,showDaysOutsideCurrentMonth:C=!1,children:k,today:M=!1}=n,O=so(n,ty),T=z({},n,{autoFocus:r,disabled:l,disableHighlightToday:c,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:C,today:M}),P=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=e,c=s&&!a;return b({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Qg,l)})(T),D=jf(),E=i.useRef(null),j=Zr(E,t);eo(()=>{!r||l||d||w||E.current.focus()},[r,l,d,w]);return w&&!C?(0,s.jsx)(iy,{className:y(P.root,P.hiddenDaySpacingFiller,o),ownerState:T,role:O.role}):(0,s.jsx)(oy,z({className:y(P.root,o),ref:j,centerRipple:!0,disabled:l,tabIndex:S?0:-1,onKeyDown:e=>g(e,a),onFocus:e=>h(e,a),onBlur:e=>m(e,a),onMouseEnter:e=>x(e,a),onClick:e=>{l||f(a),w&&e.currentTarget.focus(),p&&p(e)},onMouseDown:e=>{v(e),w&&e.preventDefault()}},O,{ownerState:T,children:k||D.format(a,"dayOfMonth")}))}),ly=i.memo(ay);function cy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var uy=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=cy(n.className,r):n.setAttribute("class",cy(n.className&&n.className.baseVal||"",r)));var n,r})},dy=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}lo(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Uc(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&uy(e,r),o&&uy(e,o),i&&uy(e,i)},n.render=function(){var e=this.props,t=(e.classNames,so(e,["classNames"]));return i.default.createElement(Qc,z({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.default.Component);dy.defaultProps={classNames:""},dy.propTypes={};const py=dy,fy=e=>Po("MuiPickersSlideTransition",e),hy=Do("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),my=["children","className","reduceAnimations","slideDirection","transKey","classes"],gy=Vr(go,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${hy["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${hy["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${hy.slideEnterActive}`]:t.slideEnterActive},{[`.${hy.slideExit}`]:t.slideExit},{[`.${hy["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${hy["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${hy["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${hy["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${hy.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${hy.slideExit}`]:{transform:"translate(0%)"},[`& .${hy["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${hy["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});const yy=e=>Po("MuiDayCalendar",e),by=(Do("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),vy=["ownerState"],xy=Vr("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wy=Vr("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Sy=Vr(_f,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Cy=Vr(_f,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),ky=Vr(_f,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>z({},e.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),My=Vr("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Oy=Vr(function(e){const t=Dp({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,l=so(t,my),c=(e=>{const{classes:t,slideDirection:n}=e;return b({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]},fy,t)})(t),u=Aa();if(o)return(0,s.jsx)("div",{className:y(c.root,r),children:n});const d={exit:c.exit,enterActive:c.enterActive,enter:c.enter,exitActive:c.exitActive};return(0,s.jsx)(gy,{className:y(c.root,r),childFactory:e=>i.cloneElement(e,{classNames:d}),role:"presentation",children:(0,s.jsx)(py,z({mountOnEnter:!0,unmountOnExit:!0,timeout:u.transitions.duration.complex,classNames:d},l,{children:n}),a)})},{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Ty=Vr("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Py=Vr("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function Dy(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:l,isViewFocused:c}=e,u=so(e,by);const{disabled:d,disableHighlightToday:p,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:m,slotProps:g,timezone:y}=t,b=jf(),v=Rf(y),x=null!==r&&b.isSameDay(n,r),w=o.some(e=>b.isSameDay(e,n)),S=b.isSameDay(n,v),C=m?.day??ly,k=so(pa({elementType:C,externalSlotProps:g?.day,additionalProps:z({disableHighlightToday:p,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":b.toJsDate(n).valueOf()},u),ownerState:z({},t,{day:n,selected:w})}),vy),M=i.useMemo(()=>d||a(n),[d,a,n]),O=i.useMemo(()=>b.getMonth(n)!==l,[b,n,l]),T=i.useMemo(()=>{const e=b.startOfMonth(b.setMonth(n,l));return h?b.isSameDay(n,b.startOfWeek(e)):b.isSameDay(n,e)},[l,n,h,b]),P=i.useMemo(()=>{const e=b.endOfMonth(b.setMonth(n,l));return h?b.isSameDay(n,b.endOfWeek(e)):b.isSameDay(n,e)},[l,n,h,b]);return(0,s.jsx)(C,z({},k,{day:n,disabled:M,autoFocus:c&&x,today:S,outsideCurrentMonth:O,isFirstVisibleCell:T,isLastVisibleCell:P,selected:w,tabIndex:x?0:-1,"aria-selected":w,"aria-current":S?"date":void 0}))}function Ey(e){const t=Dp({props:e,name:"MuiDayCalendar"}),n=jf(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:p,readOnly:f,reduceAnimations:h,renderLoading:m=()=>(0,s.jsx)("span",{children:"..."}),slideDirection:g,TransitionProps:v,disablePast:x,disableFuture:w,minDate:S,maxDate:C,shouldDisableDate:k,shouldDisableMonth:M,shouldDisableYear:O,dayOfWeekFormatter:T=e=>n.format(e,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:D,gridLabelId:E,displayWeekNumber:j,fixedWeekNumber:A,autoFocus:R,timezone:N}=t,I=Rf(N),L=(e=>{const{classes:t}=e;return b({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},yy,t)})(t),$=Yi(),F=Kg({shouldDisableDate:k,shouldDisableMonth:M,shouldDisableYear:O,minDate:S,maxDate:C,disablePast:x,disableFuture:w,timezone:N}),_=Yf(),[B,V]=Wr({name:"DayCalendar",state:"hasFocus",controlled:P,default:R??!1}),[W,H]=i.useState(()=>c||I),U=to(e=>{f||d(e)}),q=e=>{F(e)||(r(e),H(e),D?.(!0),V(!0))},Y=to((e,t)=>{switch(e.key){case"ArrowUp":q(n.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":q(n.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const r=n.addDays(t,$?1:-1),o=n.addMonths(t,$?1:-1),i=Lp({utils:n,date:r,minDate:$?r:n.startOfMonth(o),maxDate:$?n.endOfMonth(o):r,isDateDisabled:F,timezone:N});q(i||r),e.preventDefault();break}case"ArrowRight":{const r=n.addDays(t,$?-1:1),o=n.addMonths(t,$?-1:1),i=Lp({utils:n,date:r,minDate:$?n.startOfMonth(o):r,maxDate:$?r:n.endOfMonth(o),isDateDisabled:F,timezone:N});q(i||r),e.preventDefault();break}case"Home":q(n.startOfWeek(t)),e.preventDefault();break;case"End":q(n.endOfWeek(t)),e.preventDefault();break;case"PageUp":q(n.addMonths(t,1)),e.preventDefault();break;case"PageDown":q(n.addMonths(t,-1)),e.preventDefault()}}),K=to((e,t)=>q(t)),G=to((e,t)=>{B&&n.isSameDay(W,t)&&D?.(!1)}),X=n.getMonth(a),J=n.getYear(a),Z=i.useMemo(()=>l.filter(e=>!!e).map(e=>n.startOfDay(e)),[n,l]),Q=`${J}-${X}`,ee=i.useMemo(()=>i.createRef(),[Q]),te=i.useMemo(()=>{const e=n.startOfMonth(a),t=n.endOfMonth(a);return F(W)||n.isAfterDay(W,t)||n.isBeforeDay(W,e)?Lp({utils:n,date:W,minDate:e,maxDate:t,disablePast:x,disableFuture:w,isDateDisabled:F,timezone:N}):W},[a,w,x,W,F,n,N]),ne=i.useMemo(()=>{const e=n.getWeekArray(a);let t=n.addMonths(a,1);for(;A&&e.length<A;){const r=n.getWeekArray(t),o=n.isSameDay(e[e.length-1][0],r[0][0]);r.slice(o?1:0).forEach(t=>{e.length<A&&e.push(t)}),t=n.addMonths(t,1)}return e},[a,A,n]);return(0,s.jsxs)(xy,{role:"grid","aria-labelledby":E,className:L.root,children:[(0,s.jsxs)(wy,{role:"row",className:L.header,children:[j&&(0,s.jsx)(Cy,{variant:"caption",role:"columnheader","aria-label":_.calendarWeekNumberHeaderLabel,className:L.weekNumberLabel,children:_.calendarWeekNumberHeaderText}),Hp(n,I).map((e,t)=>(0,s.jsx)(Sy,{variant:"caption",role:"columnheader","aria-label":n.format(e,"weekday"),className:L.weekDayLabel,children:T(e)},t.toString()))]}),u?(0,s.jsx)(My,{className:L.loadingContainer,children:m()}):(0,s.jsx)(Oy,z({transKey:Q,onExited:p,reduceAnimations:h,slideDirection:g,className:y(o,L.slideTransition)},v,{nodeRef:ee,children:(0,s.jsx)(Ty,{ref:ee,role:"rowgroup",className:L.monthContainer,children:ne.map((e,r)=>(0,s.jsxs)(Py,{role:"row",className:L.weekContainer,"aria-rowindex":r+1,children:[j&&(0,s.jsx)(ky,{className:L.weekNumber,role:"rowheader","aria-label":_.calendarWeekNumberAriaLabelText(n.getWeekNumber(e[0])),children:_.calendarWeekNumberText(n.getWeekNumber(e[0]))}),e.map((e,n)=>(0,s.jsx)(Dy,{parentProps:t,day:e,selectedDays:Z,focusableDay:te,onKeyDown:Y,onFocus:K,onBlur:G,onDaySelect:U,isDateDisabled:F,currentMonthNumber:X,isViewFocused:B,"aria-colindex":n+1},e.toString()))]},`week-${e[0]}`))})}))]})}function jy(e){return Po("MuiPickersMonth",e)}const Ay=Do("MuiPickersMonth",["root","monthButton","disabled","selected"]),Ry=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],Ny=Vr("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),Iy=Vr("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ay.disabled}`]:t.disabled},{[`&.${Ay.selected}`]:t.selected}]})(({theme:e})=>z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ay.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ay.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ly=i.memo(function(e){const t=Dp({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:o,disabled:a,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:f,onBlur:h,"aria-current":m,"aria-label":g,slots:v,slotProps:x}=t,w=so(t,Ry),S=i.useRef(null),C=(e=>{const{disabled:t,selected:n,classes:r}=e;return b({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},jy,r)})(t);eo(()=>{n&&S.current?.focus()},[n]);const k=v?.monthButton??Iy,M=pa({elementType:k,externalSlotProps:x?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:u,ref:S,type:"button",role:"radio","aria-current":m,"aria-checked":l,"aria-label":g,onClick:e=>d(e,c),onKeyDown:e=>p(e,c),onFocus:e=>f(e,c),onBlur:e=>h(e,c)},ownerState:t,className:C.monthButton});return(0,s.jsx)(Ny,z({className:y(C.root,r),ownerState:t},w,{children:(0,s.jsx)(k,z({},M))}))});function $y(e){return Po("MuiMonthCalendar",e)}Do("MuiMonthCalendar",["root"]);const Fy=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"];const zy=Vr("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:um,boxSizing:"border-box"}),_y=i.forwardRef(function(e,t){const n=function(e,t){const n=jf(),r=Af(),o=Dp({props:e,name:t});return z({disableFuture:!1,disablePast:!1},o,{minDate:$p(n,o.minDate,r.minDate),maxDate:$p(n,o.maxDate,r.maxDate)})}(e,"MuiMonthCalendar"),{className:r,value:o,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:f,onChange:h,shouldDisableMonth:m,readOnly:g,autoFocus:v=!1,onMonthFocus:x,hasFocus:w,onFocusedViewChange:S,monthsPerRow:C=3,timezone:k,gridLabelId:M,slots:O,slotProps:T}=n,P=so(n,Fy),{value:D,handleValueChange:E,timezone:j}=Dh({name:"MonthCalendar",timezone:k,value:o,defaultValue:a,referenceDate:l,onChange:h,valueManager:Sf}),A=Rf(j),R=Yi(),N=jf(),I=i.useMemo(()=>Sf.getInitialReferenceValue({value:D,utils:N,props:n,timezone:j,referenceDate:l,granularity:Zp.month}),[]),L=n,$=(e=>{const{classes:t}=e;return b({root:["root"]},$y,t)})(L),F=i.useMemo(()=>N.getMonth(A),[N,A]),_=i.useMemo(()=>null!=D?N.getMonth(D):null,[D,N]),[B,V]=i.useState(()=>_||N.getMonth(I)),[W,H]=Wr({name:"MonthCalendar",state:"hasFocus",controlled:w,default:v??!1}),U=to(e=>{H(e),S&&S(e)}),q=i.useCallback(e=>{const t=N.startOfMonth(d&&N.isAfter(A,f)?A:f),n=N.startOfMonth(u&&N.isBefore(A,p)?A:p),r=N.startOfMonth(e);return!!N.isBefore(r,t)||(!!N.isAfter(r,n)||!!m&&m(r))},[u,d,p,f,A,m,N]),Y=to((e,t)=>{if(g)return;const n=N.setMonth(D??I,t);E(n)}),K=to(e=>{q(N.setMonth(D??I,e))||(V(e),U(!0),x&&x(e))});i.useEffect(()=>{V(e=>null!==_&&e!==_?_:e)},[_]);const G=to((e,t)=>{const n=12;switch(e.key){case"ArrowUp":K((n+t-3)%n),e.preventDefault();break;case"ArrowDown":K((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":K((n+t+(R?1:-1))%n),e.preventDefault();break;case"ArrowRight":K((n+t+(R?-1:1))%n),e.preventDefault()}}),X=to((e,t)=>{K(t)}),J=to((e,t)=>{B===t&&U(!1)});return(0,s.jsx)(zy,z({ref:t,className:y($.root,r),ownerState:L,role:"radiogroup","aria-labelledby":M},P,{children:Fp(N,D??I).map(e=>{const t=N.getMonth(e),n=N.format(e,"monthShort"),r=N.format(e,"month"),o=t===_,i=c||q(e);return(0,s.jsx)(Ly,{selected:o,value:t,onClick:Y,onKeyDown:G,autoFocus:W&&t===B,disabled:i,tabIndex:t!==B||i?-1:0,onFocus:X,onBlur:J,"aria-current":F===t?"date":void 0,"aria-label":r,monthsPerRow:C,slots:O,slotProps:T,children:n},n)})}))});function By(e){return Po("MuiPickersYear",e)}const Vy=Do("MuiPickersYear",["root","yearButton","selected","disabled"]),Wy=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Hy=Vr("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Uy=Vr("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Vy.disabled}`]:t.disabled},{[`&.${Vy.selected}`]:t.selected}]})(({theme:e})=>z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:T(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vy.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Vy.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),qy=i.memo(function(e){const t=Dp({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:o,disabled:a,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:f,onBlur:h,"aria-current":m,slots:g,slotProps:v}=t,x=so(t,Wy),w=i.useRef(null),S=(e=>{const{disabled:t,selected:n,classes:r}=e;return b({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},By,r)})(t);eo(()=>{n&&w.current?.focus()},[n]);const C=g?.yearButton??Uy,k=pa({elementType:C,externalSlotProps:v?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:u,ref:w,type:"button",role:"radio","aria-current":m,"aria-checked":l,onClick:e=>d(e,c),onKeyDown:e=>p(e,c),onFocus:e=>f(e,c),onBlur:e=>h(e,c)},ownerState:t,className:S.yearButton});return(0,s.jsx)(Hy,z({className:y(S.root,r),ownerState:t},x,{children:(0,s.jsx)(C,z({},k))}))});function Yy(e){return Po("MuiYearCalendar",e)}Do("MuiYearCalendar",["root"]);const Ky=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"];const Gy=Vr("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:um,maxHeight:280,boxSizing:"border-box",position:"relative"}),Xy=i.forwardRef(function(e,t){const n=function(e,t){const n=jf(),r=Af(),o=Dp({props:e,name:t});return z({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:$p(n,o.minDate,r.minDate),maxDate:$p(n,o.maxDate,r.maxDate)})}(e,"MuiYearCalendar"),{autoFocus:r,className:o,value:a,defaultValue:l,referenceDate:c,disabled:u,disableFuture:d,disablePast:p,maxDate:f,minDate:h,onChange:m,readOnly:g,shouldDisableYear:v,onYearFocus:x,hasFocus:w,onFocusedViewChange:S,yearsOrder:C="asc",yearsPerRow:k,timezone:M,gridLabelId:O,slots:T,slotProps:P}=n,D=so(n,Ky),{value:E,handleValueChange:j,timezone:A}=Dh({name:"YearCalendar",timezone:M,value:a,defaultValue:l,referenceDate:c,onChange:m,valueManager:Sf}),R=Rf(A),N=Yi(),I=jf(),L=i.useMemo(()=>Sf.getInitialReferenceValue({value:E,utils:I,props:n,timezone:A,referenceDate:c,granularity:Zp.year}),[]),$=n,F=(e=>{const{classes:t}=e;return b({root:["root"]},Yy,t)})($),_=i.useMemo(()=>I.getYear(R),[I,R]),B=i.useMemo(()=>null!=E?I.getYear(E):null,[E,I]),[V,W]=i.useState(()=>B||I.getYear(L)),[H,U]=Wr({name:"YearCalendar",state:"hasFocus",controlled:w,default:r??!1}),q=to(e=>{U(e),S&&S(e)}),Y=i.useCallback(e=>{if(p&&I.isBeforeYear(e,R))return!0;if(d&&I.isAfterYear(e,R))return!0;if(h&&I.isBeforeYear(e,h))return!0;if(f&&I.isAfterYear(e,f))return!0;if(!v)return!1;const t=I.startOfYear(e);return v(t)},[d,p,f,h,R,v,I]),K=to((e,t)=>{if(g)return;const n=I.setYear(E??L,t);j(n)}),G=to(e=>{Y(I.setYear(E??L,e))||(W(e),q(!0),x?.(e))});i.useEffect(()=>{W(e=>null!==B&&e!==B?B:e)},[B]);const X="desc"!==C?1*k:-1*k,J=N&&"asc"===C||!N&&"desc"===C?-1:1,Z=to((e,t)=>{switch(e.key){case"ArrowUp":G(t-X),e.preventDefault();break;case"ArrowDown":G(t+X),e.preventDefault();break;case"ArrowLeft":G(t-J),e.preventDefault();break;case"ArrowRight":G(t+J),e.preventDefault()}}),Q=to((e,t)=>{G(t)}),ee=to((e,t)=>{V===t&&q(!1)}),te=i.useRef(null),ne=Zr(t,te);i.useEffect(()=>{if(r||null===te.current)return;const e=te.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,o=te.current.clientHeight,i=te.current.scrollTop,s=n+t;t>o||n<i||(te.current.scrollTop=s-o/2-t/2)},[r]);const re=I.getYearRange([h,f]);return"desc"===C&&re.reverse(),(0,s.jsx)(Gy,z({ref:ne,className:y(F.root,o),ownerState:$,role:"radiogroup","aria-labelledby":O},D,{children:re.map(e=>{const t=I.getYear(e),n=t===B,r=u||Y(e);return(0,s.jsx)(qy,{selected:n,value:t,onClick:K,onKeyDown:Z,autoFocus:H&&t===V,disabled:r,tabIndex:t!==V||r?-1:0,onFocus:Q,onBlur:ee,"aria-current":_===t?"date":void 0,yearsPerRow:k,slots:T,slotProps:P,children:I.format(e,"year")},I.format(e,"year"))})}))});function Jy(e){return Po("MuiPickersArrowSwitcher",e)}Do("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Zy=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Qy=["ownerState"],eb=["ownerState"],tb=Vr("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),nb=Vr("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),rb=Vr(el,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),ob=i.forwardRef(function(e,t){const n=Yi(),r=Dp({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:p,isPreviousDisabled:f,isPreviousHidden:h,onGoToPrevious:m,previousLabel:g,labelId:v}=r,x=so(r,Zy),w=r,S=(e=>{const{classes:t}=e;return b({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Jy,t)})(w),C={isDisabled:c,isHidden:u,goTo:d,label:p},k={isDisabled:f,isHidden:h,goTo:m,label:g},M=a?.previousIconButton??rb,O=pa({elementType:M,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:z({},w,{hidden:k.isHidden}),className:y(S.button,S.previousIconButton)}),T=a?.nextIconButton??rb,P=pa({elementType:T,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:z({},w,{hidden:C.isHidden}),className:y(S.button,S.nextIconButton)}),D=a?.leftArrowIcon??Om,E=so(pa({elementType:D,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:S.leftArrowIcon}),Qy),j=a?.rightArrowIcon??Tm,A=so(pa({elementType:j,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:S.rightArrowIcon}),eb);return(0,s.jsxs)(tb,z({ref:t,className:y(S.root,i),ownerState:w},x,{children:[(0,s.jsx)(M,z({},O,{children:n?(0,s.jsx)(j,z({},A)):(0,s.jsx)(D,z({},E))})),o?(0,s.jsx)(_f,{variant:"subtitle1",component:"span",id:v,children:o}):(0,s.jsx)(nb,{className:S.spacer,ownerState:w}),(0,s.jsx)(T,z({},P,{children:n?(0,s.jsx)(D,z({},E)):(0,s.jsx)(j,z({},A))}))]}))});function ib(e,t,n,r){const o=jf(),s=((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(e,o),a=i.useCallback(i=>{const s=null==e?null:((e,t,n,r)=>{const o=Kp(r.getHours(e),t,n);return r.setHours(e,o)})(e,i,Boolean(t),o);n(s,r??"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:a}}const sb=e=>Po("MuiPickersCalendarHeader",e),ab=Do("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),lb=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],cb=["ownerState"],ub=Vr("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),db=Vr("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),pb=Vr("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),fb=Vr(el,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${ab.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),hb=Vr(Mm,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),mb=i.forwardRef(function(e,t){const n=Yf(),r=jf(),o=Dp({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:f,minDate:h,onMonthChange:m,onViewChange:g,view:v,reduceAnimations:x,views:w,labelId:S,className:C,timezone:k,format:M=`${r.formats.month} ${r.formats.year}`}=o,O=so(o,lb),T=o,P=(e=>{const{classes:t}=e;return b({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},sb,t)})(o),D=a?.switchViewButton??fb,E=pa({elementType:D,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(v)},ownerState:T,className:P.switchViewButton}),j=a?.switchViewIcon??hb,A=so(pa({elementType:j,externalSlotProps:l?.switchViewIcon,ownerState:T,className:P.switchViewIcon}),cb),R=function(e,{disableFuture:t,maxDate:n,timezone:r}){const o=jf();return i.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(s,e)},[t,n,e,o,r])}(c,{disableFuture:d,maxDate:f,timezone:k}),N=function(e,{disablePast:t,minDate:n,timezone:r}){const o=jf();return i.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(s,e)},[t,n,e,o,r])}(c,{disablePast:p,minDate:h,timezone:k});if(1===w.length&&"year"===w[0])return null;const I=r.formatByString(c,M);return(0,s.jsxs)(ub,z({},O,{ownerState:T,className:y(P.root,C),ref:t,children:[(0,s.jsxs)(db,{role:"presentation",onClick:()=>{if(1!==w.length&&g&&!u)if(2===w.length)g(w.find(e=>e!==v)||w[0]);else{const e=0!==w.indexOf(v)?0:1;g(w[e])}},ownerState:T,"aria-live":"polite",className:P.labelContainer,children:[(0,s.jsx)(Zg,{reduceAnimations:x,transKey:I,children:(0,s.jsx)(pb,{id:S,ownerState:T,className:P.label,children:I})}),w.length>1&&!u&&(0,s.jsx)(D,z({},E,{children:(0,s.jsx)(j,z({},A))}))]}),(0,s.jsx)(fu,{in:"day"===v,appear:!x,enter:!x,children:(0,s.jsx)(ob,{slots:a,slotProps:l,onGoToPrevious:()=>m(r.addMonths(c,-1),"right"),isPreviousDisabled:N,previousLabel:n.previousMonth,onGoToNext:()=>m(r.addMonths(c,1),"left"),isNextDisabled:R,nextLabel:n.nextMonth})})]}))}),gb=Vr("div")({overflow:"hidden",width:um,maxHeight:dm,display:"flex",flexDirection:"column",margin:"0 auto"}),yb=e=>Po("MuiDateCalendar",e),bb=(Do("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"]);const vb=Vr(gb,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:dm}),xb=Vr(Zg,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),wb=i.forwardRef(function(e,t){const n=jf(),r=Fi(),o=function(e,t){const n=jf(),r=Af(),o=wh(),i=Dp({props:e,name:t});return z({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>(0,s.jsx)("span",{children:"..."})),minDate:$p(n,i.minDate,r.minDate),maxDate:$p(n,i.maxDate,r.maxDate)})}(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:c,defaultValue:u,referenceDate:d,disableFuture:p,disablePast:f,onChange:h,onYearChange:m,onMonthChange:g,reduceAnimations:v,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,view:C,views:k,openTo:M,className:O,disabled:T,readOnly:P,minDate:D,maxDate:E,disableHighlightToday:j,focusedView:A,onFocusedViewChange:R,showDaysOutsideCurrentMonth:N,fixedWeekNumber:I,dayOfWeekFormatter:L,slots:$,slotProps:F,loading:_,renderLoading:B,displayWeekNumber:V,yearsOrder:W,yearsPerRow:H,monthsPerRow:U,timezone:q}=o,Y=so(o,bb),{value:K,handleValueChange:G,timezone:X}=Dh({name:"DateCalendar",timezone:q,value:c,defaultValue:u,referenceDate:d,onChange:h,valueManager:Sf}),{view:J,setView:Z,focusedView:Q,setFocusedView:ee,goToNextView:te,setValueAndGoToNextView:ne}=jh({view:C,views:k,openTo:M,onChange:G,onViewChange:l,autoFocus:a,focusedView:A,onFocusedViewChange:R}),{referenceDate:re,calendarState:oe,changeFocusedDay:ie,changeMonth:se,handleChangeMonth:ae,isDateDisabled:le,onMonthSwitchingAnimationEnd:ce}=Gg({value:K,referenceDate:d,reduceAnimations:v,onMonthChange:g,minDate:D,maxDate:E,shouldDisableDate:x,disablePast:f,disableFuture:p,timezone:X}),ue=T&&K||D,de=T&&K||E,pe=`${r}-grid-label`,fe=null!==Q,he=$?.calendarHeader??mb,me=pa({elementType:he,externalSlotProps:F?.calendarHeader,additionalProps:{views:k,view:J,currentMonth:oe.currentMonth,onViewChange:Z,onMonthChange:(e,t)=>ae({newMonth:e,direction:t}),minDate:ue,maxDate:de,disabled:T,disablePast:f,disableFuture:p,reduceAnimations:v,timezone:X,labelId:pe},ownerState:o}),ge=to(e=>{const t=n.startOfMonth(e),r=n.endOfMonth(e),o=le(e)?Lp({utils:n,date:e,minDate:n.isBefore(D,t)?t:D,maxDate:n.isAfter(E,r)?r:E,disablePast:f,disableFuture:p,isDateDisabled:le,timezone:X}):e;o?(ne(o,"finish"),g?.(t)):(te(),se(t)),ie(o,!0)}),ye=to(e=>{const t=n.startOfYear(e),r=n.endOfYear(e),o=le(e)?Lp({utils:n,date:e,minDate:n.isBefore(D,t)?t:D,maxDate:n.isAfter(E,r)?r:E,disablePast:f,disableFuture:p,isDateDisabled:le,timezone:X}):e;o?(ne(o,"finish"),m?.(o)):(te(),se(t)),ie(o,!0)}),be=to(e=>G(e?Ip(n,e,K??re):e,"finish",J));i.useEffect(()=>{null!=K&&n.isValid(K)&&se(K)},[K]);const ve=o,xe=(e=>{const{classes:t}=e;return b({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},yb,t)})(ve),we={disablePast:f,disableFuture:p,maxDate:E,minDate:D},Se={disableHighlightToday:j,readOnly:P,disabled:T,timezone:X,gridLabelId:pe,slots:$,slotProps:F},Ce=i.useRef(J);i.useEffect(()=>{Ce.current!==J&&(Q===Ce.current&&ee(J,!0),Ce.current=J)},[Q,ee,J]);const ke=i.useMemo(()=>[K],[K]);return(0,s.jsxs)(vb,z({ref:t,className:y(xe.root,O),ownerState:ve},Y,{children:[(0,s.jsx)(he,z({},me,{slots:$,slotProps:F})),(0,s.jsx)(xb,{reduceAnimations:v,className:xe.viewTransitionContainer,transKey:J,ownerState:ve,children:(0,s.jsxs)("div",{children:["year"===J&&(0,s.jsx)(Xy,z({},we,Se,{value:K,onChange:ye,shouldDisableYear:S,hasFocus:fe,onFocusedViewChange:e=>ee("year",e),yearsOrder:W,yearsPerRow:H,referenceDate:re})),"month"===J&&(0,s.jsx)(_y,z({},we,Se,{hasFocus:fe,className:O,value:K,onChange:ge,shouldDisableMonth:w,onFocusedViewChange:e=>ee("month",e),monthsPerRow:U,referenceDate:re})),"day"===J&&(0,s.jsx)(Ey,z({},oe,we,Se,{onMonthSwitchingAnimationEnd:ce,onFocusedDayChange:ie,reduceAnimations:v,selectedDays:ke,onSelectedDaysChange:be,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,hasFocus:fe,onFocusedViewChange:e=>ee("day",e),showDaysOutsideCurrentMonth:N,fixedWeekNumber:I,dayOfWeekFormatter:L,displayWeekNumber:V,loading:_,renderLoading:B}))]})})]}))}),Sb=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:v,onMonthChange:x,monthsPerRow:w,onYearChange:S,yearsOrder:C,yearsPerRow:k,slots:M,slotProps:O,loading:T,renderLoading:P,disableHighlightToday:D,readOnly:E,disabled:j,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:R,sx:N,autoFocus:I,fixedWeekNumber:L,displayWeekNumber:$,timezone:F})=>(0,s.jsx)(wb,{view:e,onViewChange:t,views:n.filter(Vp),focusedView:r&&Vp(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:v,onMonthChange:x,monthsPerRow:w,onYearChange:S,yearsOrder:C,yearsPerRow:k,slots:M,slotProps:O,loading:T,renderLoading:P,disableHighlightToday:D,readOnly:E,disabled:j,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:R,sx:N,autoFocus:I,fixedWeekNumber:L,displayWeekNumber:$,timezone:F}),Cb=i.forwardRef(function(e,t){const n=Yf(),r=jf(),o=Qf(e,"MuiDesktopDatePicker"),i=z({day:Sb,month:Sb,year:Sb},o.viewRenderers),s=z({},o,{viewRenderers:i,format:Wp(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:z({openPickerIcon:Pm,field:Yg},o.slots),slotProps:z({},o.slotProps,{field:e=>z({},Yo(o.slotProps?.field,e),oh(o),{ref:t}),toolbar:z({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:a}=km({props:s,valueManager:Sf,valueType:"date",getOpenDialogAriaText:Tf({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:ih});return a()});function kb(e){return Po("MuiDialogContent",e)}Cb.propTypes={autoFocus:jp().bool,className:jp().string,closeOnSelect:jp().bool,dayOfWeekFormatter:jp().func,defaultValue:jp().object,disabled:jp().bool,disableFuture:jp().bool,disableHighlightToday:jp().bool,disableOpenPicker:jp().bool,disablePast:jp().bool,displayWeekNumber:jp().bool,enableAccessibleFieldDOMStructure:jp().any,fixedWeekNumber:jp().number,format:jp().string,formatDensity:jp().oneOf(["dense","spacious"]),inputRef:Ap,label:jp().node,loading:jp().bool,localeText:jp().object,maxDate:jp().object,minDate:jp().object,monthsPerRow:jp().oneOf([3,4]),name:jp().string,onAccept:jp().func,onChange:jp().func,onClose:jp().func,onError:jp().func,onMonthChange:jp().func,onOpen:jp().func,onSelectedSectionsChange:jp().func,onViewChange:jp().func,onYearChange:jp().func,open:jp().bool,openTo:jp().oneOf(["day","month","year"]),orientation:jp().oneOf(["landscape","portrait"]),readOnly:jp().bool,reduceAnimations:jp().bool,referenceDate:jp().object,renderLoading:jp().func,selectedSections:jp().oneOfType([jp().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),jp().number]),shouldDisableDate:jp().func,shouldDisableMonth:jp().func,shouldDisableYear:jp().func,showDaysOutsideCurrentMonth:jp().bool,slotProps:jp().object,slots:jp().object,sx:jp().oneOfType([jp().arrayOf(jp().oneOfType([jp().func,jp().object,jp().bool])),jp().func,jp().object]),timezone:jp().string,value:jp().object,view:jp().oneOf(["day","month","year"]),viewRenderers:jp().shape({day:jp().func,month:jp().func,year:jp().func}),views:jp().arrayOf(jp().oneOf(["day","month","year"]).isRequired),yearsOrder:jp().oneOf(["asc","desc"]),yearsPerRow:jp().oneOf([3,4])};Do("MuiDialogContent",["root","dividers"]);function Mb(e){return Po("MuiDialogTitle",e)}const Ob=Do("MuiDialogTitle",["root"]),Tb=Vr("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ri(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${Ob.root} + &`]:{paddingTop:0}}}]}))),Pb=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...i}=n,a={...n,dividers:o},l=(e=>{const{classes:t,dividers:n}=e;return b({root:["root",n&&"dividers"]},kb,t)})(a);return(0,s.jsx)(Tb,{className:y(l.root,r),ownerState:a,ref:t,...i})});function Db(e){return Po("MuiDialog",e)}const Eb=Do("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const jb=i.createContext({}),Ab=Vr(gu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Rb=Vr(Eu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Nb=Vr("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${L(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Ib=Vr(La,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${L(n.scroll)}`],t[`paperWidth${L(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ri(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Eb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Eb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Eb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Lb=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiDialog"}),r=Aa(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:f,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onClick:x,onClose:w,open:S,PaperComponent:C=La,PaperProps:k={},scroll:M="paper",slots:O={},slotProps:T={},TransitionComponent:P=fu,transitionDuration:D=o,TransitionProps:E,...j}=n,A={...n,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:v,scroll:M},R=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e;return b({root:["root"],container:["container",`scroll${L(n)}`],paper:["paper",`paperScroll${L(n)}`,`paperWidth${L(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]},Db,t)})(A),N=i.useRef(),I=Fi(l),$=i.useMemo(()=>({titleId:I}),[I]),F={slots:{transition:P,...O},slotProps:{transition:E,paper:k,backdrop:d,...T}},[z,_]=Jo("root",{elementType:Rb,shouldForwardComponentProp:!0,externalForwardedProps:F,ownerState:A,className:y(R.root,f),ref:t}),[B,V]=Jo("backdrop",{elementType:Ab,shouldForwardComponentProp:!0,externalForwardedProps:F,ownerState:A}),[W,H]=Jo("paper",{elementType:Ib,shouldForwardComponentProp:!0,externalForwardedProps:F,ownerState:A,className:y(R.paper,k.className)}),[U,q]=Jo("container",{elementType:Nb,externalForwardedProps:F,ownerState:A,className:R.container}),[Y,K]=Jo("transition",{elementType:fu,externalForwardedProps:F,ownerState:A,additionalProps:{appear:!0,in:S,timeout:D,role:"presentation"}});return(0,s.jsx)(z,{closeAfterTransition:!0,slots:{backdrop:B},slotProps:{backdrop:{transitionDuration:D,as:u,...V}},disableEscapeKeyDown:h,onClose:w,open:S,onClick:e=>{x&&x(e),N.current&&(N.current=null,w&&w(e,"backdropClick"))},..._,...j,children:(0,s.jsx)(Y,{...K,children:(0,s.jsx)(U,{onMouseDown:e=>{N.current=e.target===e.currentTarget},...q,children:(0,s.jsx)(W,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":I,"aria-modal":c,...H,children:(0,s.jsx)(jb.Provider,{value:$,children:p})})})})})}),$b=Lb,Fb=Vr($b)({[`& .${Eb.container}`]:{outline:0},[`& .${Eb.paper}`]:{outline:0,minWidth:um}}),zb=Vr(Pb)({"&:first-of-type":{padding:0}});function _b(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:i}=e,a=o?.dialog??Fb,l=o?.mobileTransition??fu;return(0,s.jsx)(a,z({open:r,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:i?.mobilePaper,children:(0,s.jsx)(zb,{children:t})}))}const Bb=["props","getOpenDialogAriaText"],Vb=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=so(e,Bb);const{slots:o,slotProps:a,className:l,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:p,selectedSections:f,onSelectedSectionsChange:h,timezone:m,name:g,label:y,inputRef:b,readOnly:v,disabled:x,localeText:w}=t,S=i.useRef(null),C=Fi(),k=a?.toolbar?.hidden??!1,{open:M,actions:O,layoutProps:T,renderCurrentView:P,fieldProps:D,contextValue:E}=Ih(z({},r,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=o.field,A=pa({elementType:j,externalSlotProps:a?.field,additionalProps:z({},D,k&&{id:C},!(x||v)&&{onClick:O.onOpen,onKeyDown:(R=O.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(R(e),e.preventDefault(),e.stopPropagation()),N&&N(e)})},{readOnly:v??!0,disabled:x,className:l,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:p,selectedSections:f,onSelectedSectionsChange:h,timezone:m,label:y,name:g},b?{inputRef:b}:{}),ownerState:t});var R,N;A.inputProps=z({},A.inputProps,{"aria-label":n(D.value)});const I=z({textField:o.textField},A.slots),L=o.layout??bm;let $=C;k&&($=y?`${C}-label`:void 0);const F=z({},a,{toolbar:z({},a?.toolbar,{titleId:C}),mobilePaper:z({"aria-labelledby":$},a?.mobilePaper)}),_=Zr(S,A.unstableFieldRef);return{renderPicker:()=>(0,s.jsxs)(xm,{contextValue:E,localeText:w,children:[(0,s.jsx)(j,z({},A,{slots:I,slotProps:F,unstableFieldRef:_})),(0,s.jsx)(_b,z({},O,{open:M,slots:o,slotProps:F,children:(0,s.jsx)(L,z({},T,F?.layout,{slots:o,slotProps:F,children:P()}))}))]})}},Wb=i.forwardRef(function(e,t){const n=Yf(),r=jf(),o=Qf(e,"MuiMobileDatePicker"),i=z({day:Sb,month:Sb,year:Sb},o.viewRenderers),s=z({},o,{viewRenderers:i,format:Wp(r,o,!1),slots:z({field:Yg},o.slots),slotProps:z({},o.slotProps,{field:e=>z({},Yo(o.slotProps?.field,e),oh(o),{ref:t}),toolbar:z({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:a}=Vb({props:s,valueManager:Sf,valueType:"date",getOpenDialogAriaText:Tf({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:ih});return a()});Wb.propTypes={autoFocus:jp().bool,className:jp().string,closeOnSelect:jp().bool,dayOfWeekFormatter:jp().func,defaultValue:jp().object,disabled:jp().bool,disableFuture:jp().bool,disableHighlightToday:jp().bool,disableOpenPicker:jp().bool,disablePast:jp().bool,displayWeekNumber:jp().bool,enableAccessibleFieldDOMStructure:jp().any,fixedWeekNumber:jp().number,format:jp().string,formatDensity:jp().oneOf(["dense","spacious"]),inputRef:Ap,label:jp().node,loading:jp().bool,localeText:jp().object,maxDate:jp().object,minDate:jp().object,monthsPerRow:jp().oneOf([3,4]),name:jp().string,onAccept:jp().func,onChange:jp().func,onClose:jp().func,onError:jp().func,onMonthChange:jp().func,onOpen:jp().func,onSelectedSectionsChange:jp().func,onViewChange:jp().func,onYearChange:jp().func,open:jp().bool,openTo:jp().oneOf(["day","month","year"]),orientation:jp().oneOf(["landscape","portrait"]),readOnly:jp().bool,reduceAnimations:jp().bool,referenceDate:jp().object,renderLoading:jp().func,selectedSections:jp().oneOfType([jp().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),jp().number]),shouldDisableDate:jp().func,shouldDisableMonth:jp().func,shouldDisableYear:jp().func,showDaysOutsideCurrentMonth:jp().bool,slotProps:jp().object,slots:jp().object,sx:jp().oneOfType([jp().arrayOf(jp().oneOfType([jp().func,jp().object,jp().bool])),jp().func,jp().object]),timezone:jp().string,value:jp().object,view:jp().oneOf(["day","month","year"]),viewRenderers:jp().shape({day:jp().func,month:jp().func,year:jp().func}),views:jp().arrayOf(jp().oneOf(["day","month","year"]).isRequired),yearsOrder:jp().oneOf(["asc","desc"]),yearsPerRow:jp().oneOf([3,4])};const Hb=["desktopModeMediaQuery"],Ub=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=gh}=n,o=so(n,Hb);return Pp(r,{defaultMatches:!0})?(0,s.jsx)(Cb,z({ref:t},o)):(0,s.jsx)(Wb,z({ref:t},o))});var qb=o(4353),Yb=o.n(qb),Kb=o(8134),Gb=o.n(Kb),Xb=o(445),Jb=o.n(Xb),Zb=o(5750),Qb=o.n(Zb),ev=o(7872),tv=o.n(ev),nv=o(7375),rv=o.n(nv);Yb().extend(Qb()),Yb().extend(Gb()),Yb().extend(tv()),Yb().extend(rv());const ov={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},iv={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},sv=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),av=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class lv{constructor({locale:e,formats:t}={}){var n,r;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=ov,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==Yb().utc,this.hasTimezonePlugin=()=>void 0!==Yb().tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return Yb().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=Yb().tz.guess();return"UTC"!==t?Yb().tz(e,t):Yb()(e)}return Yb()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(sv);return Yb().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(sv);if(!this.hasTimezonePlugin())throw new Error(av);const n=void 0!==e&&!e.endsWith("Z");return Yb()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=Yb().Ls;let t=e[this.locale||"en"];return void 0===t&&(t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){const n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e},this.date=(e,t="default")=>{if(null===e)return null;let n;return n="UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),void 0===this.locale?n:n.locale(this.locale)},this.getInvalidDate=()=>Yb()(new Date("Invalid date")),this.getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(sv);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(av)}return Yb().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,n,r)=>{const o=r&&r.toUpperCase();return n||t[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1))})},this.isValid=e=>null!=e&&e.isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>e<t,this.isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day"),this.isWithinRange=(e,[t,n])=>e>=t&&e<=n,this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,o=t;const i=[];for(;o<n;){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=this.addDays(o,1),r+=1}return i},this.getWeekNumber=e=>e.week(),this.getYearRange=([e,t])=>{const n=this.startOfYear(e),r=this.endOfYear(t),o=[];let i=n;for(;this.isBefore(i,r);)o.push(i),i=this.addYears(i,1);return o},this.dayjs=(n=Yb(),(r=e)?(...e)=>n(...e).locale(r):n),this.locale=e,this.formats=z({},iv,t),Yb().extend(Jb())}getDayOfWeek(e){return e.day()+1}}var cv=o(3826),uv=o.n(cv);function dv(e){return dv="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},dv(e)}var pv=["id","label","value","handleDateChange","disabled","error","helperText","required","containerSx","textFieldSx"];function fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fv(Object(n),!0).forEach(function(t){mv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mv(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=dv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Yb().extend(uv()),Yb().utc();var gv={width:"170px",height:40,marginTop:"8px","& .MuiOutlinedInput-notchedOutline":{border:"1px solid #8C8C8C",borderRadius:"3px","& legend":{width:0}},"& .MuiOutlinedInput-root":{"&&":{borderRadius:"3px"}},"& .MuiInputBase-input":{color:"#333333",fontFamily:"Rubik",fontSize:14,borderRadius:"3px",padding:"9px",Width:"170px","&::placeholder":{opacity:1,color:"#717171",fontFamily:"Rubik",fontSize:14}}};const yv=function(e){var t=e.id,n=void 0===t?"default_id":t,r=e.label,o=e.value,i=e.handleDateChange,a=e.disabled,l=e.error,c=e.helperText,u=e.required,d=void 0!==u&&u,p=e.containerSx,f=void 0===p?{}:p,h=e.textFieldSx,m=void 0===h?{}:h,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pv);return a?(0,s.jsx)(Ld,hv(hv({required:d,label:r,id:n,size:"small"},g),{},{value:o?Yb().utc(o).format("MM/DD/YYYY"):"-"})):(null==f&&(f={}),null==m&&(m={}),(0,s.jsx)(Of,{dateAdapter:lv,children:(0,s.jsx)(Sp,{sx:hv({},f),children:(0,s.jsx)(Ub,{value:o?Yb().utc(o):null,onChange:i,disabled:a,onClose:function(){return null==g?void 0:g.onBlur()},slotProps:{textField:function(e){var t=e.InputProps;return t["data-testid"]=n,t["aria-required"]=d,{id:n,label:r,sx:hv(hv({},gv),m),value:o?Yb().utc(o):null,onChange:i,error:l,helperText:c,onBlur:null==g?void 0:g.onBlur}},openPickerButton:{id:"".concat(n,"-open-picker-button"),dataTestId:"".concat(n,"-open-picker-button")}},slots:{textField:bp}})})}))};function bv(e){return Po("MuiDivider",e)}const vv=Do("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xv=Vr("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]}})(ri(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:T(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),wv=Vr("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(ri(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Sv=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:l=(o||"vertical"===a?"div":"hr"),flexItem:c=!1,light:u=!1,role:d=("hr"!==l?"separator":void 0),textAlign:p="center",variant:f="fullWidth",...h}=n,m={...n,absolute:r,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:p,variant:f},g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return b({root:["root",t&&"absolute",l,i&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},bv,r)})(m);return(0,s.jsx)(xv,{as:l,className:y(g.root,i),role:d,ref:t,ownerState:m,"aria-orientation":"separator"!==d||"hr"===l&&"vertical"!==a?void 0:a,...h,children:o?(0,s.jsx)(wv,{className:g.wrapper,ownerState:m,children:o}):null})});Sv&&(Sv.muiSkipListHighlight=!0);const Cv=Sv,kv=({adapter:e,value:t,timezone:n,props:r})=>{if(null===t)return null;const{minTime:o,maxTime:i,minutesStep:s,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,d=e.utils.date(void 0,n),p=Xp(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(o&&p(o,t)):return"minTime";case Boolean(i&&p(t,i)):return"maxTime";case Boolean(u&&e.utils.isAfter(t,d)):return"disableFuture";case Boolean(c&&e.utils.isBefore(t,d)):return"disablePast";case Boolean(a&&a(t,"hours")):return"shouldDisableTime-hours";case Boolean(a&&a(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(a&&a(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}};kv.valueManager=Sf;const Mv=({adapter:e,value:t,timezone:n,props:r})=>{const o=ih({adapter:e,value:t,timezone:n,props:r});return null!==o?o:kv({adapter:e,value:t,timezone:n,props:r})};Mv.valueManager=Sf;const Ov=e=>{const t=(e=>{const t=jf(),n=Af(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r,disableIgnoringDatePartForTimeValidation:Boolean(e.minDateTime||e.maxDateTime),minDate:$p(t,e.minDateTime??e.minDate,n.minDate),maxDate:$p(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})})(e),{forwardedProps:n,internalProps:r}=Hm(t,"date-time");return Vm({forwardedProps:n,internalProps:r,valueManager:Sf,fieldValueManager:Cf,validator:Mv,valueType:"date-time"})},Tv=["slots","slotProps","InputProps","inputProps"],Pv=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiDateTimeField"}),{slots:r,slotProps:o,InputProps:i,inputProps:a}=n,l=so(n,Tv),c=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Bg:wd),d=pa({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:t}});d.inputProps=z({},a,d.inputProps),d.InputProps=z({},i,d.InputProps);const p=Ov(d),f=Ug(p),h=Km(z({},f,{slots:r,slotProps:o}));return(0,s.jsx)(u,z({},h))});function Dv(e){return Po("MuiTab",e)}const Ev=Do("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),jv=Vr(Wo,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${L(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Ev.iconWrapper}`]:t.iconWrapper},{[`& .${Ev.icon}`]:t.icon}]}})(ri(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${Ev.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${Ev.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${Ev.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${Ev.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ev.selected}`]:{opacity:1},[`&.${Ev.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ev.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ev.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ev.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ev.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Av=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:f,onClick:h,onFocus:m,selected:g,selectionFollowsFocus:v,textColor:x="inherit",value:w,wrapped:S=!1,...C}=n,k={...n,disabled:o,disableFocusRipple:a,selected:g,icon:!!c,iconPosition:u,label:!!p,fullWidth:l,textColor:x,wrapped:S},M=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e;return b({root:["root",i&&s&&"labelIcon",`textColor${L(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},Dv,t)})(k),O=c&&p&&i.isValidElement(c)?i.cloneElement(c,{className:y(M.icon,c.props.className)}):c;return(0,s.jsxs)(jv,{focusRipple:!a,className:y(M.root,r),ref:t,role:"tab","aria-selected":g,disabled:o,onClick:e=>{!g&&f&&f(e,w),h&&h(e)},onFocus:e=>{v&&!g&&f&&f(e,w),m&&m(e)},ownerState:k,tabIndex:g?0:-1,...C,children:["top"===u||"start"===u?(0,s.jsxs)(i.Fragment,{children:[O,p]}):(0,s.jsxs)(i.Fragment,{children:[p,O]}),d]})}),Rv=Av;function Nv(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Iv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const Lv=li((0,s.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),$v=li((0,s.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function Fv(e){return Po("MuiTabScrollButton",e)}const zv=Do("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_v=Vr(Wo,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${zv.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Bv=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiTabScrollButton"}),{className:r,slots:o={},slotProps:i={},direction:a,orientation:l,disabled:c,...u}=n,d=Yi(),p={isRtl:d,...n},f=(e=>{const{classes:t,orientation:n,disabled:r}=e;return b({root:["root",n,r&&"disabled"]},Fv,t)})(p),h=o.StartScrollButtonIcon??Lv,m=o.EndScrollButtonIcon??$v,g=pa({elementType:h,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),v=pa({elementType:m,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return(0,s.jsx)(_v,{component:"div",className:y(f.root,r),ref:t,role:null,ownerState:p,tabIndex:null,...u,style:{...u.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:"left"===a?(0,s.jsx)(h,{...g}):(0,s.jsx)(m,{...v})})});function Vv(e){return Po("MuiTabs",e)}const Wv=Do("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Hv=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Uv=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,qv=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},Yv=Vr("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wv.scrollButtons}`]:t.scrollButtons},{[`& .${Wv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(ri(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Wv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Kv=Vr("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Gv=Vr("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Xv=Vr("span",{name:"MuiTabs",slot:"Indicator"})(ri(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),Jv=Vr(function(e){const{onChange:t,...n}=e,r=i.useRef(),o=i.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Gl(()=>{const e=Wc(()=>{const e=r.current;a(),e!==r.current&&t(r.current)}),n=Lc(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{a(),t(r.current)},[t]),(0,s.jsx)("div",{style:Iv,...n,ref:o})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Zv={};const Qv=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiTabs"}),r=Aa(),o=Yi(),{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:p,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:g,orientation:v="horizontal",ScrollButtonComponent:x,scrollButtons:w="auto",selectionFollowsFocus:S,slots:C={},slotProps:k={},TabIndicatorProps:M={},TabScrollButtonProps:O={},textColor:T="primary",value:P,variant:D="standard",visibleScrollbar:E=!1,...j}=n,A="scrollable"===D,R="vertical"===v,N=R?"scrollTop":"scrollLeft",I=R?"top":"left",L=R?"bottom":"right",$=R?"clientHeight":"clientWidth",F=R?"height":"width",z={...n,component:f,allowScrollButtonsMobile:h,indicatorColor:m,orientation:v,vertical:R,scrollButtons:w,textColor:T,variant:D,visibleScrollbar:E,fixed:!A,hideScrollbar:A&&!E,scrollableX:A&&!R,scrollableY:A&&R,centered:u&&!A,scrollButtonsHideMobile:!h},_=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return b({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Vv,l)})(z),B=pa({elementType:C.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:z}),V=pa({elementType:C.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:z});const[W,H]=i.useState(!1),[U,q]=i.useState(Zv),[Y,K]=i.useState(!1),[G,X]=i.useState(!1),[J,Z]=i.useState(!1),[Q,ee]=i.useState({overflow:"hidden",scrollbarWidth:0}),te=new Map,ne=i.useRef(null),re=i.useRef(null),oe={slots:C,slotProps:{indicator:M,scrollButton:O,...k}},ie=()=>{const e=ne.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==P){const e=re.current.children;if(e.length>0){const t=e[te.get(P)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},se=no(()=>{const{tabsMeta:e,tabMeta:t}=ie();let n,r=0;R?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=o?"right":"left",t&&e&&(r=(o?-1:1)*(t[n]-e[n]+e.scrollLeft)));const i={[n]:r,[F]:t?t[F]:0};if("number"!=typeof U[n]||"number"!=typeof U[F])q(i);else{const e=Math.abs(U[n]-i[n]),t=Math.abs(U[F]-i[F]);(e>=1||t>=1)&&q(i)}}),ae=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Nv,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void o(new Error("Animation cancelled"));null===a&&(a=r);const u=Math.min(1,(r-a)/s);t[e]=i(u)*(n-l)+l,u>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(N,ne.current,e,{duration:r.transitions.duration.standard}):ne.current[N]=e},le=e=>{let t=ne.current[N];t+=R?e:e*(o?-1:1),ae(t)},ce=()=>{const e=ne.current[$];let t=0;const n=Array.from(re.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[$]>e){0===r&&(t=e);break}t+=o[$]}return t},ue=()=>{le(-1*ce())},de=()=>{le(ce())},[pe,{onChange:fe,...he}]=Jo("scrollbar",{className:y(_.scrollableX,_.hideScrollbar),elementType:Jv,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:z}),me=i.useCallback(e=>{fe?.(e),ee({overflow:null,scrollbarWidth:e})},[fe]),[ge,ye]=Jo("scrollButtons",{className:y(_.scrollButtons,O.className),elementType:Bv,externalForwardedProps:oe,ownerState:z,additionalProps:{orientation:v,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:B,endScrollButtonIcon:V}}}),be=no(e=>{const{tabsMeta:t,tabMeta:n}=ie();if(n&&t)if(n[I]<t[I]){const r=t[N]+(n[I]-t[I]);ae(r,{animation:e})}else if(n[L]>t[L]){const r=t[N]+(n[L]-t[L]);ae(r,{animation:e})}}),ve=no(()=>{A&&!1!==w&&Z(!J)});i.useEffect(()=>{const e=Wc(()=>{ne.current&&se()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ve()},r=Lc(ne.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(re.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(re.current,{childList:!0})),()=>{e.clear(),r.removeEventListener("resize",e),o?.disconnect(),t?.disconnect()}},[se,ve]),i.useEffect(()=>{const e=Array.from(re.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&A&&!1!==w){const n=e[0],r=e[t-1],o={root:ne.current,threshold:.99},i=e=>{K(!e[0].isIntersecting)},s=new IntersectionObserver(i,o);s.observe(n);const a=e=>{X(!e[0].isIntersecting)},l=new IntersectionObserver(a,o);return l.observe(r),()=>{s.disconnect(),l.disconnect()}}},[A,w,J,d?.length]),i.useEffect(()=>{H(!0)},[]),i.useEffect(()=>{se()}),i.useEffect(()=>{be(Zv!==U)},[be,U]),i.useImperativeHandle(c,()=>({updateIndicator:se,updateScrollButtons:ve}),[se,ve]);const[xe,we]=Jo("indicator",{className:y(_.indicator,M.className),elementType:Xv,externalForwardedProps:oe,ownerState:z,additionalProps:{style:U}}),Se=(0,s.jsx)(xe,{...we});let Ce=0;const ke=i.Children.map(d,e=>{if(!i.isValidElement(e))return null;const t=void 0===e.props.value?Ce:e.props.value;te.set(t,Ce);const n=t===P;return Ce+=1,i.cloneElement(e,{fullWidth:"fullWidth"===D,indicator:n&&!W&&Se,selected:n,selectionFollowsFocus:S,onChange:g,textColor:T,value:t,...1!==Ce||!1!==P||e.props.tabIndex?{}:{tabIndex:0}})}),Me=(()=>{const e={};e.scrollbarSizeListener=A?(0,s.jsx)(pe,{...he,onChange:me}):null;const t=A&&("auto"===w&&(Y||G)||!0===w);return e.scrollButtonStart=t?(0,s.jsx)(ge,{direction:o?"right":"left",onClick:ue,disabled:!Y,...ye}):null,e.scrollButtonEnd=t?(0,s.jsx)(ge,{direction:o?"left":"right",onClick:de,disabled:!G,...ye}):null,e})(),[Oe,Te]=Jo("root",{ref:t,className:y(_.root,p),elementType:Yv,externalForwardedProps:{...oe,...j,component:f},ownerState:z}),[Pe,De]=Jo("scroller",{ref:ne,className:_.scroller,elementType:Kv,externalForwardedProps:oe,ownerState:z,additionalProps:{style:{overflow:Q.overflow,[R?"margin"+(o?"Left":"Right"):"marginBottom"]:E?void 0:-Q.scrollbarWidth}}}),[Ee,je]=Jo("list",{ref:re,className:y(_.list,_.flexContainer),elementType:Gv,externalForwardedProps:oe,ownerState:z,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=re.current,n=Dc(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===v?"ArrowLeft":"ArrowUp",i="horizontal"===v?"ArrowRight":"ArrowDown";switch("horizontal"===v&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),qv(t,n,Uv);break;case i:e.preventDefault(),qv(t,n,Hv);break;case"Home":e.preventDefault(),qv(t,null,Hv);break;case"End":e.preventDefault(),qv(t,null,Uv)}})(t),e.onKeyDown?.(t)}})});return(0,s.jsxs)(Oe,{...Te,children:[Me.scrollButtonStart,Me.scrollbarSizeListener,(0,s.jsxs)(Pe,{...De,children:[(0,s.jsx)(Ee,{"aria-label":a,"aria-labelledby":l,"aria-orientation":"vertical"===v?"vertical":null,role:"tablist",...je,children:ke}),W&&Se]}),Me.scrollButtonEnd]})}),ex=Qv;function tx(e){return Po("MuiDateTimePickerTabs",e)}Do("MuiDateTimePickerTabs",["root"]);const nx=e=>Vp(e)?"date":"time",rx=Vr(ex,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Wv.indicator}`]:{bottom:"auto",top:0}}})),ox=function(e){const t=Dp({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:n=(0,s.jsx)(Em,{}),onViewChange:r,timeIcon:o=(0,s.jsx)(jm,{}),view:a,hidden:l="undefined"==typeof window||window.innerHeight<667,className:c,sx:u}=t,d=Yf(),p=(e=>{const{classes:t}=e;return b({root:["root"]},tx,t)})(t);return l?null:(0,s.jsxs)(rx,{ownerState:t,variant:"fullWidth",value:nx(a),onChange:(e,t)=>{r("date"===t?"day":"hours")},className:y(c,p.root),sx:u,children:[(0,s.jsx)(Rv,{value:"date","aria-label":d.dateTableLabel,icon:(0,s.jsx)(i.Fragment,{children:n})}),(0,s.jsx)(Rv,{value:"time","aria-label":d.timeTableLabel,icon:(0,s.jsx)(i.Fragment,{children:o})})]})};function ix(e){return Po("MuiPickersToolbarText",e)}const sx=Do("MuiPickersToolbarText",["root","selected"]),ax=["className","selected","value"],lx=Vr(_f,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${sx.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${sx.selected}`]:{color:(e.vars||e).palette.text.primary}})),cx=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersToolbarText"}),{className:r,value:o}=n,i=so(n,ax),a=(e=>{const{classes:t,selected:n}=e;return b({root:["root",n&&"selected"]},ix,t)})(n);return(0,s.jsx)(lx,z({ref:t,className:y(a.root,r),component:"span"},i,{children:o}))}),ux=["align","className","selected","typographyClassName","value","variant","width"],dx=Vr(Gh,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),px=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:o,selected:i,typographyClassName:a,value:l,variant:c,width:u}=n,d=so(n,ux),p=(e=>{const{classes:t}=e;return b({root:["root"]},Bf,t)})(n);return(0,s.jsx)(dx,z({variant:"text",ref:t,className:y(p.root,o)},u?{sx:{width:u}}:{},d,{children:(0,s.jsx)(cx,{align:r,className:a,variant:c,value:l,selected:i})}))});function fx(e){return Po("MuiDateTimePickerToolbar",e)}const hx=Do("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),mx=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],gx=Vr(qf,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${Vf.content} .${sx.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),yx=Vr("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),bx=Vr("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&"desktop"!==t,style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&"desktop"!==t&&n,style:{flexDirection:"column-reverse"}}]}),vx=Vr("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),xx=Vr(cx,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),wx=Vr("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${hx.ampmLabel}`]:t.ampmLabel},{[`&.${hx.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${hx.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function Sx(e){const t=Dp({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:l,isLandscape:c,onViewChange:u,toolbarFormat:d,toolbarPlaceholder:p="––",views:f,disabled:h,readOnly:m,toolbarVariant:g="mobile",toolbarTitle:v,className:x}=t,w=so(t,mx),S=z({},t,{isRtl:Yi()}),C=jf(),{meridiemMode:k,handleMeridiemChange:M}=ib(o,n,a),O=Boolean(n&&!r),T="desktop"===g,P=Yf(),D=(e=>{const{classes:t,isLandscape:n,isRtl:r}=e;return b({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},fx,t)})(S),E=v??P.dateTimePickerToolbarTitle,j=i.useMemo(()=>o?d?C.formatByString(o,d):C.format(o,"shortDate"):p,[o,d,p,C]);return(0,s.jsxs)(gx,z({isLandscape:c,className:y(D.root,x),toolbarTitle:E},w,{ownerState:S,children:[(0,s.jsxs)(yx,{className:D.dateContainer,ownerState:S,children:[f.includes("year")&&(0,s.jsx)(px,{tabIndex:-1,variant:"subtitle1",onClick:()=>u("year"),selected:"year"===l,value:o?C.format(o,"year"):"–"}),f.includes("day")&&(0,s.jsx)(px,{tabIndex:-1,variant:T?"h5":"h4",onClick:()=>u("day"),selected:"day"===l,value:j})]}),(0,s.jsxs)(bx,{className:D.timeContainer,ownerState:S,children:[(0,s.jsxs)(vx,{className:D.timeDigitsContainer,ownerState:S,children:[f.includes("hours")&&(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(px,{variant:T?"h5":"h3",width:T&&!c?48:void 0,onClick:()=>u("hours"),selected:"hours"===l,value:o?(A=o,n?C.format(A,"hours12h"):C.format(A,"hours24h")):"--"}),(0,s.jsx)(xx,{variant:T?"h5":"h3",value:":",className:D.separator,ownerState:S}),(0,s.jsx)(px,{variant:T?"h5":"h3",width:T&&!c?48:void 0,onClick:()=>u("minutes"),selected:"minutes"===l||!f.includes("minutes")&&"hours"===l,value:o?C.format(o,"minutes"):"--",disabled:!f.includes("minutes")})]}),f.includes("seconds")&&(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(xx,{variant:T?"h5":"h3",value:":",className:D.separator,ownerState:S}),(0,s.jsx)(px,{variant:T?"h5":"h3",width:T&&!c?48:void 0,onClick:()=>u("seconds"),selected:"seconds"===l,value:o?C.format(o,"seconds"):"--"})]})]}),O&&!T&&(0,s.jsxs)(wx,{className:D.ampmSelection,ownerState:S,children:[(0,s.jsx)(px,{variant:"subtitle2",selected:"am"===k,typographyClassName:D.ampmLabel,value:_p(C,"am"),onClick:m?void 0:()=>M("am"),disabled:h}),(0,s.jsx)(px,{variant:"subtitle2",selected:"pm"===k,typographyClassName:D.ampmLabel,value:_p(C,"pm"),onClick:m?void 0:()=>M("pm"),disabled:h})]}),n&&T&&(0,s.jsx)(px,{variant:"h5",onClick:()=>u("meridiem"),selected:"meridiem"===l,value:o&&k?_p(C,k):"--",width:48})]})]}));var A}function Cx(e,t){const n=jf(),r=Af(),o=Dp({props:e,name:t}),s=o.ampm??n.is12HourCycleInCurrentLocale(),a=i.useMemo(()=>null==o.localeText?.toolbarTitle?o.localeText:z({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return z({},o,Np({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:s,localeText:a,orientation:o.orientation??"portrait",disableIgnoringDatePartForTimeValidation:o.disableIgnoringDatePartForTimeValidation??Boolean(o.minDateTime||o.maxDateTime||o.disablePast||o.disableFuture),disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:$p(n,o.minDateTime??o.minDate,r.minDate),maxDate:$p(n,o.maxDateTime??o.maxDate,r.maxDate),minTime:o.minDateTime??o.minTime,maxTime:o.maxDateTime??o.maxTime,slots:z({toolbar:Sx,tabs:ox},o.slots),slotProps:z({},o.slotProps,{toolbar:z({ampm:s},o.slotProps?.toolbar)})})}const kx=["views","format"],Mx=(e,t,n)=>{let{views:r,format:o}=t,i=so(t,kx);if(o)return o;const s=[],a=[];if(r.forEach(e=>{qp(e)?a.push(e):Vp(e)&&s.push(e)}),0===a.length)return Wp(e,z({views:s},i),!1);if(0===s.length)return Jp(e,z({views:a},i));const l=Jp(e,z({views:a},i));return`${n?e.formats.keyboardDate:Wp(e,z({views:s},i),!1)} ${l}`},Ox=(e,t,n)=>n?t.filter(e=>!Yp(e)||"hours"===e):e?[...t,"meridiem"]:t;function Tx({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,i=z({hours:1,minutes:5,seconds:5},n),s=((e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t)(i,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:i,shouldRenderTimeInASingleColumn:s,views:Ox(t,r,s)}}function Px(e){return Po("MuiTimeClock",e)}Do("MuiTimeClock",["root","arrowSwitcher"]);const Dx=220,Ex=36,jx={x:110,y:110},Ax=jx.x-jx.x,Rx=0-jx.y,Nx=(e,t,n)=>{const r=t-jx.x,o=n-jx.y,i=Math.atan2(Ax,Rx)-Math.atan2(r,o);let s=i*(180/Math.PI);s=Math.round(s/e)*e,s%=360;const a=r**2+o**2;return{value:Math.floor(s/e)||0,distance:Math.sqrt(a)}};function Ix(e){return Po("MuiClockPointer",e)}Do("MuiClockPointer",["root","thumb"]);const Lx=["className","hasSelected","isInner","type","viewValue"],$x=Vr("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),Fx=Vr("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function zx(e){const t=Dp({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,l=so(t,Lx),c=i.useRef(o);i.useEffect(()=>{c.current=o},[o]);const u=z({},t,{shouldAnimate:c.current!==o}),d=(e=>{const{classes:t}=e;return b({root:["root"],thumb:["thumb"]},Ix,t)})(u);return(0,s.jsx)($x,z({style:(()=>{let e=360/("hours"===o?12:60)*a;return"hours"===o&&a>12&&(e-=360),{height:Math.round((r?.26:.4)*Dx),transform:`rotateZ(${e}deg)`}})(),className:y(d.root,n),ownerState:u},l,{children:(0,s.jsx)(Fx,{ownerState:u,className:d.thumb})}))}function _x(e){return Po("MuiClock",e)}Do("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const Bx=Vr("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Vx=Vr("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Wx=Vr("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Hx=Vr("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Ux=Vr("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),qx=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:Ex,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),Yx=Vr(el,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>z({},qx(e,"am"),{position:"absolute",left:8})),Kx=Vr(el,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>z({},qx(e,"pm"),{position:"absolute",right:8})),Gx=Vr(_f,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Xx(e){const t=Dp({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:l,handleMeridiemChange:c,isTimeDisabled:u,meridiemMode:d,minutesStep:p=1,onChange:f,selectedId:h,type:m,viewValue:g,viewRange:[v,x],disabled:w=!1,readOnly:S,className:C}=t,k=t,M=jf(),O=Yf(),T=i.useRef(!1),P=(e=>{const{classes:t,meridiemMode:n}=e;return b({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton","am"===n&&"selected"],pmButton:["pmButton","pm"===n&&"selected"],meridiemText:["meridiemText"]},_x,t)})(k),D=u(g,m),E=!n&&"hours"===m&&(g<1||g>12),j=(e,t)=>{w||S||u(e,m)||f(e,t)},A=(e,t)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const i="seconds"===m||"minutes"===m?((e,t,n=1)=>{const r=6*n;let{value:o}=Nx(r,e,t);return o=o*n%60,o})(r,o,p):((e,t,n)=>{const{value:r,distance:o}=Nx(30,e,t);let i=r||12;return n?i%=12:o<74&&(i+=12,i%=24),i})(r,o,Boolean(n));j(i,t)},R=e=>{T.current=!0,A(e,"shallow")},N=i.useMemo(()=>"hours"===m||g%5==0,[m,g]),I="minutes"===m?p:1,L=i.useRef(null);eo(()=>{o&&L.current.focus()},[o]);const $=e=>Math.max(v,Math.min(x,e)),F=e=>(e+(x+1))%(x+1);return(0,s.jsxs)(Bx,{className:y(P.root,C),children:[(0,s.jsxs)(Vx,{className:P.clock,children:[(0,s.jsx)(Hx,{onTouchMove:R,onTouchStart:R,onTouchEnd:e=>{T.current&&(A(e,"finish"),T.current=!1),e.preventDefault()},onMouseUp:e=>{T.current&&(T.current=!1),A(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&A(e.nativeEvent,"shallow")},ownerState:{disabled:w},className:P.squareMask}),!D&&(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(Ux,{className:P.pin}),null!=l&&(0,s.jsx)(zx,{type:m,viewValue:g,isInner:E,hasSelected:N})]}),(0,s.jsx)(Wx,{"aria-activedescendant":h,"aria-label":O.clockLabelText(m,l,M,null==l?null:M.format(l,"fullTime")),ref:L,role:"listbox",onKeyDown:e=>{if(!T.current)switch(e.key){case"Home":j(v,"partial"),e.preventDefault();break;case"End":j(x,"partial"),e.preventDefault();break;case"ArrowUp":j(F(g+I),"partial"),e.preventDefault();break;case"ArrowDown":j(F(g-I),"partial"),e.preventDefault();break;case"PageUp":j($(g+5),"partial"),e.preventDefault();break;case"PageDown":j($(g-5),"partial"),e.preventDefault();break;case"Enter":case" ":j(g,"finish"),e.preventDefault()}},tabIndex:0,className:P.wrapper,children:a})]}),n&&r&&(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(Yx,{onClick:S?void 0:()=>c("am"),disabled:w||null===d,ownerState:k,className:P.amButton,title:_p(M,"am"),children:(0,s.jsx)(Gx,{variant:"caption",className:P.meridiemText,children:_p(M,"am")})}),(0,s.jsx)(Kx,{disabled:w||null===d,onClick:S?void 0:()=>c("pm"),ownerState:k,className:P.pmButton,title:_p(M,"pm"),children:(0,s.jsx)(Gx,{variant:"caption",className:P.meridiemText,children:_p(M,"pm")})})]})]})}function Jx(e){return Po("MuiClockNumber",e)}const Zx=Do("MuiClockNumber",["root","selected","disabled"]),Qx=["className","disabled","index","inner","label","selected"],ew=Vr("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Zx.disabled}`]:t.disabled},{[`&.${Zx.selected}`]:t.selected}]})(({theme:e})=>({height:Ex,width:Ex,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Zx.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Zx.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:z({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function tw(e){const t=Dp({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:l}=t,c=so(t,Qx),u=t,d=(e=>{const{classes:t,selected:n,disabled:r}=e;return b({root:["root",n&&"selected",r&&"disabled"]},Jx,t)})(u),p=o%12/12*Math.PI*2-Math.PI/2,f=91*(i?.65:1),h=Math.round(Math.cos(p)*f),m=Math.round(Math.sin(p)*f);return(0,s.jsx)(ew,z({className:y(d.root,n),"aria-disabled":!!r||void 0,"aria-selected":!!l||void 0,role:"option",style:{transform:`translate(${h}px, ${m+92}px`},ownerState:u},c,{children:a}))}const nw=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,l=[],c=e?12:23,u=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=c;t+=1){let a=t.toString();0===t&&(a="00");const c=!e&&(0===t||t>12);a=i.formatNumber(a);const d=u(t);l.push((0,s.jsx)(tw,{id:d?o:void 0,index:t,inner:c,selected:d,disabled:r(t),label:a,"aria-label":n(a)},t))}return l},rw=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([e,i],a)=>{const l=e===t;return(0,s.jsx)(tw,{label:i,id:l?o:void 0,index:a+1,inner:!1,disabled:n(e),selected:l,"aria-label":r(i)},e)})},ow=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const s=i.useMemo(()=>Sf.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Zp.day,timezone:o,getTodayDate:()=>zp(n,o,"date")}),[]);return e??s},iw=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],sw=Vr(gb,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),aw=Vr(ob,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),lw=["hours","minutes"],cw=i.forwardRef(function(e,t){const n=jf(),r=Dp({props:e,name:"MuiTimeClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:f,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:m,minTime:g,disableFuture:v,disablePast:x,minutesStep:w=1,shouldDisableTime:S,showViewSwitcher:C,onChange:k,view:M,views:O=lw,openTo:T,onViewChange:P,focusedView:D,onFocusedViewChange:E,className:j,disabled:A,readOnly:R,timezone:N}=r,I=so(r,iw),{value:L,handleValueChange:$,timezone:F}=Dh({name:"TimeClock",timezone:N,value:d,defaultValue:p,referenceDate:f,onChange:k,valueManager:Sf}),_=ow({value:L,referenceDate:f,utils:n,props:r,timezone:F}),B=Yf(),V=Rf(F),{view:W,setView:H,previousView:U,nextView:q,setValueAndGoToNextView:Y}=jh({view:M,views:O,openTo:T,onViewChange:P,onChange:$,focusedView:D,onFocusedViewChange:E}),{meridiemMode:K,handleMeridiemChange:G}=ib(_,o,Y),X=i.useCallback((e,t)=>{const r=Xp(h,n),i="hours"===t||"minutes"===t&&O.includes("seconds"),s=({start:e,end:t})=>(!g||!r(g,t))&&((!m||!r(e,m))&&((!v||!r(e,V))&&(!x||!r(V,i?t:e)))),a=(e,r=1)=>{if(e%r!==0)return!1;if(S)switch(t){case"hours":return!S(n.setHours(_,e),"hours");case"minutes":return!S(n.setMinutes(_,e),"minutes");case"seconds":return!S(n.setSeconds(_,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=Kp(e,K,o),r=n.setHours(_,t);if(n.getHours(r)!==t)return!0;return!s({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!a(t)}case"minutes":{const t=n.setMinutes(_,e);return!s({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!a(e,w)}case"seconds":{const t=n.setSeconds(_,e);return!s({start:t,end:t})||!a(e)}default:throw new Error("not supported")}},[o,_,h,m,K,g,w,S,n,v,x,V,O]),J=Fi(),Z=i.useMemo(()=>{switch(W){case"hours":{const e=(e,t)=>{const r=Kp(e,K,o);Y(n.setHours(_,r),t,"hours")},t=n.getHours(_);let r;return r=o?t>12?[12,23]:[0,11]:[0,23],{onChange:e,viewValue:t,children:nw({value:L,utils:n,ampm:o,onChange:e,getClockNumberText:B.hoursClockNumberText,isDisabled:e=>A||X(e,"hours"),selectedId:J}),viewRange:r}}case"minutes":{const e=n.getMinutes(_),t=(e,t)=>{Y(n.setMinutes(_,e),t,"minutes")};return{viewValue:e,onChange:t,children:rw({utils:n,value:e,onChange:t,getClockNumberText:B.minutesClockNumberText,isDisabled:e=>A||X(e,"minutes"),selectedId:J}),viewRange:[0,59]}}case"seconds":{const e=n.getSeconds(_),t=(e,t)=>{Y(n.setSeconds(_,e),t,"seconds")};return{viewValue:e,onChange:t,children:rw({utils:n,value:e,onChange:t,getClockNumberText:B.secondsClockNumberText,isDisabled:e=>A||X(e,"seconds"),selectedId:J}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[W,n,L,o,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,K,Y,_,X,J,A]),Q=r,ee=(e=>{const{classes:t}=e;return b({root:["root"],arrowSwitcher:["arrowSwitcher"]},Px,t)})(Q);return(0,s.jsxs)(sw,z({ref:t,className:y(ee.root,j),ownerState:Q},I,{children:[(0,s.jsx)(Xx,z({autoFocus:l??!!D,ampmInClock:a&&O.includes("hours"),value:L,type:W,ampm:o,minutesStep:w,isTimeDisabled:X,meridiemMode:K,handleMeridiemChange:G,selectedId:J,disabled:A,readOnly:R},Z)),C&&(0,s.jsx)(aw,{className:ee.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>H(U),isPreviousDisabled:!U,previousLabel:B.openPreviousView,onGoToNext:()=>H(q),isNextDisabled:!q,nextLabel:B.openNextView,ownerState:Q})]}))});const uw=Do("MuiListItemIcon",["root","alignItemsFlexStart"]);const dw=Do("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function pw(e){return Po("MuiMenuItem",e)}const fw=Do("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),hw=Vr(Wo,{shouldForwardProp:e=>F(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]}})(ri(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:T(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:T(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:T(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})`:T(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${vv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${vv.inset}`]:{marginLeft:52},[`& .${dw.root}`]:{marginTop:0,marginBottom:0},[`& .${dw.inset}`]:{paddingLeft:36},[`& .${uw.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${uw.root} svg`]:{fontSize:"1.25rem"}}}]}))),mw=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:f,...h}=n,m=i.useContext(Ec),g=i.useMemo(()=>({dense:a||m.dense||!1,disableGutters:c}),[m.dense,a,c]),v=i.useRef(null);Gl(()=>{r&&v.current&&v.current.focus()},[r]);const x={...n,dense:g.dense,divider:l,disableGutters:c},w=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,a=b({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},pw,s);return{...s,...a}})(n),S=Qr(v,t);let C;return n.disabled||(C=void 0!==p?p:-1),(0,s.jsx)(Ec.Provider,{value:g,children:(0,s.jsx)(hw,{ref:S,role:d,tabIndex:C,component:o,focusVisibleClassName:y(w.focusVisible,u),className:y(w.root,f),...h,ownerState:x,classes:w})})});function gw(e){return Po("MuiDigitalClock",e)}const yw=Do("MuiDigitalClock",["root","list","item"]),bw=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],vw=Vr(gb,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:232,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),xw=Vr(Vc,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),ww=Vr(mw,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:T(e.palette.primary.main,e.palette.action.focusOpacity)}})),Sw=i.forwardRef(function(e,t){const n=jf(),r=i.useRef(null),o=Zr(t,r),a=i.useRef(null),l=Dp({props:e,name:"MuiDigitalClock"}),{ampm:c=n.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,slots:p,slotProps:f,value:h,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:w,disableFuture:S,disablePast:C,minutesStep:k=1,shouldDisableTime:M,onChange:O,view:T,openTo:P,onViewChange:D,focusedView:E,onFocusedViewChange:j,className:A,disabled:R,readOnly:N,views:I=["hours"],skipDisabled:L=!1,timezone:$}=l,F=so(l,bw),{value:_,handleValueChange:B,timezone:V}=Dh({name:"DigitalClock",timezone:$,value:h,defaultValue:m,referenceDate:g,onChange:O,valueManager:Sf}),W=Yf(),H=Rf(V),U=i.useMemo(()=>z({},l,{alreadyRendered:!!r.current}),[l]),q=(e=>{const{classes:t}=e;return b({root:["root"],list:["list"],item:["item"]},gw,t)})(U),Y=p?.digitalClockItem??ww,K=pa({elementType:Y,externalSlotProps:f?.digitalClockItem,ownerState:{},className:q.item}),G=ow({value:_,referenceDate:g,utils:n,props:l,timezone:V}),X=to(e=>B(e,"finish","hours")),{setValueAndGoToNextView:J}=jh({view:T,views:I,openTo:P,onViewChange:D,onChange:X,focusedView:E,onFocusedViewChange:j}),Z=to(e=>{J(e,"finish")});i.useEffect(()=>{if(null===r.current)return;const e=r.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;(d||E)&&e.focus(),r.current.scrollTop=t-4});const Q=i.useCallback(e=>{const t=Xp(v,n);return!!(w&&t(w,e)||x&&t(e,x)||S&&t(e,H)||C&&t(H,e))||!!(n.getMinutes(e)%k!==0||M&&M(e,"hours"))},[v,n,w,x,S,H,C,k,M]),ee=i.useMemo(()=>{const e=[];let t=n.startOfDay(G);for(;n.isSameDay(G,t);)e.push(t),t=n.addMinutes(t,u);return e},[G,u,n]),te=ee.findIndex(e=>n.isEqual(e,G));return(0,s.jsx)(vw,z({ref:o,className:y(q.root,A),ownerState:U},F,{children:(0,s.jsx)(xw,{ref:a,role:"listbox","aria-label":W.timePickerToolbarTitle,className:q.list,onKeyDown:e=>{switch(e.key){case"PageUp":{const t=mh(a.current)-5,n=a.current.children[Math.max(0,t)];n&&n.focus(),e.preventDefault();break}case"PageDown":{const t=mh(a.current)+5,n=a.current.children,r=n[Math.min(n.length-1,t)];r&&r.focus(),e.preventDefault();break}}},children:ee.map((e,t)=>{if(L&&Q(e))return null;const r=n.isEqual(e,_),o=n.format(e,c?"fullTime12h":"fullTime24h"),i=te===t||-1===te&&0===t?0:-1;return(0,s.jsx)(Y,z({onClick:()=>!N&&Z(e),selected:r,disabled:R||Q(e),disableRipple:N,role:"option","aria-disabled":N,"aria-selected":r,tabIndex:i},K,{children:o}),`${e.valueOf()}-${o}`)})})}))});function Cw(e){return Po("MuiMultiSectionDigitalClock",e)}const kw=Do("MuiMultiSectionDigitalClock",["root"]);function Mw(e){return Po("MuiMultiSectionDigitalClockSection",e)}const Ow=Do("MuiMultiSectionDigitalClockSection",["root","item"]),Tw=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Pw=Vr(Vc,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:232,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),Dw=Vr(mw,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:48,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:T(e.palette.primary.main,e.palette.action.focusOpacity)}})),Ew=i.forwardRef(function(e,t){const n=i.useRef(null),r=Zr(t,n),o=i.useRef(null),a=Dp({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:d,readOnly:p,items:f,active:h,slots:m,slotProps:g,skipDisabled:v}=a,x=so(a,Tw),w=i.useMemo(()=>z({},a,{alreadyRendered:!!n.current}),[a]),S=(e=>{const{classes:t}=e;return b({root:["root"],item:["item"]},Mw,t)})(w),C=m?.digitalClockSectionItem??Dw;i.useEffect(()=>{if(null===n.current)return;const e=n.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&l&&e&&e.focus(),!e||o.current===e)return;o.current=e;const t=e.offsetTop;n.current.scrollTop=t-4});const k=f.findIndex(e=>e.isFocused(e.value));return(0,s.jsx)(Pw,z({ref:r,className:y(S.root,u),ownerState:w,autoFocusItem:l&&h,role:"listbox",onKeyDown:e=>{switch(e.key){case"PageUp":{const t=mh(n.current)-5,r=n.current.children[Math.max(0,t)];r&&r.focus(),e.preventDefault();break}case"PageDown":{const t=mh(n.current)+5,r=n.current.children,o=r[Math.min(r.length-1,t)];o&&o.focus(),e.preventDefault();break}}}},x,{children:f.map((e,t)=>{const n=e.isDisabled?.(e.value),r=d||n;if(v&&r)return null;const o=e.isSelected(e.value),i=k===t||-1===k&&0===t?0:-1;return(0,s.jsx)(C,z({onClick:()=>!p&&c(e.value),selected:o,disabled:r,disableRipple:p,role:"option","aria-disabled":p||r||void 0,"aria-label":e.ariaLabel,"aria-selected":o,tabIndex:i,className:S.item},g?.digitalClockSectionItem,{children:e.label}),e.label)})}))}),jw=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:s,valueOrReferenceDate:a})=>{const l=t?n.getHours(t):null,c=[],u=(e,t)=>{const n=t??l;return null!==n&&(r?12===e?12===n||0===n:n===e||n-12===e:n===e)},d=e=>u(e,n.getHours(a)),p=r?11:23;for(let t=0;t<=p;t+=s){let s=n.format(n.setHours(e,t),r?"hours12h":"hours24h");const a=i(parseInt(s,10).toString());s=n.formatNumber(s),c.push({value:t,label:s,isSelected:u,isDisabled:o,isFocused:d,ariaLabel:a})}return c},Aw=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:i,hasValue:s=!0})=>{const a=t=>null!==e&&(s&&e===t),l=t=>e===t;return[...Array.from({length:Math.ceil(60/r)},(e,s)=>{const c=r*s;return{value:c,label:t.formatNumber(o(c)),isDisabled:n,isSelected:a,isFocused:l,ariaLabel:i(c.toString())}})]},Rw=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Nw=Vr(gb,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Iw=i.forwardRef(function(e,t){const n=jf(),r=Yi(),o=Dp({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:a=n.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:p,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:g,minTime:v,disableFuture:x,disablePast:w,minutesStep:S=1,shouldDisableTime:C,onChange:k,view:M,views:O=["hours","minutes"],openTo:T,onViewChange:P,focusedView:D,onFocusedViewChange:E,className:j,disabled:A,readOnly:R,skipDisabled:N=!1,timezone:I}=o,L=so(o,Rw),{value:$,handleValueChange:F,timezone:_}=Dh({name:"MultiSectionDigitalClock",timezone:I,value:p,defaultValue:f,referenceDate:h,onChange:k,valueManager:Sf}),B=Yf(),V=Rf(_),W=i.useMemo(()=>z({hours:1,minutes:5,seconds:5},l),[l]),H=ow({value:$,referenceDate:h,utils:n,props:o,timezone:_}),U=to((e,t,n)=>F(e,t,n)),q=i.useMemo(()=>a&&O.includes("hours")?O.includes("meridiem")?O:[...O,"meridiem"]:O,[a,O]),{view:Y,setValueAndGoToNextView:K,focusedView:G}=jh({view:M,views:q,openTo:T,onViewChange:P,onChange:U,focusedView:D,onFocusedViewChange:E}),X=to(e=>{K(e,"finish","meridiem")}),{meridiemMode:J,handleMeridiemChange:Z}=ib(H,a,X,"finish"),Q=i.useCallback((e,t)=>{const r=Xp(m,n),o="hours"===t||"minutes"===t&&q.includes("seconds"),i=({start:e,end:t})=>(!v||!r(v,t))&&((!g||!r(e,g))&&((!x||!r(e,V))&&(!w||!r(V,o?t:e)))),s=(e,r=1)=>{if(e%r!==0)return!1;if(C)switch(t){case"hours":return!C(n.setHours(H,e),"hours");case"minutes":return!C(n.setMinutes(H,e),"minutes");case"seconds":return!C(n.setSeconds(H,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=Kp(e,J,a),r=n.setHours(H,t);if(n.getHours(r)!==t)return!0;return!i({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(H,e);return!i({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,S)}case"seconds":{const t=n.setSeconds(H,e);return!i({start:t,end:t})||!s(e)}default:throw new Error("not supported")}},[a,H,m,g,J,v,S,C,n,x,w,V,q]),ee=i.useCallback(e=>{switch(e){case"hours":return{onChange:e=>{const t=Kp(e,J,a);K(n.setHours(H,t),"finish","hours")},items:jw({now:V,value:$,ampm:a,utils:n,isDisabled:e=>Q(e,"hours"),timeStep:W.hours,resolveAriaLabel:B.hoursClockNumberText,valueOrReferenceDate:H})};case"minutes":return{onChange:e=>{K(n.setMinutes(H,e),"finish","minutes")},items:Aw({value:n.getMinutes(H),utils:n,isDisabled:e=>Q(e,"minutes"),resolveLabel:e=>n.format(n.setMinutes(V,e),"minutes"),timeStep:W.minutes,hasValue:!!$,resolveAriaLabel:B.minutesClockNumberText})};case"seconds":return{onChange:e=>{K(n.setSeconds(H,e),"finish","seconds")},items:Aw({value:n.getSeconds(H),utils:n,isDisabled:e=>Q(e,"seconds"),resolveLabel:e=>n.format(n.setSeconds(V,e),"seconds"),timeStep:W.seconds,hasValue:!!$,resolveAriaLabel:B.secondsClockNumberText})};case"meridiem":{const e=_p(n,"am"),t=_p(n,"pm");return{onChange:Z,items:[{value:"am",label:e,isSelected:()=>!!$&&"am"===J,isFocused:()=>!!H&&"am"===J,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!$&&"pm"===J,isFocused:()=>!!H&&"pm"===J,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}},[V,$,a,n,W.hours,W.minutes,W.seconds,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,J,K,H,Q,Z]),te=i.useMemo(()=>{if(!r)return q;const e=q.filter(e=>"meridiem"!==e);return e.reverse(),q.includes("meridiem")&&e.push("meridiem"),e},[r,q]),ne=i.useMemo(()=>q.reduce((e,t)=>z({},e,{[t]:ee(t)}),{}),[q,ee]),re=o,oe=(e=>{const{classes:t}=e;return b({root:["root"]},Cw,t)})(re);return(0,s.jsx)(Nw,z({ref:t,className:y(oe.root,j),ownerState:re,role:"group"},L,{children:te.map(e=>(0,s.jsx)(Ew,{items:ne[e].items,onChange:ne[e].onChange,active:Y===e,autoFocus:c||G===e,disabled:A,readOnly:R,slots:u,slotProps:d,skipDisabled:N,"aria-label":B.selectViewText(e)},e))}))}),Lw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,ampmInClock:v,slots:x,slotProps:w,readOnly:S,disabled:C,sx:k,autoFocus:M,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:T,timezone:P})=>(0,s.jsx)(cw,{view:e,onViewChange:t,focusedView:n&&qp(n)?n:null,onFocusedViewChange:r,views:o.filter(qp),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,ampmInClock:v,slots:x,slotProps:w,readOnly:S,disabled:C,sx:k,autoFocus:M,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:T,timezone:P}),$w=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:S,sx:C,autoFocus:k,disableIgnoringDatePartForTimeValidation:M,timeSteps:O,skipDisabled:T,timezone:P})=>(0,s.jsx)(Sw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(qp),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:S,sx:C,autoFocus:k,disableIgnoringDatePartForTimeValidation:M,timeStep:O?.minutes,skipDisabled:T,timezone:P}),Fw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:S,sx:C,autoFocus:k,disableIgnoringDatePartForTimeValidation:M,timeSteps:O,skipDisabled:T,timezone:P})=>(0,s.jsx)(Iw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(qp),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:S,sx:C,autoFocus:k,disableIgnoringDatePartForTimeValidation:M,timeSteps:O,skipDisabled:T,timezone:P}),zw=i.forwardRef(function(e,t){const n=Yi(),{toolbar:r,tabs:o,content:i,actionBar:a,shortcuts:l}=mm(e),{sx:c,className:u,isLandscape:d,classes:p}=e,f=a&&(a.props.actions?.length??0)>0,h=z({},e,{isRtl:n});return(0,s.jsxs)(gm,{ref:t,className:y($h.root,p?.root,u),sx:[{[`& .${$h.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${$h.actionBar}`]:{gridRow:5}},...Array.isArray(c)?c:[c]],ownerState:h,children:[d?l:r,d?r:l,(0,s.jsxs)(ym,{className:y($h.contentWrapper,p?.contentWrapper),sx:{display:"grid"},children:[i,o,f&&(0,s.jsx)(Cv,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})}),_w=["openTo","focusedView","timeViewsCount"],Bw=function(e,t,n){const{openTo:r,focusedView:o,timeViewsCount:a}=n,l=z({},so(n,_w),{autoFocus:!1,focusedView:null,sx:[{[`&.${kw.root}`]:{borderBottom:0},[`&.${kw.root}, .${Ow.root}, &.${yw.root}`]:{maxHeight:dm}}]}),c=Yp(t);return(0,s.jsxs)(i.Fragment,{children:[e[c?"day":t]?.(z({},n,{view:c?"day":t,focusedView:o&&Vp(o)?o:null,views:n.views.filter(Vp),sx:[{gridColumn:1},...l.sx]})),a>0&&(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(Cv,{orientation:"vertical",sx:{gridColumn:2}}),e[c?t:"hours"]?.(z({},l,{view:c?t:"hours",focusedView:o&&Yp(o)?o:null,openTo:Yp(r)?r:"hours",views:n.views.filter(Yp),sx:[{gridColumn:3},...l.sx]}))]})]})},Vw=i.forwardRef(function(e,t){const n=Yf(),r=jf(),o=Cx(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:i,thresholdToRenderTimeInASingleColumn:s,views:a,timeSteps:l}=Tx(o),c=i?$w:Fw,u=z({day:Sb,month:Sb,year:Sb,hours:c,minutes:c,seconds:c,meridiem:c},o.viewRenderers),d=o.ampmInClock??!0,p=u.hours?.name===Fw.name?a:a.filter(e=>"meridiem"!==e),f=i?[]:["accept"],h=z({},o,{viewRenderers:u,format:Mx(r,o),views:p,yearsPerRow:o.yearsPerRow??4,ampmInClock:d,timeSteps:l,thresholdToRenderTimeInASingleColumn:s,shouldRenderTimeInASingleColumn:i,slots:z({field:Pv,layout:zw,openPickerIcon:Pm},o.slots),slotProps:z({},o.slotProps,{field:e=>z({},Yo(o.slotProps?.field,e),oh(o),{ref:t}),toolbar:z({hidden:!0,ampmInClock:d,toolbarVariant:"desktop"},o.slotProps?.toolbar),tabs:z({hidden:!0},o.slotProps?.tabs),actionBar:e=>z({actions:f},Yo(o.slotProps?.actionBar,e))})}),{renderPicker:m}=km({props:h,valueManager:Sf,valueType:"date-time",getOpenDialogAriaText:Tf({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:h.localeText?.openDatePickerDialogue}),validator:Mv,rendererInterceptor:Bw});return m()});Vw.propTypes={ampm:jp().bool,ampmInClock:jp().bool,autoFocus:jp().bool,className:jp().string,closeOnSelect:jp().bool,dayOfWeekFormatter:jp().func,defaultValue:jp().object,disabled:jp().bool,disableFuture:jp().bool,disableHighlightToday:jp().bool,disableIgnoringDatePartForTimeValidation:jp().bool,disableOpenPicker:jp().bool,disablePast:jp().bool,displayWeekNumber:jp().bool,enableAccessibleFieldDOMStructure:jp().any,fixedWeekNumber:jp().number,format:jp().string,formatDensity:jp().oneOf(["dense","spacious"]),inputRef:Ap,label:jp().node,loading:jp().bool,localeText:jp().object,maxDate:jp().object,maxDateTime:jp().object,maxTime:jp().object,minDate:jp().object,minDateTime:jp().object,minTime:jp().object,minutesStep:jp().number,monthsPerRow:jp().oneOf([3,4]),name:jp().string,onAccept:jp().func,onChange:jp().func,onClose:jp().func,onError:jp().func,onMonthChange:jp().func,onOpen:jp().func,onSelectedSectionsChange:jp().func,onViewChange:jp().func,onYearChange:jp().func,open:jp().bool,openTo:jp().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:jp().oneOf(["landscape","portrait"]),readOnly:jp().bool,reduceAnimations:jp().bool,referenceDate:jp().object,renderLoading:jp().func,selectedSections:jp().oneOfType([jp().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),jp().number]),shouldDisableDate:jp().func,shouldDisableMonth:jp().func,shouldDisableTime:jp().func,shouldDisableYear:jp().func,showDaysOutsideCurrentMonth:jp().bool,skipDisabled:jp().bool,slotProps:jp().object,slots:jp().object,sx:jp().oneOfType([jp().arrayOf(jp().oneOfType([jp().func,jp().object,jp().bool])),jp().func,jp().object]),thresholdToRenderTimeInASingleColumn:jp().number,timeSteps:jp().shape({hours:jp().number,minutes:jp().number,seconds:jp().number}),timezone:jp().string,value:jp().object,view:jp().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:jp().shape({day:jp().func,hours:jp().func,meridiem:jp().func,minutes:jp().func,month:jp().func,seconds:jp().func,year:jp().func}),views:jp().arrayOf(jp().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:jp().oneOf(["asc","desc"]),yearsPerRow:jp().oneOf([3,4])};const Ww=i.forwardRef(function(e,t){const n=Yf(),r=jf(),o=Cx(e,"MuiMobileDateTimePicker"),i=z({day:Sb,month:Sb,year:Sb,hours:Lw,minutes:Lw,seconds:Lw},o.viewRenderers),s=o.ampmInClock??!1,a=z({},o,{viewRenderers:i,format:Mx(r,o),ampmInClock:s,slots:z({field:Pv},o.slots),slotProps:z({},o.slotProps,{field:e=>z({},Yo(o.slotProps?.field,e),oh(o),{ref:t}),toolbar:z({hidden:!1,ampmInClock:s},o.slotProps?.toolbar),tabs:z({hidden:!1},o.slotProps?.tabs)})}),{renderPicker:l}=Vb({props:a,valueManager:Sf,valueType:"date-time",getOpenDialogAriaText:Tf({utils:r,formatKey:"fullDate",contextTranslation:n.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Mv});return l()});Ww.propTypes={ampm:jp().bool,ampmInClock:jp().bool,autoFocus:jp().bool,className:jp().string,closeOnSelect:jp().bool,dayOfWeekFormatter:jp().func,defaultValue:jp().object,disabled:jp().bool,disableFuture:jp().bool,disableHighlightToday:jp().bool,disableIgnoringDatePartForTimeValidation:jp().bool,disableOpenPicker:jp().bool,disablePast:jp().bool,displayWeekNumber:jp().bool,enableAccessibleFieldDOMStructure:jp().any,fixedWeekNumber:jp().number,format:jp().string,formatDensity:jp().oneOf(["dense","spacious"]),inputRef:Ap,label:jp().node,loading:jp().bool,localeText:jp().object,maxDate:jp().object,maxDateTime:jp().object,maxTime:jp().object,minDate:jp().object,minDateTime:jp().object,minTime:jp().object,minutesStep:jp().number,monthsPerRow:jp().oneOf([3,4]),name:jp().string,onAccept:jp().func,onChange:jp().func,onClose:jp().func,onError:jp().func,onMonthChange:jp().func,onOpen:jp().func,onSelectedSectionsChange:jp().func,onViewChange:jp().func,onYearChange:jp().func,open:jp().bool,openTo:jp().oneOf(["day","hours","minutes","month","seconds","year"]),orientation:jp().oneOf(["landscape","portrait"]),readOnly:jp().bool,reduceAnimations:jp().bool,referenceDate:jp().object,renderLoading:jp().func,selectedSections:jp().oneOfType([jp().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),jp().number]),shouldDisableDate:jp().func,shouldDisableMonth:jp().func,shouldDisableTime:jp().func,shouldDisableYear:jp().func,showDaysOutsideCurrentMonth:jp().bool,slotProps:jp().object,slots:jp().object,sx:jp().oneOfType([jp().arrayOf(jp().oneOfType([jp().func,jp().object,jp().bool])),jp().func,jp().object]),timezone:jp().string,value:jp().object,view:jp().oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:jp().shape({day:jp().func,hours:jp().func,minutes:jp().func,month:jp().func,seconds:jp().func,year:jp().func}),views:jp().arrayOf(jp().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:jp().oneOf(["asc","desc"]),yearsPerRow:jp().oneOf([3,4])};const Hw=["desktopModeMediaQuery"],Uw=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:r=gh}=n,o=so(n,Hw);return Pp(r,{defaultMatches:!0})?(0,s.jsx)(Vw,z({ref:t},o)):(0,s.jsx)(Ww,z({ref:t},o))});Yb().extend(uv()),Yb().utc();var qw={width:"240px",height:"40px",marginTop:"8px","& .MuiOutlinedInput-notchedOutline":{border:"1px solid #8C8C8C",borderRadius:"3px","& legend":{width:0}},"& .MuiOutlinedInput-root":{"&&":{borderRadius:"3px"}},"& .MuiInputBase-input":{color:"#333333",fontFamily:"Rubik",fontSize:14,borderRadius:"3px",padding:"9px",Width:"240px","&::placeholder":{opacity:1,color:"#717171",fontFamily:"Rubik",fontSize:14}},"& .MuiInputBase-root":{height:"40px"}};const Yw=function(e){var t=e.label,n=e.dateTimeValue,r=e.handleDateTimeChange,o=e.disabled,i=e.id,a=void 0===i?"default_dateTime-input":i;return o?(0,s.jsx)(Ld,{label:t,value:n?Yb().utc(n).format("MM/DD/YYYY hh:mm A"):"-",id:a,size:"small"}):(0,s.jsx)(Pi,{children:(0,s.jsx)(Of,{dateAdapter:lv,children:(0,s.jsx)(Uw,{value:n?Yb().utc(n):null,onChange:r,views:["year","day","hours","minutes"],disabled:o,slotProps:{textField:{id:a,sx:qw,label:t},openPickerButton:{id:"".concat(a,"-open-picker-button"),dataTestId:"".concat(a,"-open-picker-button")}},slots:{textField:bp}})})})};function Kw(e){return Kw="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},Kw(e)}var Gw=["className","href","download","ariaLabel","onClick","children","variant"];function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xw(Object(n),!0).forEach(function(t){Zw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zw(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Kw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qw=["white","gray"];const eS=function(e){var t=e.className,n=void 0===t?"":t,r=e.href,o=void 0===r?"":r,i=e.download,a=void 0!==i&&i,l=e.ariaLabel,c=void 0===l?null:l,u=e.onClick,d=void 0===u?function(){return null}:u,p=e.children,f=void 0===p?null:p,h=e.variant,m=void 0===h?null:h,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Gw),y="qpp-c-link";return Qw.includes(m)&&(y+="gray"===m?" qpp-u-color--gray-60":" qpp-u-color--".concat(m)),n&&(y+=" ".concat(n)),(0,s.jsx)("a",Jw(Jw({"aria-label":c,className:y,href:o,download:a,onClick:d},g),{},{children:f}))};var tS=o(8569),nS=o.n(tS);function rS(e){return rS="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},rS(e)}var oS=["dateTimeValue","handleDateTimeChange","required","disabled","id","textFieldSx","dateFieldSx","error","helperText","datePickerProps","onBlur"];function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iS(Object(n),!0).forEach(function(t){aS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Yb().extend(uv()),Yb().utc(),Yb().extend(nS());var lS=function(e){return Yb().utc(e).format("YYYY-MM-DDTHH:mm:ss.SSSZ")},cS={width:"170px",height:40,marginTop:"8px","& .MuiOutlinedInput-notchedOutline":{border:"1px solid #8C8C8C",borderRadius:"3px","& legend":{width:0}},"& .MuiOutlinedInput-root":{"&&":{borderRadius:"3px"}},"& .MuiInputBase-input":{color:"#333333",fontFamily:"Rubik",fontSize:14,borderRadius:"3px",padding:"9px",Width:"170px","&::placeholder":{opacity:1,color:"#717171",fontFamily:"Rubik",fontSize:14}}};const uS=function(e){var t=e.dateTimeValue,n=e.handleDateTimeChange,r=e.required,o=void 0!==r&&r,i=e.disabled,a=e.id,l=void 0===a?"default_dateTime-input":a,c=(e.textFieldSx,e.dateFieldSx),u=void 0===c?{}:c,d=e.error,p=void 0!==d&&d,f=e.helperText,h=(e.datePickerProps,e.onBlur),m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,oS),g={width:"55px",height:"40px","& .MuiInputBase-input":{color:"#333",fontFamily:"Rubik",fontSize:14,borderRadius:"3px",padding:"9px 5px 9px 5px","&::placeholder":{opacity:1,color:"#717171"}}},y=function(e){if(!isNaN(e))if(t){var r=Yb().utc(e);n(lS(r))}else{var o=e.utc(e);n(lS(o))}};return(0,s.jsx)(Pi,{error:p,children:(0,s.jsx)(Of,{dateAdapter:lv,children:(0,s.jsxs)(Sp,{sx:{display:"flex",flexDirection:"row",flexGrow:1},children:[(0,s.jsx)(Sp,{sx:{marginRight:"24px"},children:(0,s.jsx)(Ub,{value:t?Yb().utc(t):null,onChange:y,disabled:i,onClose:function(){return h?h():void 0},slotProps:{textField:function(e){var n=e.InputProps;return n["data-testid"]=l,n["aria-required"]=o,sS({id:l,label:"Date",sx:sS(sS({},cS),u),value:t?Yb().utc(t):null,onChange:y,error:p,helperText:f,onBlur:h},m)},openPickerButton:{id:"".concat(l,"-open-picker-button"),"data-testid":"".concat(l,"-open-picker-button")}},slots:{textField:bp}})}),(0,s.jsx)(bp,{id:"".concat(l,"-hour"),"data-testid":"".concat(l,"-hour"),value:t?Yb().utc(t).hour():0,onChange:function(e){var r=parseInt(e.target.value,10);if(t){var o=Yb().utc(t).set("hour",r);n(lS(o))}},label:"Hr",type:"number",disabled:!t,inputProps:{min:0,max:24},textFieldStyles:g,required:o}),(0,s.jsx)(bp,{id:"".concat(l,"-minute"),"data-testid":"".concat(l,"-minute"),value:t?Yb().utc(t).minute():0,onChange:function(e){var r=parseInt(e.target.value,10);if(t){var o=Yb().utc(t).set("minute",r);n(lS(o))}},label:"Min",type:"number",disabled:!t,inputProps:{min:0,max:60},textFieldStyles:g,required:o}),(0,s.jsx)(bp,{id:"".concat(l,"-second"),"data-testid":"".concat(l,"-second"),value:t?Yb().utc(t).second():0,onChange:function(e){var r=parseInt(e.target.value,10);if(t){var o=Yb().utc(t).set("second",r);n(lS(o))}},label:"Sec",type:"number",disabled:!t,inputProps:{min:0,max:60},textFieldStyles:g,required:o}),(0,s.jsx)(bp,{id:"".concat(l,"-millisecond"),"data-testid":"".concat(l,"-millisecond"),value:t?Yb().utc(t).millisecond():0,onChange:function(e){var r=parseInt(e.target.value,10);if(t){var o=Yb().utc(t).set("millisecond",r);n(lS(o))}},label:"MS",type:"number",disabled:!t,inputProps:{min:0,max:999},textFieldStyles:g,required:o})]})})})};function dS(e){return Po("MuiFormControlLabel",e)}const pS=Do("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fS=Vr("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pS.label}`]:t.label},t.root,t[`labelPlacement${L(n.labelPlacement)}`]]}})(ri(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pS.disabled}`]:{cursor:"default"},[`& .${pS.label}`]:{[`&.${pS.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),hS=Vr("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ri(({theme:e})=>({[`&.${pS.error}`]:{color:(e.vars||e).palette.error.main}}))),mS=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:a={},control:l,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:f="end",name:h,onChange:m,required:g,slots:v={},slotProps:x={},value:w,...S}=n,C=qr(),k=c??l.props.disabled??C?.disabled,M=g??l.props.required,O={disabled:k,required:M};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===l.props[e]&&void 0!==n[e]&&(O[e]=n[e])});const T=Di({props:n,muiFormControl:C,states:["error"]}),P={...n,disabled:k,labelPlacement:f,required:M,error:T.error},D=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return b({root:["root",n&&"disabled",`labelPlacement${L(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},dS,t)})(P),E={slots:v,slotProps:{...a,...x}},[j,A]=Jo("typography",{elementType:_f,externalForwardedProps:E,ownerState:P});let R=p;return null==R||R.type===_f||u||(R=(0,s.jsx)(j,{component:"span",...A,className:y(D.label,A?.className),children:R})),(0,s.jsxs)(fS,{className:y(D.root,o),ownerState:P,ref:t,...S,children:[i.cloneElement(l,O),M?(0,s.jsxs)("div",{children:[R,(0,s.jsxs)(hS,{ownerState:P,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]}):R]})});function gS(e){return gS="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},gS(e)}function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=gS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vS=function(e){return(0,s.jsx)(mS,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yS(Object(n),!0).forEach(function(t){bS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({sx:{flexGrow:1,textTransform:"none",margin:0,"& .MuiTypography-root":{color:"#333",fontSize:14,fontFamily:"Rubik",fontWeight:500}}},e))},xS=li((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),wS=li((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),SS=li((0,s.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"})),CS=li((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),kS=li((0,s.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),MS=li((0,s.jsx)("path",{d:"M6 16h2v2c0 .55.45 1 1 1s1-.45 1-1v-3c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1s.45 1 1 1m2-8H6c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1s-1 .45-1 1zm7 11c.55 0 1-.45 1-1v-2h2c.55 0 1-.45 1-1s-.45-1-1-1h-3c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1m1-11V6c0-.55-.45-1-1-1s-1 .45-1 1v3c0 .55.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1z"})),OS=li((0,s.jsx)("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"}));function TS(e){return Po("MuiTooltip",e)}const PS=Do("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const DS=Vr(ka,{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]}})(ri(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${PS.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${PS.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${PS.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${PS.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${PS.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${PS.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${PS.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${PS.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ES=Vr("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${L(n.placement.split("-")[0])}`]]}})(ri(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:T(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,[`.${PS.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${PS.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${PS.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${PS.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5)+"em",fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${PS.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${PS.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${PS.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${PS.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${PS.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${PS.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${PS.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${PS.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${PS.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${PS.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),jS=Vr("span",{name:"MuiTooltip",slot:"Arrow"})(ri(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:T(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let AS=!1;const RS=new bo;let NS={x:0,y:0};function IS(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const LS=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:a,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:v=700,followCursor:x=!1,id:w,leaveDelay:S=0,leaveTouchDelay:C=1500,onClose:k,onOpen:M,open:O,placement:T="bottom",PopperComponent:P,PopperProps:D={},slotProps:E={},slots:j={},title:A,TransitionComponent:R,TransitionProps:N,...I}=n,$=i.isValidElement(o)?o:(0,s.jsx)("span",{children:o}),F=Aa(),z=Yi(),[_,B]=i.useState(),[V,W]=i.useState(null),H=i.useRef(!1),U=f||x,q=vo(),Y=vo(),K=vo(),G=vo(),[X,J]=Hr({controlled:O,default:!1,name:"Tooltip",state:"open"});let Z=X;const Q=$a(w),ee=i.useRef(),te=no(()=>{void 0!==ee.current&&(document.body.style.WebkitUserSelect=ee.current,ee.current=void 0),G.clear()});i.useEffect(()=>te,[te]);const ne=e=>{RS.clear(),AS=!0,J(!0),M&&!Z&&M(e)},re=no(e=>{RS.start(800+S,()=>{AS=!1}),J(!1),k&&Z&&k(e),q.start(F.transitions.duration.shortest,()=>{H.current=!1})}),oe=e=>{H.current&&"touchstart"!==e.type||(_&&_.removeAttribute("title"),Y.clear(),K.clear(),m||AS&&g?Y.start(AS?g:m,()=>{ne(e)}):ne(e))},ie=e=>{Y.clear(),K.start(S,()=>{re(e)})},[,se]=i.useState(!1),ae=e=>{Yr(e.target)||(se(!1),ie(e))},le=e=>{_||B(e.currentTarget),Yr(e.target)&&(se(!0),oe(e))},ce=e=>{H.current=!0;const t=$.props;t.onTouchStart&&t.onTouchStart(e)},ue=e=>{ce(e),K.clear(),q.clear(),te(),ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(v,()=>{document.body.style.WebkitUserSelect=ee.current,oe(e)})},de=e=>{$.props.onTouchEnd&&$.props.onTouchEnd(e),te(),K.start(C,()=>{re(e)})};i.useEffect(()=>{if(Z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&re(e)}},[re,Z]);const pe=Qr(ha($),B,t);A||0===A||(Z=!1);const fe=i.useRef(),he={},me="string"==typeof A;u?(he.title=Z||!me||p?null:A,he["aria-describedby"]=Z?Q:null):(he["aria-label"]=me?A:null,he["aria-labelledby"]=Z&&!me?Q:null);const ge={...he,...I,...$.props,className:y(I.className,$.props.className),onTouchStart:ce,ref:pe,...x?{onMouseMove:e=>{const t=$.props;t.onMouseMove&&t.onMouseMove(e),NS={x:e.clientX,y:e.clientY},fe.current&&fe.current.update()}}:{}};const ye={};h||(ge.onTouchStart=ue,ge.onTouchEnd=de),p||(ge.onMouseOver=IS(oe,ge.onMouseOver),ge.onMouseLeave=IS(ie,ge.onMouseLeave),U||(ye.onMouseOver=oe,ye.onMouseLeave=ie)),d||(ge.onFocus=IS(le,ge.onFocus),ge.onBlur=IS(ae,ge.onBlur),U||(ye.onFocus=le,ye.onBlur=ae));const be={...n,isRtl:z,arrow:r,disableInteractive:U,placement:T,PopperComponentProp:P,touch:H.current},ve="function"==typeof E.popper?E.popper(be):E.popper,xe=i.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(V),options:{element:V,padding:4}}];return D.popperOptions?.modifiers&&(e=e.concat(D.popperOptions.modifiers)),ve?.popperOptions?.modifiers&&(e=e.concat(ve.popperOptions.modifiers)),{...D.popperOptions,...ve?.popperOptions,modifiers:e}},[V,D.popperOptions,ve?.popperOptions]),we=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return b({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${L(i.split("-")[0])}`],arrow:["arrow"]},TS,t)})(be),Se="function"==typeof E.transition?E.transition(be):E.transition,Ce={slots:{popper:l.Popper,transition:l.Transition??R,tooltip:l.Tooltip,arrow:l.Arrow,...j},slotProps:{arrow:E.arrow??c.arrow,popper:{...D,...ve??c.popper},tooltip:E.tooltip??c.tooltip,transition:{...N,...Se??c.transition}}},[ke,Me]=Jo("popper",{elementType:DS,externalForwardedProps:Ce,ownerState:be,className:y(we.popper,D?.className)}),[Oe,Te]=Jo("transition",{elementType:su,externalForwardedProps:Ce,ownerState:be}),[Pe,De]=Jo("tooltip",{elementType:ES,className:we.tooltip,externalForwardedProps:Ce,ownerState:be}),[Ee,je]=Jo("arrow",{elementType:jS,className:we.arrow,externalForwardedProps:Ce,ownerState:be,ref:W});return(0,s.jsxs)(i.Fragment,{children:[i.cloneElement($,ge),(0,s.jsx)(ke,{as:P??ka,placement:T,anchorEl:x?{getBoundingClientRect:()=>({top:NS.y,left:NS.x,right:NS.x,bottom:NS.y,width:0,height:0})}:_,popperRef:fe,open:!!_&&Z,id:Q,transition:!0,...ye,...Me,popperOptions:xe,children:({TransitionProps:e})=>(0,s.jsx)(Oe,{timeout:F.transitions.duration.shorter,...e,...Te,children:(0,s.jsxs)(Pe,{...De,children:[A,r?(0,s.jsx)(Ee,{...je}):null]})})})]})}),$S=LS,FS=li((0,s.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));const zS=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:s}=e,a=vo();i.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&r?.(e,"escapeKeyDown")}},[o,r]);const l=to((e,t)=>{r?.(e,t)}),c=to(e=>{r&&null!=e&&a.start(e,()=>{l(null,"timeout")})});i.useEffect(()=>(o&&c(t),a.clear),[o,t,c,a]);const u=a.clear,d=i.useCallback(()=>{null!=t&&c(null!=s?s:.5*t)},[t,s,c]),p=e=>t=>{const n=e.onFocus;n?.(t),u()},f=e=>t=>{const n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{const n=e.onMouseLeave;n?.(t),d()};return i.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(t={})=>{const n={...Ko(e),...Ko(t)};return{role:"presentation",...t,...n,onBlur:(r=n,e=>{const t=r.onBlur;t?.(e),d()}),onFocus:p(n),onMouseEnter:f(n),onMouseLeave:h(n)};var r},onClickAway:e=>{r?.(e,"clickaway")}}};function _S(e){return e.substring(2).toLowerCase()}function BS(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,a=i.useRef(!1),l=i.useRef(null),c=i.useRef(!1),u=i.useRef(!1);i.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=Zr(ha(t),l),p=to(e=>{const t=u.current;u.current=!1;const r=Ki(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().includes(l.current):!r.documentElement.contains(e.target)||l.current.contains(e.target),i||!n&&t||o(e)}),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},h={ref:d};return!1!==s&&(h[s]=f(s)),i.useEffect(()=>{if(!1!==s){const e=_S(s),t=Ki(l.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}},[p,s]),!1!==r&&(h[r]=f(r)),i.useEffect(()=>{if(!1!==r){const e=_S(r),t=Ki(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}},[p,r]),i.cloneElement(t,h)}function VS(e){return Po("MuiSnackbarContent",e)}Do("MuiSnackbarContent",["root","message","action"]);const WS=Vr(La,{name:"MuiSnackbarContent",slot:"Root"})(ri(({theme:e})=>{const t="light"===e.palette.mode?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(R(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:R(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),HS=Vr("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),US=Vr("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),qS=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:i,role:a="alert",...l}=n,c=n,u=(e=>{const{classes:t}=e;return b({root:["root"],action:["action"],message:["message"]},VS,t)})(c);return(0,s.jsxs)(WS,{role:a,elevation:6,className:y(u.root,o),ownerState:c,ref:t,...l,children:[(0,s.jsx)(HS,{className:u.message,ownerState:c,children:i}),r?(0,s.jsx)(US,{className:u.action,ownerState:c,children:r}):null]})});function YS(e){return Po("MuiSnackbar",e)}Do("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const KS=Vr("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${L(n.anchorOrigin.vertical)}${L(n.anchorOrigin.horizontal)}`]]}})(ri(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),GS=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiSnackbar"}),r=Aa(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:f,ContentProps:h,disableWindowBlurListener:m=!1,message:g,onBlur:y,onClose:v,onFocus:x,onMouseEnter:w,onMouseLeave:S,open:C,resumeHideDuration:k,slots:M={},slotProps:O={},TransitionComponent:T,transitionDuration:P=o,TransitionProps:{onEnter:D,onExited:E,...j}={},...A}=n,R={...n,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:u,disableWindowBlurListener:m,TransitionComponent:T,transitionDuration:P},N=(e=>{const{classes:t,anchorOrigin:n}=e;return b({root:["root",`anchorOrigin${L(n.vertical)}${L(n.horizontal)}`]},YS,t)})(R),{getRootProps:I,onClickAway:$}=zS({...R}),[F,z]=i.useState(!0),_={slots:{transition:T,...M},slotProps:{content:h,clickAwayListener:f,transition:j,...O}},[B,V]=Jo("root",{ref:t,className:[N.root,p],elementType:KS,getSlotProps:I,externalForwardedProps:{..._,...A},ownerState:R}),[W,{ownerState:H,...U}]=Jo("clickAwayListener",{elementType:BS,externalForwardedProps:_,getSlotProps:e=>({onClickAway:(...t)=>{const n=t[0];e.onClickAway?.(...t),n?.defaultMuiPrevented||$(...t)}}),ownerState:R}),[q,Y]=Jo("content",{elementType:qS,shouldForwardComponentProp:!0,externalForwardedProps:_,additionalProps:{message:g,action:a},ownerState:R}),[K,G]=Jo("transition",{elementType:su,externalForwardedProps:_,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{z(!1),D&&D(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{z(!0),E&&E(e)})(...t)}}),additionalProps:{appear:!0,in:C,timeout:P,direction:"top"===l?"down":"up"},ownerState:R});return!C&&F?null:(0,s.jsx)(W,{...U,...M.clickAwayListener&&{ownerState:H},children:(0,s.jsx)(B,{...V,children:(0,s.jsx)(K,{...G,children:d||(0,s.jsx)(q,{...Y})})})})}),XS=GS;var JS=o(6942),ZS=o.n(JS);function QS(e){return QS="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},QS(e)}var eC=["toastType","open","message","canClose","onClose","autoHideDuration","testId","toastKey","toastProps","closeButtonProps"];function tC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tC(Object(n),!0).forEach(function(t){rC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=QS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oC=function(e){var t=e.toastType,n=void 0===t?"warning":t,r=e.open,o=void 0===r||r,i=e.message,a=e.canClose,l=void 0===a||a,c=e.onClose,u=e.autoHideDuration,d=e.testId,p=e.toastKey,f=e.toastProps,h=e.closeButtonProps,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eC),g={warning:xS,info:wS,danger:SS,success:CS}[n],y=ZS()("toast",n),b=ZS()("alert-icon",n);return(0,s.jsx)(XS,nC({anchorOrigin:{vertical:"top",horizontal:"center"},autoHideDuration:u,open:o,onClose:c,message:(0,s.jsxs)("div",nC(nC({className:y},f),{},{children:[(0,s.jsx)(g,{className:b}),(0,s.jsx)("div",{id:"message","data-testid":d,children:i}),l&&(0,s.jsx)(el,nC(nC({onClick:c,sx:{marginLeft:"auto","&:after":{content:"''",position:"absolute",left:"0px",width:"1px",height:"40px",backgroundColor:"#B0B0B0",pointerEvents:"none"}}},h),{},{children:(0,s.jsx)(FS,{sx:{color:"#242424"}})}))]})),sx:{overflow:"hidden","& .MuiPaper-root":{backgroundColor:"#fff",padding:0},"& .MuiSnackbar-root":{overflow:"hidden",borderRadius:4},"& .MuiSnackbarContent-message":{padding:0,flexGrow:1,".messageCont":{display:"flex",flexDirection:"row",flexGrow:1,justifyContent:"space-between",div:{display:"flex"}}}}},m),p||void 0)};function iC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aC(e){return aC="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},aC(e)}function lC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lC(Object(n),!0).forEach(function(t){uC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=aC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=aC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dC={warning:xS,info:wS,error:SS,success:CS},pC={marginLeft:"auto"},fC=cC(cC({},pC),{},{"&:after":{content:"''",position:"absolute",left:"0px",width:"1px",height:"40px",backgroundColor:"#B0B0B0",pointerEvents:"none"}}),hC=function(e){var t,n,r,o=function(e){var t,n,r,i,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return"";var a="";return"ul"===e.type&&(a="\n"),Array.isArray(null===(t=e.props)||void 0===t?void 0:t.children)?e.props.children.forEach(function(t,n){var r=o(t,!1);r.trim()&&(a+=r,(s&&1===n||"ul"===e.type)&&(a+="\n"))}):"object"===aC(null===(n=e.props)||void 0===n?void 0:n.children)?a+=o(e.props.children,!1):"string"==typeof(null===(r=e.props)||void 0===r?void 0:r.children)||"number"==typeof(null===(i=e.props)||void 0===i?void 0:i.children)?a+=e.props.children.toString().replace(/\s+/g," ").trim():"string"!=typeof e&&"number"!=typeof e||(a+=e.toString().replace(/\s+/g," ").trim()),a},i=o(e,!1);return{errorCount:(t=e,n={ul:0,li:0},r=function(e){var t;if(e&&"object"===aC(e)){if("ul"===e.type||"li"===e.type){var o,i=null===(o=e.props)||void 0===o?void 0:o.children,s=Array.isArray(i)?i.length:i?1:0;n[e.type]+=s}var a=null===(t=e.props)||void 0===t?void 0:t.children;Array.isArray(a)?a.forEach(r):a&&"object"===aC(a)&&r(a)}},r(t),n.li>n.ul?n.li:n.ul),copyText:i.replace(/\s+\n/g,"\n").replace(/\n\s+/g,"\n").trim()}},mC=function(e){var t=e.tooltip,n=e.onClick,r=e.icon,o=e.testId,i=e.sx;return(0,s.jsx)($S,{title:t,"data-testid":"".concat(o,"-tooltip"),arrow:!0,children:(0,s.jsx)(el,{onClick:n,sx:i,"data-testid":o,children:r})})};const gC=function(e){var t=e.type,n=void 0===t?"warning":t,r=e.visible,o=void 0===r||r,a=e.content,l=e.canClose,c=void 0===l||l,u=e.minimizeAlerts,d=void 0!==u&&u,p=e.alertProps,f=e.closeButtonProps,h=e.copyButton,m=void 0!==h&&h,g=e.alerts,y=void 0===g?null:g,b=iC((0,i.useState)({toastOpen:!1,copyText:"",minimizedAlerts:{},individualErrors:{}}),2),v=b[0],x=b[1],w=v.toastOpen,S=v.copyText,C=v.minimizedAlerts,k=v.individualErrors,M=function(e){x(function(t){return cC(cC({},t),e)})},O=(0,i.useMemo)(function(){return y||[{type:n,visible:o,content:a,canClose:c,alertProps:p,closeButtonProps:f,copyButton:m}]},[y,n,o,a,c,p,f,m]);(0,i.useEffect)(function(){var e={},t="";O.forEach(function(n,r){if(n.content&&!1!==n.visible){var o=hC(n.content);e[r]=o.errorCount,n.copyButton&&(t+=o.copyText+"\n\n")}}),M({individualErrors:e,copyText:t.trim()})},[O]);var T=Object.keys(C).filter(function(e){return C[e]}).map(function(e){return parseInt(e)}),P=T.reduce(function(e,t){return e+(k[t]||0)},0),D=function(e,t){var n=e.type,r=void 0===n?"warning":n,o=e.visible,i=void 0===o||o,a=e.content,l=e.canClose,c=void 0===l||l,u=e.alertProps,p=void 0===u?{}:u,f=e.closeButtonProps,h=void 0===f?{}:f,m=e.copyButton,g=void 0!==m&&m;if(!i||C[t])return null;var y=dC[r],b=ZS()("madie-alert",r);return(0,s.jsxs)("div",cC(cC({className:b},p),{},{children:[(0,s.jsx)(y,{className:ZS()("alert-icon",r)}),(0,s.jsx)("div",{id:"content","data-alert-index":t,children:a}),d&&(0,s.jsx)(mC,{tooltip:"Minimize",onClick:function(e){e.preventDefault(),function(e){M({minimizedAlerts:cC(cC({},C),{},uC({},e,!0))})}(t)},icon:(0,s.jsx)(MS,{sx:{color:"#242424"}}),testId:"minimize-button-".concat(t),sx:fC}),g&&(0,s.jsx)(mC,{tooltip:"Copy",onClick:function(e){e.preventDefault(),navigator.clipboard.writeText(g?hC(a).copyText:S),M({toastOpen:!0})},icon:(0,s.jsx)(kS,{sx:{color:"#242424"}}),testId:"copy-button",sx:d?pC:fC}),c&&(0,s.jsx)(el,cC(cC({sx:fC},h),{},{children:(0,s.jsx)(FS,{sx:{color:"#242424"}})}))]}),t)};return(0,s.jsxs)("div",{children:[(0,s.jsx)(oC,{toastKey:"copy-success-toast","data-testid":"copy-success",toastType:"success",open:w,message:"Copied to clipboard!",onClose:function(){return M({toastOpen:!1})},autoHideDuration:1500}),O.map(function(e,t){return D(e,t)}),T.length>0&&(0,s.jsxs)("div",{style:{position:"absolute",right:"32px",top:"10px",display:"flex",alignItems:"center",cursor:"pointer"},"data-testid":"minimized-alert",className:"minimized-alert",onClick:function(e){e.preventDefault(),M({minimizedAlerts:{}})},children:[(0,s.jsx)(OS,{sx:{color:"yellow",marginRight:"5px"}}),(0,s.jsxs)("span",{"data-testid":"minimized-alert-text",style:{color:"white",fontSize:"16px"},children:["Display Alerts"," ",P>0?"(".concat(P,")"):""]})]})]})};var yC=o(5794),bC=o.n(yC);const vC=li((0,s.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),xC=Vr(_f,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),wC=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiDialogTitle"}),{className:r,id:o,...a}=n,l=n,c=(e=>{const{classes:t}=e;return b({root:["root"]},Mb,t)})(l),{titleId:u=o}=i.useContext(jb);return(0,s.jsx)(xC,{component:"h2",className:y(c.root,r),ownerState:l,ref:t,variant:"h6",id:o??u,...a})}),SC=vp({defaultClassName:Do("MuiBox",["root"]).root,generateClassName:Oo.generate});const CC=function(e){var t=e.optionsOpen,n=e.anchorEl,r=e.handleClose,o=e.canEdit,i=e.editViewSelectOptionProps,a=void 0===i?{}:i,l=e.additionalSelectOptionProps,c=void 0===l?[]:l,u=e.otherSelectOptionProps,d=void 0===u?[]:u;return(0,s.jsx)(zu,{open:t,anchorEl:n,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{".MuiPopover-paper":{background:"none",boxShadow:"none",overflow:"visible",".popover-content":{border:"solid 1px #8c8c8c",position:"relative",marginTop:"16px",marginLeft:"-70px",borderRadius:"6px",background:"#F7F7F7",width:"fit-content","&::before":{borderWidth:"thin",position:"absolute",top:"-8px",left:"calc(50% - 8px)",height:"16px",width:"16px",background:"#F7F7F7",border:"solid 1px #8c8c8c",borderColor:"#8c8c8c transparent transparent #8c8c8c",content:'""',transform:"rotate(45deg)"},".btn-container":{display:"flex",flexDirection:"column",padding:"10px 0",button:{zIndex:2,fontSize:14,padding:"0px 12px",textAlign:"left","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.5)"}}}}}},children:(0,s.jsx)("div",{className:"popover-content","data-testid":"popover-content",children:(0,s.jsxs)("div",{className:"btn-container",children:[(0,s.jsx)("button",{"data-testid":a.dataTestId,onClick:a.toImplementFunction,children:a.label}),c&&c.map(function(e){return(0,s.jsx)("button",{"data-testid":e.dataTestId,onClick:e.toImplementFunction,children:e.label},e.dataTestId)}),o&&d.map(function(e){return(0,s.jsx)("button",{"data-testid":e.dataTestId,onClick:e.toImplementFunction,children:e.label},e.dataTestId)})]})})})};function kC(e){return kC="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},kC(e)}var MC=["children"],OC=["cancelText","cancelIcon"],TC=["continueText","continueIcon","popoverOptions","disabled","tooltipText"],PC=["open","onClose","onSubmit","showRequiredFieldMessage"];function DC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return EC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jC(Object(n),!0).forEach(function(t){RC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=kC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NC(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var IC=function(e){var t=(0,i.useRef)(null),n=e.children,r=NC(e,MC);return(0,s.jsx)(bC(),{handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',nodeRef:t,children:(0,s.jsx)("div",AC(AC({ref:t},r),{},{style:{backgroundColor:"#fff"},children:n}))})},LC=function(e){var t=e.onClose,n=e.cancelButtonProps,r=e.continueButtonProps,o=n.cancelText,a=n.cancelIcon,l=NC(n,OC),c=r.continueText,u=r.continueIcon,d=r.popoverOptions,p=r.disabled,f=r.tooltipText,h=NC(r,TC),m=DC((0,i.useState)(null),2),g=m[0],y=m[1],b=Boolean(g);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Cv,{sx:{borderColor:"#8c8c8c"}}),(0,s.jsxs)(Zh,{sx:{padding:"16px","& >:not(:first-of-type)":{marginLeft:"16px"}},children:[n&&(0,s.jsx)(rp,AC(AC({variant:"secondary",onClick:t},l),{},{children:(0,s.jsxs)("span",{children:[o,a]})})),d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rp,AC(AC({className:"qpp-c-button--cyan",onClick:function(e){y(e.currentTarget)},style:{marginTop:0}},h),{},{children:(0,s.jsxs)("span",{children:[c,u]})})),(0,s.jsx)(CC,{optionsOpen:b,anchorEl:g,handleClose:function(){y(null)},additionalSelectOptionProps:d})]}):r?(0,s.jsx)($S,{title:p&&f?f:"",children:(0,s.jsx)("span",{children:(0,s.jsx)(rp,AC(AC({className:"qpp-c-button--cyan",type:"submit",style:{marginTop:0}},h),{},{disabled:p,children:(0,s.jsxs)("span",{children:[c,u]})}))})}):null]})]})};const $C=function(e){var t=e.form,n=e.required,r=e.title,o=e.dialogProps,i=e.cancelButtonProps,a=e.continueButtonProps,l=e.maxWidth,c=void 0===l?"sm":l,u=e.children,d=o.open,p=o.onClose,f=o.onSubmit,h=o.showRequiredFieldMessage,m=NC(o,PC);return(0,s.jsx)($b,AC(AC({open:d,onClose:p,sx:{"& .MuiDialog-paper":{position:"relative",overflow:"visible",marginTop:"-20px"}},maxWidth:c,fullWidth:!0,PaperComponent:IC},m),{},{children:t?(0,s.jsxs)("form",{"data-testid":"dialog-form",onSubmit:function(e){e.preventDefault(),f(e)},style:{overflow:"scroll"},children:[(0,s.jsxs)(SC,{id:"draggable-dialog-title",sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"24px 32px",cursor:"move"},children:[(0,s.jsx)(wC,{sx:{fontFamily:"Rubik",fontSize:24,padding:0},children:r}),n&&(0,s.jsx)(SC,{sx:{display:"flex",flexDirection:"row",flexGrow:1,alignSelf:"center",marginBottom:"-4px",marginLeft:"15px"},children:(0,s.jsxs)(_f,{style:{fontSize:16,fontWeight:400,fontFamily:"Rubik",color:"#515151"},children:[(0,s.jsx)("span",{style:{color:"#D92F2F",marginRight:3},children:"*"}),"Indicates required field"]})}),(0,s.jsx)("div",{children:(0,s.jsx)(el,{onClick:p,"aria-label":"Close",children:(0,s.jsx)(vC,{sx:{color:"#D92F2F"},"data-testid":"close-button"})})})]}),(0,s.jsx)(Cv,{sx:{borderColor:"#8c8c8c"}}),(0,s.jsxs)(Pb,{sx:{padding:"32px"},children:[h&&(0,s.jsx)(SC,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",marginBottom:"-23px"},children:(0,s.jsxs)(_f,{sx:{fontSize:14,fontWeight:300,fontFamily:"Rubik"},children:[(0,s.jsx)(SC,{component:"span",sx:{color:"#D92F2F",marginRight:"3px"},children:"*"}),"Indicates required field"]})}),u]}),(i||a)&&(0,s.jsx)(LC,{onClose:p,continueButtonProps:a,cancelButtonProps:i})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(SC,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"24px 32px"},children:[(0,s.jsx)(wC,{sx:{fontFamily:"Rubik",fontSize:24,padding:0},children:r}),(0,s.jsx)("div",{children:(0,s.jsx)(el,{onClick:p,"aria-label":"Close",children:(0,s.jsx)(vC,{sx:{color:"#D92F2F"},"data-testid":"close-button"})})})]}),(0,s.jsx)(Cv,{sx:{borderColor:"#8c8c8c"}}),(0,s.jsx)(Pb,{sx:{padding:"32px"},children:u}),(i||a)&&(0,s.jsx)(LC,{onClose:p,continueButtonProps:a,cancelButtonProps:i})]})}))};const FC=function(e){var t=e.open,n=e.onClose,r=e.onContinue;return(0,s.jsx)($C,{title:"Discard Changes?",dialogProps:{open:t,onClose:n,"data-testid":"discard-dialog"},cancelButtonProps:{variant:"secondary",onClick:n,cancelText:"No, Keep Working","data-testid":"discard-dialog-cancel-button"},continueButtonProps:{variant:"primary",type:"submit","data-testid":"discard-dialog-continue-button",continueText:"Yes, Discard All Changes",onClick:r},children:(0,s.jsxs)("div",{id:"discard-changes-dialog-body",children:[(0,s.jsxs)("section",{className:"dialog-warning-body",children:[(0,s.jsx)("p",{children:"You have unsaved changes."}),(0,s.jsx)("p",{className:"strong",children:"Are you sure you want to discard your changes?"})]}),(0,s.jsxs)("section",{className:"dialog-warning-action",children:[(0,s.jsx)(xS,{}),(0,s.jsx)("p",{children:"This Action cannot be undone."})]})]})})};var zC=o(442);const _C=zC.default||zC;var BC=["open","onClose","onContinue"];var VC={replace:function(e){var t=e.name,n=e.children;if("p"===t)return(0,s.jsx)(s.Fragment,{children:(0,zC.domToReact)(n)})}};const WC=function(e){var t=e.open,n=e.onClose,r=e.onContinue,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,BC);return(0,s.jsx)($C,{title:o.dialogTitle,dialogProps:{open:t,onClose:n,"data-testid":"delete-dialog"},cancelButtonProps:{variant:"secondary",onClick:n,cancelText:"Cancel","data-testid":"delete-dialog-cancel-button"},continueButtonProps:{variant:"danger-primary",type:"submit","data-testid":"delete-dialog-continue-button",continueText:"Yes, Delete",onClick:r},children:(0,s.jsxs)("div",{id:"delete-dialog-body",children:[(0,s.jsx)("section",{className:"dialog-warning-body",children:(0,s.jsxs)("p",{children:["Are you sure you want to delete"," ",(0,s.jsx)("span",{className:"strong",children:_C(null!=o&&o.name?null==o?void 0:o.name:"",VC)}),"?"]})}),!0!==o.hideWarning&&(0,s.jsxs)("section",{className:"dialog-warning-action",children:[(0,s.jsx)(xS,{}),(0,s.jsx)("p",{children:"This Action cannot be undone."})]})]})})};var HC=["open","onClose","onContinue","action","warning"];const UC=function(e){var t=e.open,n=e.onClose,r=e.onContinue,o=e.action,i=e.warning,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,HC);return(0,s.jsx)($C,{title:a.dialogTitle,dialogProps:{open:t,onClose:n,"data-testid":"".concat(o,"-dialog")},cancelButtonProps:{variant:"secondary",onClick:n,cancelText:a.cancelText?a.cancelText:"Cancel","data-testid":"".concat(o,"-dialog-cancel-button")},continueButtonProps:{variant:"danger-primary",type:"submit","data-testid":"".concat(o,"-dialog-continue-button"),continueText:a.continueText?a.continueText:"Continue",onClick:r},children:(0,s.jsxs)("div",{id:"confirm-dialog-body",children:[(0,s.jsxs)("section",{className:"dialog-warning-body",children:[(null==o?void 0:o.includes("discard"))&&(0,s.jsx)("p",{children:"You have unsaved changes."}),(0,s.jsxs)("p",{children:["Are you sure you want to"," ",(0,s.jsx)("span",{className:"strong",children:a.name}),"?"]})]}),(0,s.jsxs)("section",{className:"dialog-warning-action",children:[(0,s.jsx)(xS,{}),(0,s.jsx)("p",{children:i})]})]})})};function qC(e){return qC="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},qC(e)}function YC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GC=function(e){return(0,s.jsx)(Ka,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YC(Object(n),!0).forEach(function(t){KC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({"aria-label":"loading-spinner",sx:{"& .MuiCircularProgress-svg":{backgroundColor:"transparent",borderRadius:"100%",boxShadow:"inset 0 0 0px ".concat(e.thickness?e.thickness:"7","px #DDDDDD")},"& .MuiCircularProgress-circle":{color:"#209FA6",strokeLinecap:"round"}},thickness:7,style:{height:50,width:50}},e))};var XC=o(312),JC=o.n(XC),ZC=function(){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",focusable:"false",className:"closex2",children:(0,s.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,s.jsx)("path",{d:"M0.292893219,0.292893219 C0.683417511,-0.0976310729 1.31658249,-0.0976310729 1.70710678,0.292893219 L1.70710678,0.292893219 L8,6.585 L14.2928932,0.292893219 C14.6834175,-0.0976310729 15.3165825,-0.0976310729 15.7071068,0.292893219 C16.0675907,0.65337718 16.0953203,1.22060824 15.7902954,1.61289944 L15.7071068,1.70710678 L9.415,8 L15.7071068,14.2928932 L15.7902954,14.3871006 C16.0953203,14.7793918 16.0675907,15.3466228 15.7071068,15.7071068 C15.3165825,16.0976311 14.6834175,16.0976311 14.2928932,15.7071068 L14.2928932,15.7071068 L8,9.415 L1.70710678,15.7071068 C1.31658249,16.0976311 0.683417511,16.0976311 0.292893219,15.7071068 C-0.0675907428,15.3466228 -0.0953202783,14.7793918 0.209704612,14.3871006 L0.292893219,14.2928932 L6.585,8 L0.292893219,1.70710678 L0.209704612,1.61289944 C-0.0953202783,1.22060824 -0.0675907428,0.65337718 0.292893219,0.292893219 Z",fill:"#242424",fillRule:"nonzero"})})})};function QC(e){return QC="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},QC(e)}var ek=["children","onRequestClose","title","primary","secondary","appElement","isOpen"];function tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tk(Object(n),!0).forEach(function(t){rk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rk(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=QC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ok(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ik(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ik(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ik(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const sk=function(e){var t=e.children,n=e.onRequestClose,r=void 0===n?function(){}:n,o=e.title,a=e.primary,l=void 0===a?null:a,c=e.secondary,u=void 0===c?null:c,d=e.appElement,p=void 0===d?"body > *:not(.qpp-c-modal)":d,f=e.isOpen,h=void 0!==f&&f,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ek),g=ok((0,i.useState)(!1),2),y=g[0],b=g[1],v=(0,i.useRef)(null),x=(0,i.useRef)(null);(0,i.useEffect)(function(){JC().setAppElement(p)},[]);return(0,s.jsxs)(JC(),nk(nk({onRequestClose:r,portalClassName:"qpp-c-modal",className:"qpp-c-modal__content",overlayClassName:"qpp-c-modal__overlay",bodyOpenClassName:"qpp-c-modal__body-open",isOpen:h,style:{content:m.width?{width:m.width,maxWidth:"calc(100vw - 2rem)",maxHeight:"calc(100vh - 2rem)"}:{}},onAfterOpen:function(){var e;(null===(e=x.current)||void 0===e?void 0:e.scrollHeight)>.6*document.documentElement.clientHeight?b(!0):b(!1),null!=v&&v.current&&v.current.focus()},aria:{labelledby:"modal-heading",describedby:"modal-body"}},m),{},{children:[(0,s.jsxs)("div",{className:"qpp-c-modal__header ".concat(y?"qpp-c-modal__header-sep":""),children:[(0,s.jsx)("h3",{id:"modal-heading",children:o}),(0,s.jsx)("button",{className:"closex qpp-c-button qpp-c-button--text qpp-u-color--black","aria-label":"close modal","data-testid":"modal-close-btn",onClick:r,ref:v,children:(0,s.jsx)(ZC,{})})]}),(0,s.jsx)("div",{id:"modal-body",className:"qpp-c-modal__body",ref:x,tabIndex:y?"0":void 0,children:t}),(l||u)&&(0,s.jsxs)("div",{className:"qpp-c-modal__footer",children:[u&&(0,s.jsx)("button",{className:"qpp-c-button qpp-c-button--secondary ".concat(l?"qpp-u-margin-right--16":""),disabled:u.loading,onClick:u.onClick||r,"aria-label":u.title,"data-testid":"modal-secondary-btn",children:u.title}),l&&(0,s.jsx)("button",{className:"qpp-c-button",disabled:l.loading,onClick:l.onClick,"data-testid":"modal-primary-btn","aria-label":l.title,children:l.title})]})]}))};function ak(e){return ak="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},ak(e)}var lk=["useDesignSystem"];function ck(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uk(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ak(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ak(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ak(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dk=function(e){e.useDesignSystem;var t=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,lk);return(0,s.jsx)(sk,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ck(Object(n),!0).forEach(function(t){uk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ck(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t))};dk.displayName="Modal";const pk=dk;function fk(e){return Po("MuiPagination",e)}Do("MuiPagination",["root","ul","outlined","text"]);function hk(e){return Po("MuiPaginationItem",e)}const mk=Do("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),gk=li((0,s.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),yk=li((0,s.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),bk=li((0,s.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),vk=li((0,s.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),xk=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${L(n.size)}`],"text"===n.variant&&t[`text${L(n.color)}`],"outlined"===n.variant&&t[`outlined${L(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},wk=Vr("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:xk})(ri(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${mk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),Sk=Vr(Wo,{name:"MuiPaginationItem",slot:"Root",overridesResolver:xk})(ri(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${mk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mk.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:T(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${mk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:T(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${mk.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${mk.selected}`]:{[`&.${mk.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${mk.selected}`]:{[`&.${mk.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(hi(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${mk.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${mk.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${mk.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(hi(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${mk.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:T(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:T(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:T(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:T(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),Ck=Vr("div",{name:"MuiPaginationItem",slot:"Icon"})(ri(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),kk=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:i,components:a={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:p="medium",slots:f={},slotProps:h={},type:m="page",variant:g="text",...v}=n,x={...n,color:o,disabled:l,selected:u,shape:d,size:p,type:m,variant:g},w=Yi(),S=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:s,type:a,variant:l}=e;return b({root:["root",`size${L(i)}`,l,s,"standard"!==n&&`color${L(n)}`,"standard"!==n&&`${l}${L(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[a]],icon:["icon"]},hk,t)})(x),C={slots:{previous:f.previous??a.previous,next:f.next??a.next,first:f.first??a.first,last:f.last??a.last},slotProps:h},[k,M]=Jo("previous",{elementType:bk,externalForwardedProps:C,ownerState:x}),[O,T]=Jo("next",{elementType:vk,externalForwardedProps:C,ownerState:x}),[P,D]=Jo("first",{elementType:gk,externalForwardedProps:C,ownerState:x}),[E,j]=Jo("last",{elementType:yk,externalForwardedProps:C,ownerState:x}),A=w?{previous:"next",next:"previous",first:"last",last:"first"}[m]:m,R={previous:k,next:O,first:P,last:E}[A],N={previous:M,next:T,first:D,last:j}[A];return"start-ellipsis"===m||"end-ellipsis"===m?(0,s.jsx)(wk,{ref:t,ownerState:x,className:y(S.root,r),children:"…"}):(0,s.jsxs)(Sk,{ref:t,ownerState:x,component:i,disabled:l,className:y(S.root,r),...v,children:["page"===m&&c,R?(0,s.jsx)(Ck,{...N,className:S.icon,as:R}):null]})}),Mk=kk,Ok=Vr("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Tk=Vr("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Pk(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Dk=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:i="standard",count:a=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=Pk,hideNextButton:d=!1,hidePrevButton:p=!1,onChange:f,page:h,renderItem:m=e=>(0,s.jsx)(Mk,{...e}),shape:g="circular",showFirstButton:v=!1,showLastButton:x=!1,siblingCount:w=1,size:S="medium",variant:C="text",...k}=n,{items:M}=function(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:s=!1,hidePrevButton:a=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:p=1,...f}=e,[h,m]=Wr({controlled:c,default:o,name:n,state:"page"}),g=(e,t)=>{c||m(t),l&&l(e,t)},y=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},b=y(1,Math.min(t,r)),v=y(Math.max(r-t+1,t+1),r),x=Math.max(Math.min(h-p,r-t-2*p-1),t+2),w=Math.min(Math.max(h+p,t+2*p+2),r-t-1),S=[...u?["first"]:[],...a?[]:["previous"],...b,...x>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(x,w),...w<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...v,...s?[]:["next"],...d?["last"]:[]],C=e=>{switch(e){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return r;default:return null}};return{items:S.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===h,disabled:i,"aria-current":e===h?"page":void 0}:{onClick:t=>{g(t,C(e))},type:e,page:C(e),selected:!1,disabled:i||!e.includes("ellipsis")&&("next"===e||"last"===e?h>=r:h<=1)}),...f}}({...n,componentName:"Pagination"}),O={...n,boundaryCount:r,color:i,count:a,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:p,renderItem:m,shape:g,showFirstButton:v,showLastButton:x,siblingCount:w,size:S,variant:C},T=(e=>{const{classes:t,variant:n}=e;return b({root:["root",n],ul:["ul"]},fk,t)})(O);return(0,s.jsx)(Ok,{"aria-label":"pagination navigation",className:y(T.root,o),ownerState:O,ref:t,...k,children:(0,s.jsx)(Tk,{className:T.ul,ownerState:O,children:M.map((e,t)=>(0,s.jsx)("li",{children:m({...e,color:i,"aria-label":u(e.type,e.page,e.selected),shape:g,size:S,variant:C})},t))})})}),Ek=Dk,jk=Vn();function Ak(e){return Ak="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},Ak(e)}function Rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rk(Object(n),!0).forEach(function(t){Ik(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ik(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ak(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ak(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ak(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lk=jk("div")({display:"flex",flexGrow:1,flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:90,padding:"0px 24px"}),$k=jk("div")({display:"flex",flexDirection:"row",alignItems:"center"}),Fk=function(e){var t=e.totalItems,n=void 0===t?0:t,r=e.visibleItems,o=void 0===r?0:r,i=e.count,a=void 0===i?1:i,l=e.offset,c=void 0===l?0:l,u=e.shape,d=void 0===u?"rounded":u,p=e.page,f=void 0===p?0:p,h=e.limit,m=void 0===h?10:h,g=e.limitOptions,y=void 0===g?[10,25,50]:g,b=e.handlePageChange,v=e.handleLimitChange,x=e.hidePrevButton,w=void 0===x||x,S=e.hideNextButton,C=void 0!==S&&S;return(0,s.jsxs)(Lk,{children:[(0,s.jsxs)($k,{children:[(0,s.jsxs)("span",{id:"items-per-page",style:ig,children:["Items per page ",m,"."]}),(0,s.jsx)(_f,{fontSize:14,fontFamily:"Rubik",sx:{color:"#333333"},children:"Items per page"}),(0,s.jsx)(gd,{size:"small",sx:{margin:"0 11px","& .MuiOutlinedInput-notchedOutline":{borderColor:"#8C8C8C","& legend":{width:0}},"& .MuiInputBase-input":{fontFamily:"Rubik",fontSize:14,borderRadius:3}},id:"pagination-limit-select",value:m,label:null,onChange:v,inputProps:{"aria-labelledby":"items-per-page","aria-describedby":"items-per-page offset-of-total-items"},children:y.map(function(e){return(0,s.jsx)(mw,{value:e,"data-testid":"limit-option",children:e},"limit-".concat(e))})}),(0,s.jsx)(_f,{fontSize:14,id:"offset-of-total-items",sx:{color:"#757575"},fontFamily:"Rubik",children:"".concat(c+1," - ").concat(o+c," of ").concat(n)})]}),(0,s.jsx)(Ek,{sx:{"& .MuiPagination-ul":{"& .MuiPaginationItem-root":{color:"#0073C8",border:"solid 1px #8c8c8c","&:focus":{border:"0.0625rem solid #125496",borderRadius:"0.1875rem",boxShadow:"0 0 0 0.25rem #cbe4ff",outline:"none"}},"& .Mui-selected":{color:"#fff",backgroundColor:"#0073C8 !important"},"& .MuiPaginationItem-ellipsis":{border:"solid 1px transparent"},"& .MuiPaginationItem-previousNext":{border:"solid 1px transparent"}}},renderItem:function(e){return"next"===e.type?(0,s.jsx)(Mk,Nk({sx:{border:"solid 1px transparent","& .Mui-selected":{backgroundColor:"#0073C8",border:"solid 1px #0073C8",color:"#fff"},"&::before":{content:'"Next "',marginRight:"5px",fontSize:14,fontFamily:"Rubik"}}},e)):"previous"===e.type?(0,s.jsx)(Mk,Nk({sx:{border:"solid 1px transparent","& .Mui-selected":{},"&::after":{content:'" Previous"',marginLeft:"5px",fontSize:14,fontFamily:"Rubik"}}},e)):(0,s.jsx)(Mk,Nk({},e))},count:a,page:f,shape:d,siblingCount:2,boundaryCount:0,onChange:b,hidePrevButton:w,hideNextButton:C})]})};function zk(e){return Po("MuiFormGroup",e)}Do("MuiFormGroup",["root","row","error"]);const _k=Vr("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Bk=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiFormGroup"}),{className:r,row:o=!1,...i}=n,a=Di({props:n,muiFormControl:qr(),states:["error"]}),l={...n,row:o,error:a.error},c=(e=>{const{classes:t,row:n,error:r}=e;return b({root:["root",n&&"row",r&&"error"]},zk,t)})(l);return(0,s.jsx)(_k,{className:y(c.root,r),ownerState:l,ref:t,...i})});function Vk(e){return Po("MuiRadioGroup",e)}Do("MuiRadioGroup",["root","row","error"]);const Wk=i.createContext(void 0),Hk=i.forwardRef(function(e,t){const{actions:n,children:r,className:o,defaultValue:a,name:l,onChange:c,value:u,...d}=e,p=i.useRef(null),f=(e=>{const{classes:t,row:n,error:r}=e;return b({root:["root",n&&"row",r&&"error"]},Vk,t)})(e),[h,m]=Hr({controlled:u,default:a,name:"RadioGroup"});i.useImperativeHandle(n,()=>({focus:()=>{let e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);const g=Qr(t,p),v=$a(l),x=i.useMemo(()=>({name:v,onChange(e){m(e.target.value),c&&c(e,e.target.value)},value:h}),[v,c,m,h]);return(0,s.jsx)(Wk.Provider,{value:x,children:(0,s.jsx)(Bk,{role:"radiogroup",ref:g,className:y(f.root,o),...d,children:r})})}),Uk=li((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),qk=li((0,s.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),Yk=Vr("span",{name:"MuiRadioButtonIcon",shouldForwardProp:F})({position:"relative",display:"flex"}),Kk=Vr(Uk,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Gk=Vr(qk,{name:"MuiRadioButtonIcon"})(ri(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));const Xk=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return(0,s.jsxs)(Yk,{className:n.root,ownerState:o,children:[(0,s.jsx)(Kk,{fontSize:r,className:n.background,ownerState:o}),(0,s.jsx)(Gk,{fontSize:r,className:n.dot,ownerState:o})]})},Jk=yu;function Zk(e){return Po("MuiRadio",e)}const Qk=Do("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),eM=Vr(ti,{shouldForwardProp:e=>F(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${L(n.size)}`],t[`color${L(n.color)}`]]}})(ri(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Qk.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:T(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(hi()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Qk.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));const tM=(0,s.jsx)(Xk,{checked:!0}),nM=(0,s.jsx)(Xk,{}),rM=i.forwardRef(function(e,t){const n=Jr({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=tM,color:a="primary",icon:l=nM,name:c,onChange:u,size:d="medium",className:p,disabled:f,disableRipple:h=!1,slots:m={},slotProps:g={},inputProps:v,...x}=n,w=qr();let S=f;w&&void 0===S&&(S=w.disabled),S??=!1;const C={...n,disabled:S,disableRipple:h,color:a,size:d},k=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${L(n)}`,"medium"!==r&&`size${L(r)}`]};return{...t,...b(o,Zk,t)}})(C),M=i.useContext(Wk);let O=r;const T=Jk(u,M&&M.onChange);let P=c;var D,E;M&&(void 0===O&&(D=M.value,O="object"==typeof(E=n.value)&&null!==E?D===E:String(D)===String(E)),void 0===P&&(P=M.name));const j=g.input??v,[A,R]=Jo("root",{ref:t,elementType:eM,className:y(k.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:g,...x},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),T(t,...n)}}),ownerState:C,additionalProps:{type:"radio",icon:i.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:i.cloneElement(o,{fontSize:o.props.fontSize??d}),disabled:S,name:P,checked:O,slots:m,slotProps:{input:"function"==typeof j?j(C):j}}});return(0,s.jsx)(A,{...R,classes:k})}),oM=rM;function iM(e){return iM="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},iM(e)}var sM=["id","dataTestId","options","disabled","label","required","error","helperText"];function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(n),!0).forEach(function(t){cM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=iM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=iM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==iM(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uM=function(e){var t=e.id,n=(e.dataTestId,e.options),r=void 0===n?[]:n,o=e.disabled,i=void 0!==o&&o,a=e.label,l=e.required,c=void 0!==l&&l,u=e.error,d=void 0!==u&&u,p=e.helperText,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,sM);if(i){var h=null==r?void 0:r.find(function(e){return String(e.value)===String(f.value)});return(0,s.jsx)(Ld,lM(lM({required:c,label:a,id:t,size:"small"},f),{},{value:null==h?void 0:h.label}))}return(0,s.jsxs)(Pi,{error:d,fullWidth:!0,children:[(0,s.jsx)(Od,{htmlFor:"".concat(t),id:"".concat(t,"-label"),disabled:i,required:c,shrink:!0,style:{marginBottom:0,height:16},sx:[{backgroundColor:"transparent",display:"flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:"#333","& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},c&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},i&&{color:"rgba(0,0,0,0.6)"},d&&{color:"#AE1C1C !important"}],children:a}),p&&(0,s.jsx)(Ni,{tabIndex:0,"aria-live":"polite",id:"".concat(t,"-helper-text"),"data-testid":"".concat(t,"-helper-text"),error:d,sx:[{margin:"4px 0px 0px 0px",color:"#515151",lineHeight:1},d&&{color:"#AE1C1C !important"}],children:p}),(0,s.jsx)(Hk,lM(lM({"aria-labelledby":"".concat(t,"-radio-buttons-group"),"data-testid":"".concat(t,"-radio-buttons-group")},f),{},{children:r.map(function(e,t){return(0,s.jsx)(mS,{disabled:i,value:e.value,control:(0,s.jsx)(oM,{}),label:e.label},t)})}))]})};function dM(e){this.content=e}dM.prototype={constructor:dM,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),i=r.content.slice();return-1==o?i.push(n||e,t):(i[o+1]=t,n&&(i[o]=n)),new dM(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new dM(n)},addToStart:function(e,t){return new dM([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new dM(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),i=r.find(e);return o.splice(-1==i?o.length:i,0,t,n),new dM(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=dM.from(e)).size?new dM(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=dM.from(e)).size?new dM(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=dM.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},dM.from=function(e){if(e instanceof dM)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new dM(t)};const pM=dM;function fM(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)n++;return n}if(o.content.size||i.content.size){let e=fM(o.content,i.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function hM(e,t,n,r){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let s=e.child(--o),a=t.child(--i),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let e=0,t=Math.min(s.text.length,a.text.length);for(;e<t&&s.text[s.text.length-e-1]==a.text[a.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let e=hM(s.content,a.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}class mM{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=0,s=0;s<t;i++){let a=this.content[i],l=s+a.nodeSize;if(l>e&&!1!==n(a,r+s,o||null,i)&&a.content.size){let o=s+1;a.nodesBetween(Math.max(0,e-o),Math.min(a.content.size,t-o),n,r+o)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,(s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(i?i=!1:o+=n),o+=l},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new mM(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let s=this.content[o],a=i+s.nodeSize;a>e&&((i<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-i),Math.min(s.text.length,t-i)):s.cut(Math.max(0,e-i-1),Math.min(s.content.size,t-i-1))),n.push(s),r+=s.nodeSize),i=a}return new mM(n,r)}cutByIndex(e,t){return e==t?mM.empty:0==e&&t==this.content.length?this:new mM(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new mM(r,o)}addToStart(e){return new mM([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new mM(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return fM(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return hM(this,e,t,n)}findIndex(e,t=-1){if(0==e)return yM(0,e);if(e==this.size)return yM(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?yM(n+1,o):yM(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return mM.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new mM(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return mM.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new mM(t||e,n)}static from(e){if(!e)return mM.empty;if(e instanceof mM)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new mM([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}mM.empty=new mM([],0);const gM={index:0,offset:0};function yM(e,t){return gM.index=e,gM.offset=t,gM}function bM(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!bM(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!bM(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class vM{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&bM(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return vM.none;if(e instanceof vM)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}vM.none=[];class xM extends Error{}class wM{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=CM(this.content,e+this.openStart,t);return n&&new wM(n,this.openStart,this.openEnd)}removeBetween(e,t){return new wM(SM(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return wM.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new wM(mM.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new wM(e,n,r)}}function SM(e,t,n){let{index:r,offset:o}=e.findIndex(t),i=e.maybeChild(r),{index:s,offset:a}=e.findIndex(n);if(o==t||i.isText){if(a!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(SM(i.content,t-o-1,n-o-1)))}function CM(e,t,n,r){let{index:o,offset:i}=e.findIndex(t),s=e.maybeChild(o);if(i==t||s.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let a=CM(s.content,t-i-1,n);return a&&e.replaceChild(o,s.copy(a))}function kM(e,t,n){if(n.openStart>e.depth)throw new xM("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new xM("Inconsistent open depths");return MM(e,t,n,0)}function MM(e,t,n,r){let o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let s=MM(e,t,n,r+1);return i.copy(i.content.replaceChild(o,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:o,end:s}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(mM.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return EM(i,jM(e,o,s,t,r))}{let r=e.parent,o=r.content;return EM(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return EM(i,AM(e,t,r))}function OM(e,t){if(!t.type.compatibleContent(e.type))throw new xM("Cannot join "+t.type.name+" onto "+e.type.name)}function TM(e,t,n){let r=e.node(n);return OM(r,t.node(n)),r}function PM(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function DM(e,t,n,r){let o=(t||e).node(n),i=0,s=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(PM(e.nodeAfter,r),i++));for(let e=i;e<s;e++)PM(o.child(e),r);t&&t.depth==n&&t.textOffset&&PM(t.nodeBefore,r)}function EM(e,t){return e.type.checkContent(t),e.copy(t)}function jM(e,t,n,r,o){let i=e.depth>o&&TM(e,t,o+1),s=r.depth>o&&TM(n,r,o+1),a=[];return DM(null,e,o,a),i&&s&&t.index(o)==n.index(o)?(OM(i,s),PM(EM(i,jM(e,t,n,r,o+1)),a)):(i&&PM(EM(i,AM(e,t,o+1)),a),DM(t,n,o,a),s&&PM(EM(s,AM(n,r,o+1)),a)),DM(r,null,o,a),new mM(a)}function AM(e,t,n){let r=[];if(DM(null,e,n,r),e.depth>n){PM(EM(TM(e,t,n+1),AM(e,t,n+1)),r)}return DM(t,null,n,r),new mM(r)}wM.empty=new wM(mM.empty,0,0);class RM{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return vM.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new $M(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let t=e;;){let{index:e,offset:i}=t.content.findIndex(o),s=o-i;if(n.push(t,e,r+i),!s)break;if(t=t.child(e),t.isText)break;o=s-1,r+=i+1}return new RM(t,n,o)}static resolveCached(e,t){let n=LM.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else LM.set(e,n=new NM);let r=n.elts[n.i]=RM.resolve(e,t);return n.i=(n.i+1)%IM,r}}class NM{constructor(){this.elts=[],this.i=0}}const IM=12,LM=new WeakMap;class $M{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const FM=Object.create(null);class zM{constructor(e,t,n,r=vM.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||mM.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&bM(this.attrs,t||e.defaultAttrs||FM)&&vM.sameSet(this.marks,n||vM.none)}copy(e=null){return e==this.content?this:new zM(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new zM(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return wM.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),s=r.start(i),a=r.node(i).content.cut(r.pos-s,o.pos-s);return new wM(a,r.depth-i,o.depth-i)}replace(e,t,n){return kM(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return RM.resolveCached(this,e)}resolveNoCache(e){return RM.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),BM(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=mM.empty,r=0,o=n.childCount){let i=this.contentMatchAt(e).matchFragment(n,r,o),s=i&&i.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=vM.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!vM.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=mM.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}zM.prototype.text=void 0;class _M extends zM{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):BM(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new _M(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new _M(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function BM(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class VM{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new WM(e,t);if(null==n.next)return VM.empty;let r=HM(n);n.next&&n.err("Unexpected trailing text");let o=function(e){let t=Object.create(null);return n(XM(e,0));function n(r){let o=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<o.length;e++)o[e][0]==t&&(r=o[e][1]);XM(e,n).forEach(e=>{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let i=t[r.join(",")]=new VM(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=o[e][1].sort(GM);i.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return i}}(function(e){let t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}function i(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(i(n,t)),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return r(t,s),o(i(e.expr,s),s),[r(s)]}if("plus"==e.type){let s=n();return o(i(e.expr,t),s),o(i(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){let s=t;for(let t=0;t<e.min;t++){let t=n();o(i(e.expr,s),t),s=t}if(-1==e.max)o(i(e.expr,s),s);else for(let t=e.min;t<e.max;t++){let t=n();r(s,t),o(i(e.expr,s),t),s=t}return[r(s)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let s=i(e.exprs[r],t);if(r==e.exprs.length-1)return s;o(s,t=n())}}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(s)&&r.push(s)}o&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(i,s){let a=i.matchFragment(e,n);if(a&&(!t||a.validEnd))return mM.from(s.map(e=>e.createAndFill()));for(let e=0;e<i.next.length;e++){let{type:t,next:n}=i.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:i,next:s}=o.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||r.type&&!s.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}VM.empty=new VM(!0);class WM{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function HM(e){let t=[];do{t.push(UM(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function UM(e){let t=[];do{t.push(qM(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function qM(e){let t=function(e){if(e.eat("(")){let t=HM(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let e in n){let r=n[e];r.isInGroup(t)&&o.push(r)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=KM(e,t)}return t}function YM(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function KM(e,t){let n=YM(e),r=n;return e.eat(",")&&(r="}"!=e.next?YM(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function GM(e,t){return t-e}function XM(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let e=0;e<o.length;e++){let{term:r,to:i}=o[e];r||-1!=n.indexOf(i)||t(i)}}(t),n.sort(GM)}function JM(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ZM(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function QM(e,t,n,r){for(let r in t)if(!(r in e))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function eO(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new nO(e,r,t[r]);return n}class tO{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=eO(e,n.attrs),this.defaultAttrs=JM(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==VM.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ZM(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new zM(this,this.computeAttrs(e),mM.from(t),vM.setFrom(n))}createChecked(e=null,t,n){return t=mM.from(t),this.checkContent(t),new zM(this,this.computeAttrs(e),t,vM.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=mM.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(mM.empty,!0);return o?new zM(this,e,t.append(o),vM.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){QM(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:vM.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new tO(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class nO{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let o=null===n?"null":typeof n;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class rO{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=eO(e,r.attrs),this.excluded=null;let o=JM(this.attrs);this.instance=o?new vM(this,o):null}create(e=null){return!e&&this.instance?this.instance:new vM(this,ZM(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,o)=>n[e]=new rO(e,r++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){QM(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class oO{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=pM.from(e.nodes),t.marks=pM.from(e.marks||{}),this.nodes=tO.compile(this.spec.nodes,this),this.marks=rO.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",o=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=VM.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==o?null:o?iO(this,o.split(" ")):""!=o&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:iO(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof tO))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new _M(n,n.defaultAttrs,e,vM.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return zM.fromJSON(this,e)}markFromJSON(e){return vM.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function iO(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],s=i;if(i)n.push(i);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=r)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class sO{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new pO(this,t,!1);return n.addAll(e,vM.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new pO(this,t,!0);return n.addAll(e,vM.none,t.from,t.to),wM.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(fO(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(e)||r.context&&!n.matchesContext(r.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=hO(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=hO(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new sO(e,sO.schemaRules(e)))}}const aO={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},lO={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},cO={ol:!0,ul:!0};function uO(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class dO{constructor(e,t,n,r,o,i){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=i,this.content=[],this.activeMarks=vM.none,this.match=o||(4&i?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(mM.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=mM.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(mM.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!aO.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class pO{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,o=t.topNode,i=uO(null,t.preserveWhitespace,0)|(n?4:0);r=o?new dO(o.type,o.attrs,vM.none,!0,t.topMatch||o.type.contentMatch,i):new dO(n?null:e.schema.topNodeType,null,vM.none,!0,null,i),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,o=2&r.options?"full":this.localPreserveWS||(1&r.options)>0;if("full"===o||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(o)n="full"!==o?n.replace(/\r?\n|\r/g," "):n.replace(/\r\n?/g,"\n");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],o=e.previousSibling;(!t||o&&"BR"==o.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,o=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i,s=e.nodeName.toLowerCase();cO.hasOwnProperty(s)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&cO.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,n));e:if(a?a.ignore:lO.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let n,r=this.needsBlock;if(aO.hasOwnProperty(s))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let i=a&&a.skip?t:this.readStyles(e,t);i&&this.addAll(e,i),n&&this.sync(o),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,a,n,!1===a.consuming?i:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],o=n.getPropertyValue(r);if(o)for(let e;;){let n=this.parser.matchStyle(r,o,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1!==n.consuming)break;e=n}}return t}addElementByRule(e,t,n,r){let o,i;if(t.node)if(i=this.parser.schema.nodes[t.node],i.isLeaf)this.insertNode(i.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(i,t.attrs||null,n,t.preserveWhitespace);e&&(o=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let s=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}o&&this.sync(s)&&this.open--}addAll(e,t,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=null==r?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,t);this.findAtPoint(e,o)}findPlace(e,t,n){let r,o;for(let t=this.open,i=0;t>=0;t--){let s=this.nodes[t],a=s.findWrapping(e);if(a&&(!r||r.length>a.length+i)&&(r=a,o=s,!a.length))break;if(s.solid){if(n)break;i+=2}}if(!r)return null;this.sync(o);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=vM.none;for(let o of r.concat(e.marks))(t.type?t.type.allowsMarkType(o.type):mO(o.type,e.type))&&(n=o.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let o=this.findPlace(e.create(t),n,!1);return o&&(o=this.enterInner(e,t,n,!0,r)),o}enterInner(e,t,n,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let s=uO(e,o,i.options);4&i.options&&0==i.content.length&&(s|=4);let a=vM.none;return n=n.filter(t=>!(i.type?i.type.allowsMarkType(t.type):mO(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new dO(e,t,a,r,null,s)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=o;s--)if(i(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=o?n.node(s-o).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function fO(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function hO(e){let t={};for(let n in e)t[n]=e[n];return t}function mO(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],s=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t)return!0;if(i.indexOf(o)<0&&s(o))return!0}};if(s(o.contentMatch))return!0}}class gO{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=bO(t).createDocumentFragment());let r=n,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],s=this.serializeMark(n,e.isInline,t);s&&(o.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=wO(bO(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&wO(bO(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return wO(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new gO(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=yO(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return yO(e.marks)}}function yO(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function bO(e){return e.document||window.document}const vO=new WeakMap;function xO(e){let t=vO.get(e);return void 0===t&&vO.set(e,t=function(e){let t=null;function n(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}(e)),t}function wO(e,t,n,r){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o,i=t[0];if("string"!=typeof i)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=xO(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s,a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let l=n?e.createElementNS(n,i):e.createElement(i),c=t[1],u=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){u=2;for(let e in c)if(null!=c[e]){let t=e.indexOf(" ");t>0?l.setAttributeNS(e.slice(0,t),e.slice(t+1),c[e]):l.setAttribute(e,c[e])}}for(let o=u;o<t.length;o++){let i=t[o];if(0===i){if(o<t.length-1||o>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:t,contentDOM:o}=wO(e,i,n,r);if(l.appendChild(t),o){if(s)throw new RangeError("Multiple content holes");s=o}}}return{dom:l,contentDOM:s}}const SO=Math.pow(2,16);function CO(e,t){return e+t*SO}function kO(e){return 65535&e}class MO{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class OO{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&OO.empty)return OO.empty}recover(e){let t=0,n=kO(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/SO}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let a=this.ranges[s]-(this.inverted?r:0);if(a>e)break;let l=this.ranges[s+o],c=this.ranges[s+i],u=a+l;if(e<=u){let o=a+r+((l?e==a?-1:e==u?1:t:t)<0?0:c);if(n)return o;let i=e==(t<0?a:u)?null:CO(s/3,e-a),d=e==a?2:e==u?1:4;return(t<0?e!=a:e!=u)&&(d|=8),new MO(o,d,i)}r+=c-l}return n?e+r:new MO(e+r,0,null)}touches(e,t){let n=0,r=kO(t),o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let a=this.ranges[t+o];if(e<=s+a&&t==3*r)return!0;n+=this.ranges[t+i]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],s=i-(this.inverted?o:0),a=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(s,s+l,a,a+c),o+=c-l}}invert(){return new OO(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?OO.empty:new OO(e<0?[0,-e,0]:[0,0,e])}}OO.empty=new OO([]);class TO{constructor(e,t,n=0,r=(e?e.length:0)){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new TO(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new TO;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this._maps[n].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new MO(e,r,null)}}const PO=Object.create(null);class DO{getMap(){return OO.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=PO[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in PO)throw new RangeError("Duplicate use of step JSON ID "+e);return PO[e]=t,t.prototype.jsonID=e,t}}class EO{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new EO(e,null)}static fail(e){return new EO(null,e)}static fromReplace(e,t,n,r){try{return EO.ok(e.replace(t,n,r))}catch(e){if(e instanceof xM)return EO.fail(e.message);throw e}}}function jO(e,t,n){let r=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(jO(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return mM.fromArray(r)}class AO extends DO{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new wM(jO(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return EO.fromReplace(e,this.from,this.to,o)}invert(){return new RO(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new AO(t.pos,n.pos,this.mark)}merge(e){return e instanceof AO&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new AO(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new AO(t.from,t.to,e.markFromJSON(t.mark))}}DO.jsonID("addMark",AO);class RO extends DO{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new wM(jO(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return EO.fromReplace(e,this.from,this.to,n)}invert(){return new AO(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new RO(t.pos,n.pos,this.mark)}merge(e){return e instanceof RO&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new RO(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new RO(t.from,t.to,e.markFromJSON(t.mark))}}DO.jsonID("removeMark",RO);class NO extends DO{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return EO.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return EO.fromReplace(e,this.pos,this.pos+1,new wM(mM.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new NO(this.pos,t.marks[n]);return new NO(this.pos,this.mark)}}return new IO(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new NO(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new NO(t.pos,e.markFromJSON(t.mark))}}DO.jsonID("addNodeMark",NO);class IO extends DO{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return EO.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return EO.fromReplace(e,this.pos,this.pos+1,new wM(mM.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new NO(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new IO(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new IO(t.pos,e.markFromJSON(t.mark))}}DO.jsonID("removeNodeMark",IO);class LO extends DO{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&FO(e,this.from,this.to)?EO.fail("Structure replace would overwrite content"):EO.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new OO([this.from,this.to-this.from,this.slice.size])}invert(e){return new LO(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new LO(t.pos,Math.max(t.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof LO)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?wM.empty:new wM(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new LO(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?wM.empty:new wM(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new LO(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new LO(t.from,t.to,wM.fromJSON(e,t.slice),!!t.structure)}}DO.jsonID("replace",LO);class $O extends DO{constructor(e,t,n,r,o,i,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=s}apply(e){if(this.structure&&(FO(e,this.from,this.gapFrom)||FO(e,this.gapTo,this.to)))return EO.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return EO.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?EO.fromReplace(e,this.from,this.to,n):EO.fail("Content does not fit in gap")}getMap(){return new OO([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new $O(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new $O(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new $O(t.from,t.to,t.gapFrom,t.gapTo,wM.fromJSON(e,t.slice),t.insert,!!t.structure)}}function FO(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function zO(e,t,n,r=n.contentMatch,o=!0){let i=e.doc.nodeAt(t),s=[],a=t+1;for(let t=0;t<i.childCount;t++){let l=i.child(t),c=a+l.nodeSize,u=r.matchType(l.type);if(u){r=u;for(let t=0;t<l.marks.length;t++)n.allowsMarkType(l.marks[t].type)||e.step(new RO(a,c,l.marks[t]));if(o&&l.isText&&"pre"!=n.whitespace){let e,t,r=/\r?\n|\r/g;for(;e=r.exec(l.text);)t||(t=new wM(mM.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),s.push(new LO(a+e.index,a+e.index+e[0].length,t))}}else s.push(new LO(a,c,wM.empty));a=c}if(!r.validEnd){let t=r.fillBefore(mM.empty,!0);e.replace(a,a,new wM(t,0,0))}for(let t=s.length-1;t>=0;t--)e.step(s[t])}function _O(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function BO(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!_O(r,o,i))break}return null}function VO(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let s=i.length?i[0]:t;return n.canReplaceWith(r,o,s)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),s=t.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let e=r;a&&e<o;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?s:null}(r,t);return i?o.map(WO).concat({type:t,attrs:n}).concat(i.map(WO)):null}function WO(e){return{type:e,attrs:null}}function HO(e,t,n,r){t.forEach((o,i)=>{if(o.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(o.text);){let o=e.mapping.slice(r).map(n+1+i+s.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}})}function UO(e,t,n,r){t.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+i);e.replaceWith(o,o+1,t.type.schema.text("\n"))}})}function qO(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(i,n.childCount),a=r&&r[t+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=r&&r[t]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(s))return!1}let a=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(a,a,l?l.type:o.node(i+1).type)}function YO(e,t){let n=e.resolve(t),r=n.index();return KO(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function KO(e,t){return!(!e||!t||e.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let o=0;o<t.childCount;o++){let i=t.child(o),s=i.type==r?e.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n)return!1;if(!e.type.allowsMarks(i.marks))return!1}return n.validEnd}(e,t))}function GO(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let o,i,s=r.index(e);if(e==r.depth?(o=r.nodeBefore,i=r.nodeAfter):n>0?(o=r.node(e+1),s++,i=r.node(e).maybeChild(s)):(o=r.node(e).maybeChild(s-1),i=r.node(e+1)),o&&!o.isTextblock&&KO(o,i)&&r.node(e).canReplace(s,s+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function XO(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let e=0;e<n.openStart;e++)o=o.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,i=r.index(t)+(n>0?1:0),s=r.node(t),a=!1;if(1==e)a=s.canReplace(i,i,o);else{let e=s.contentMatchAt(i).findWrapping(o.firstChild.type);a=e&&s.canReplaceWith(i,i,e[0])}if(a)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function JO(e,t,n=t,r=wM.empty){if(t==n&&!r.size)return null;let o=e.resolve(t),i=e.resolve(n);return ZO(o,i,r)?new LO(t,n,r):new QO(o,i,r).fit()}function ZO(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}DO.jsonID("replaceAround",$O);class QO{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=mM.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=mM.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let o=this.placed,i=n.depth,s=r.depth;for(;i&&s&&1==o.childCount;)o=o.firstChild.content,i--,s--;let a=new wM(o,i,s);return e>-1?new $O(n.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||n.pos!=this.$to.pos?new LO(n.pos,r.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=nT(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let o=e.firstChild;for(let e=this.depth;e>=0;e--){let i,{type:s,match:a}=this.frontier[e],l=null;if(1==t&&(o?a.matchType(o.type)||(l=a.fillBefore(mM.from(o),!1)):r&&s.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:l};if(2==t&&o&&(i=a.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:i};if(r&&a.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=nT(e,t);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new wM(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=nT(e,t);if(r.childCount<=1&&t>0){let o=e.size-t<=t+r.size;this.unplaced=new wM(eT(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new wM(eT(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let i=this.unplaced,s=n?n.content:i.content,a=i.openStart-e,l=0,c=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)c.push(r.child(e));u=u.matchFragment(r)}let p=s.size+e-(i.content.size-i.openEnd);for(;l<s.childCount;){let e=s.child(l),t=u.matchType(e.type);if(!t)break;l++,(l>1||0==a||e.content.size)&&(u=t,c.push(rT(e.mark(d.allowedMarks(e.marks)),1==l?a:0,l==s.childCount?p:-1)))}let f=l==s.childCount;f||(p=-1),this.placed=tT(this.placed,t,mM.from(c)),this.frontier[t].match=u,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=s;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?wM.empty:new wM(eT(i.content,e-1,1),e-1,p<0?i.openEnd:e-1):new wM(eT(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!oT(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=oT(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=oT(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=tT(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=tT(this.placed,this.depth,mM.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(mM.empty,!0);e.childCount&&(this.placed=tT(this.placed,this.frontier.length,e))}}function eT(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(eT(e.firstChild.content,t-1,n)))}function tT(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(tT(e.lastChild.content,t-1,n)))}function nT(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function rT(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,rT(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(mM.empty,!0)))),e.copy(r)}function oT(e,t,n,r,o){let i=e.node(t),s=o?e.indexAfter(t):e.index(t);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=r.fillBefore(i.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,s)?a:null}function iT(e){return e.spec.defining||e.spec.definingForContent}function sT(e,t,n,r,o){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(sT(o.content,t+1,n,r,o)))}if(t>r){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(mM.empty,!0))}return e}function aT(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}class lT extends DO{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return EO.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return EO.fromReplace(e,this.pos,this.pos+1,new wM(mM.from(r),0,t.isLeaf?0:1))}getMap(){return OO.empty}invert(e){return new lT(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new lT(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new lT(t.pos,t.attr,t.value)}}DO.jsonID("attr",lT);class cT extends DO{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return EO.ok(n)}getMap(){return OO.empty}invert(e){return new cT(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new cT(t.attr,t.value)}}DO.jsonID("docAttr",cT);let uT=class extends Error{};uT=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(uT.prototype=Object.create(Error.prototype)).constructor=uT,uT.prototype.name="TransformError";class dT{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new TO}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new uT(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=wM.empty){let r=JO(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new wM(mM.from(n),0,0))}delete(e,t){return this.replace(e,t,wM.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),i=e.doc.resolve(n);if(ZO(o,i,r))return e.step(new LO(t,n,r));let s=aT(o,e.doc.resolve(n));0==s[s.length-1]&&s.pop();let a=-(o.depth+1);s.unshift(a);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;s.indexOf(e)>-1?a=e:o.before(e)==t&&s.splice(1,0,-e)}let l=s.indexOf(a),c=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=c[e],n=iT(t.type);if(n&&!t.sameMarkup(o.node(Math.abs(a)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let a=(t+u+1)%(r.openStart+1),d=c[a];if(d)for(let t=0;t<s.length;t++){let c=s[(t+l)%s.length],u=!0;c<0&&(u=!1,c=-c);let p=o.node(c-1),f=o.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(o.before(c),u?i.after(c):n,new wM(sT(r.content,0,r.openStart,a),a,r.openEnd))}}let d=e.steps.length;for(let a=s.length-1;a>=0&&(e.replace(t,n,r),!(e.steps.length>d));a--){let e=s[a];e<0||(t=o.before(e),n=i.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}(e.doc,t,r.type);null!=o&&(t=n=o)}e.replaceRange(t,n,new wM(mM.from(r),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=aT(r,o);for(let t=0;t<i.length;t++){let n=i[t],s=t==i.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),o.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return e.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:r,$to:o,depth:i}=t,s=r.before(i+1),a=o.after(i+1),l=s,c=a,u=mM.empty,d=0;for(let e=i,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=mM.from(r.node(e).copy(u)),d++):l--;let p=mM.empty,f=0;for(let e=i,t=!1;e>n;e--)t||o.after(e+1)<o.end(e)?(t=!0,p=mM.from(o.node(e).copy(p)),f++):c++;e.step(new $O(l,c,s,a,new wM(u.append(p),d,f),u.size-d,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let r=null,{linebreakReplacement:o}=e.doc.type.schema,i=e.doc.resolve(t-n),s=i.node().type;if(o&&s.inlineContent){let e="pre"==s.whitespace,t=!!s.contentMatch.matchType(o);e&&!t?r=!1:!e&&t&&(r=!0)}let a=e.steps.length;if(!1===r){let r=e.doc.resolve(t+n);UO(e,r.node(),r.before(),a)}s.inlineContent&&zO(e,t+n-1,s,i.node().contentMatchAt(i.index()),null==r);let l=e.mapping.slice(a),c=l.map(t-n);if(e.step(new LO(c,l.map(t+n,-1),wM.empty,!0)),!0===r){let t=e.doc.resolve(c);HO(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return function(e,t,n){let r=mM.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=mM.from(n[e].type.create(n[e].attrs,r))}let o=t.start,i=t.end;e.step(new $O(o,i,o,i,new wM(r,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,r=null){return function(e,t,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let s="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(r,s)&&function(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(i).map(n),r)){let o=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&UO(e,t,n,i),zO(e,e.mapping.slice(i).map(n,1),r,void 0,null===o);let a=e.mapping.slice(i),l=a.map(n,1),c=a.map(n+t.nodeSize,1);return e.step(new $O(l,c,l+1,c-1,new wM(mM.from(r.create(s,null,t.marks)),0,0),1,!0)),!0===o&&HO(e,t,n,i),!1}})}(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return function(e,t,n,r,o){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new $O(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new wM(mM.from(s),0,0),1,!0))}(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new lT(e,t,n)),this}setDocAttribute(e,t){return this.step(new cT(e,t)),this}addNodeMark(e,t){return this.step(new NO(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t instanceof vM)t.isInSet(n.marks)&&this.step(new IO(e,t));else{let r,o=n.marks,i=[];for(;r=t.isInSet(o);)i.push(new IO(e,r)),o=r.removeFromSet(o);for(let e=i.length-1;e>=0;e--)this.step(i[e])}return this}split(e,t=1,n){return function(e,t,n=1,r){let o=e.doc.resolve(t),i=mM.empty,s=mM.empty;for(let e=o.depth,t=o.depth-n,a=n-1;e>t;e--,a--){i=mM.from(o.node(e).copy(i));let t=r&&r[a];s=mM.from(t?t.type.create(t.attrs,s):o.node(e).copy(s))}e.step(new LO(t,t,new wM(i.append(s),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,r){let o,i,s=[],a=[];e.doc.nodesBetween(t,n,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),d=Math.min(l+e.nodeSize,n),p=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(o&&o.to==c&&o.mark.eq(u[e])?o.to=d:s.push(o=new RO(c,d,u[e])));i&&i.to==c?i.to=d:a.push(i=new AO(c,d,r))}}),s.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,r){let o=[],i=0;e.doc.nodesBetween(t,n,(e,s)=>{if(!e.isInline)return;i++;let a=null;if(r instanceof rO){let t,n=e.marks;for(;t=r.isInSet(n);)(a||(a=[])).push(t),n=t.removeFromSet(n)}else r?r.isInSet(e.marks)&&(a=[r]):a=e.marks;if(a&&a.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;e<a.length;e++){let n,l=a[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==i-1&&l.eq(o[e].style)&&(n=t)}n?(n.to=r,n.step=i):o.push({style:l,from:Math.max(s,t),to:r,step:i})}}}),o.forEach(t=>e.step(new RO(t.from,t.to,t.style)))}(this,e,t,n),this}clearIncompatible(e,t,n){return zO(this,e,t,n),this}}const pT=Object.create(null);class fT{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new hT(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=wM.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let o=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){let{$from:a,$to:l}=i[s],c=e.mapping.slice(o);e.replaceRange(c.map(a.pos),c.map(l.pos),s?wM.empty:t),0==s&&kT(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:s}=r[o],a=e.mapping.slice(n),l=a.map(i.pos),c=a.map(s.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),kT(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new yT(e):CT(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let o=t<0?CT(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):CT(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new wT(e.node(0))}static atStart(e){return CT(e,e,0,0,1)||new wT(e)}static atEnd(e){return CT(e,e,e.content.size,e.childCount,-1)||new wT(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=pT[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in pT)throw new RangeError("Duplicate use of selection JSON ID "+e);return pT[e]=t,t.prototype.jsonID=e,t}getBookmark(){return yT.between(this.$anchor,this.$head).getBookmark()}}fT.prototype.visible=!0;class hT{constructor(e,t){this.$from=e,this.$to=t}}let mT=!1;function gT(e){mT||e.parent.inlineContent||(mT=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class yT extends fT{constructor(e,t=e){gT(e),gT(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return fT.near(n);let r=e.resolve(t.map(this.anchor));return new yT(r.parent.inlineContent?r:n,n)}replace(e,t=wM.empty){if(super.replace(e,t),t==wM.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof yT&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new bT(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new yT(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=fT.findFrom(t,n,!0)||fT.findFrom(t,-n,!0);if(!e)return fT.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(fT.findFrom(e,-n,!0)||fT.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new yT(e,t)}}fT.jsonID("text",yT);class bT{constructor(e,t){this.anchor=e,this.head=t}map(e){return new bT(e.map(this.anchor),e.map(this.head))}resolve(e){return yT.between(e.resolve(this.anchor),e.resolve(this.head))}}class vT extends fT{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?fT.near(o):new vT(o)}content(){return new wM(mM.from(this.node),0,0)}eq(e){return e instanceof vT&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new xT(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new vT(e.resolve(t.anchor))}static create(e,t){return new vT(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}vT.prototype.visible=!1,fT.jsonID("node",vT);class xT{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new bT(n,n):new xT(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&vT.isSelectable(n)?new vT(t):fT.near(t)}}class wT extends fT{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=wM.empty){if(t==wM.empty){e.delete(0,e.doc.content.size);let t=fT.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new wT(e)}map(e){return new wT(e)}eq(e){return e instanceof wT}getBookmark(){return ST}}fT.jsonID("all",wT);const ST={map(){return this},resolve:e=>new wT(e)};function CT(e,t,n,r,o,i=!1){if(t.inlineContent)return yT.create(e,n);for(let s=r-(o>0?0:1);o>0?s<t.childCount:s>=0;s+=o){let r=t.child(s);if(r.isAtom){if(!i&&vT.isSelectable(r))return vT.create(e,n-(o<0?r.nodeSize:0))}else{let t=CT(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function kT(e,t,n){let r=e.steps.length-1;if(r<t)return;let o,i=e.steps[r];(i instanceof LO||i instanceof $O)&&(e.mapping.maps[r].forEach((e,t,n,r)=>{null==o&&(o=r)}),e.setSelection(fT.near(e.doc.resolve(o),n)))}class MT extends dT{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return vM.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||vM.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(fT.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function OT(e,t){return t&&e?e.bind(t):e}class TT{constructor(e,t,n){this.name=e,this.init=OT(t.init,n),this.apply=OT(t.apply,n)}}const PT=[new TT("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new TT("selection",{init:(e,t)=>e.selection||fT.atStart(t.doc),apply:e=>e.selection}),new TT("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new TT("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class DT{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=PT.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new TT(e.key,e.spec.state,e))})}}class ET{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let s=this.config.plugins[i];if(s.spec.appendTransaction){let a=r?r[i].n:0,l=r?r[i].state:this,c=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new ET(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new MT(this)}static create(e){let t=new DT(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new ET(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new DT(this.schema,e.plugins),n=t.fields,r=new ET(t);for(let t=0;t<n.length;t++){let o=n[t].name;r[o]=this.hasOwnProperty(o)?this[o]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new DT(e.schema,e.plugins),o=new ET(r);return r.fields.forEach(r=>{if("doc"==r.name)o.doc=zM.fromJSON(e.schema,t.doc);else if("selection"==r.name)o.selection=fT.fromJSON(o.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let i in n){let s=n[i],a=s.spec.state;if(s.key==r.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[r.name]=a.fromJSON.call(s,e,t[i],o))}o[r.name]=r.init(e,o)}}),o}}function jT(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=jT(o,t,{})),n[r]=o}return n}class AT{constructor(e){this.spec=e,this.props={},e.props&&jT(e.props,this,this.props),this.key=e.key?e.key.key:NT("plugin")}getState(e){return e[this.key]}}const RT=Object.create(null);function NT(e){return e in RT?e+"$"+ ++RT[e]:(RT[e]=0,e+"$")}class IT{constructor(e="key"){this.key=NT(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const LT=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},$T=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let FT=null;const zT=function(e,t,n){let r=FT||(FT=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},_T=function(e,t,n,r){return n&&(VT(e,t,n,r,-1)||VT(e,t,n,r,1))},BT=/^(img|br|input|textarea|hr)$/i;function VT(e,t,n,r,o){for(var i;;){if(e==n&&t==r)return!0;if(t==(o<0?0:WT(e))){let n=e.parentNode;if(!n||1!=n.nodeType||HT(e)||BT.test(e.nodeName)||"false"==e.contentEditable)return!1;t=LT(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;{let n=e.childNodes[t+(o<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable){if(!(null===(i=n.pmViewDesc)||void 0===i?void 0:i.ignoreForSelection))return!1;t+=o}else e=n,t=o<0?WT(e):0}}}}function WT(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function HT(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const UT=function(e){return e.focusNode&&_T(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function qT(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const YT="undefined"!=typeof navigator?navigator:null,KT="undefined"!=typeof document?document:null,GT=YT&&YT.userAgent||"",XT=/Edge\/(\d+)/.exec(GT),JT=/MSIE \d/.exec(GT),ZT=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(GT),QT=!!(JT||ZT||XT),eP=JT?document.documentMode:ZT?+ZT[1]:XT?+XT[1]:0,tP=!QT&&/gecko\/(\d+)/i.test(GT);tP&&(/Firefox\/(\d+)/.exec(GT)||[0,0])[1];const nP=!QT&&/Chrome\/(\d+)/.exec(GT),rP=!!nP,oP=nP?+nP[1]:0,iP=!QT&&!!YT&&/Apple Computer/.test(YT.vendor),sP=iP&&(/Mobile\/\w+/.test(GT)||!!YT&&YT.maxTouchPoints>2),aP=sP||!!YT&&/Mac/.test(YT.platform),lP=!!YT&&/Win/.test(YT.platform),cP=/Android \d/.test(GT),uP=!!KT&&"webkitFontSmoothing"in KT.documentElement.style,dP=uP?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function pP(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function fP(e,t){return"number"==typeof e?e:e[t]}function hP(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function mP(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(1!=s.nodeType){s=$T(s);continue}let e=s,n=e==i.body,a=n?pP(i):hP(e),l=0,c=0;if(t.top<a.top+fP(r,"top")?c=-(a.top-t.top+fP(o,"top")):t.bottom>a.bottom-fP(r,"bottom")&&(c=t.bottom-t.top>a.bottom-a.top?t.top+fP(o,"top")-a.top:t.bottom-a.bottom+fP(o,"bottom")),t.left<a.left+fP(r,"left")?l=-(a.left-t.left+fP(o,"left")):t.right>a.right-fP(r,"right")&&(l=t.right-a.right+fP(o,"right")),l||c)if(n)i.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,r=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let o=e.scrollLeft-n,i=e.scrollTop-r;t={left:t.left-o,top:t.top-i,right:t.right-o,bottom:t.bottom-i}}let u=n?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(u))break;s="absolute"==u?s.offsetParent:$T(s)}}function gP(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=$T(r));return t}function yP(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:o,left:i}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=i&&(r.scrollLeft=i)}}let bP=null;function vP(e,t){let n,r,o,i,s=2e8,a=0,l=t.top,c=t.top;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(1==u.nodeType)e=u.getClientRects();else{if(3!=u.nodeType)continue;e=zT(u).getClientRects()}for(let p=0;p<e.length;p++){let f=e[p];if(f.top<=l&&f.bottom>=c){l=Math.max(f.bottom,l),c=Math.min(f.top,c);let e=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(e<s){n=u,s=e,r=e&&3==n.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==u.nodeType&&e&&(a=d+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!o&&f.left<=t.left&&f.right>=t.left&&(o=u,i={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(a=d+1)}}return!n&&o&&(n=o,r=i,s=0),n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let n=kP(r,1);if(n.top!=n.bottom&&xP(t,n))return{node:e,offset:o+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||s&&1==n.nodeType?{node:e,offset:a}:vP(n,r)}function xP(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function wP(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=e.childNodes[i];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if(xP(t,o))return wP(n,t,o)}}if((i=(i+1)%r)==o)break}return e}function SP(e,t){let n,r=e.dom.ownerDocument,o=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(WT(r.offsetNode),r.offset)}}catch(e){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(WT(r.startContainer),r.startOffset)}}}(r,t.left,t.top);i&&({node:n,offset:o}=i);let s,a=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!a||!e.dom.contains(1!=a.nodeType?a.parentNode:a)){let n=e.dom.getBoundingClientRect();if(!xP(t,n))return null;if(a=wP(e.dom,t,n),!a)return null}if(iP)for(let e=a;n&&e;e=$T(e))e.draggable&&(n=void 0);if(a=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(a,t),n){if(tP&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}let r;uP&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(s=function(e,t,n,r){let o=-1;for(let n=t,i=!1;n!=e.dom;){let t,s=e.docView.nearestDesc(n,!0);if(!s)return null;if(1==s.dom.nodeType&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((t=s.dom.getBoundingClientRect()).width||t.height)&&(s.node.isBlock&&s.parent&&(!i&&t.left>r.left||t.top>r.top?o=s.posBefore:(!i&&t.right<r.left||t.bottom<r.top)&&(o=s.posAfter),i=!0),!s.contentDOM&&o<0&&!s.node.isText))return(s.node.isBlock?r.top<(t.top+t.bottom)/2:r.left<(t.left+t.right)/2)?s.posBefore:s.posAfter;n=s.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}(e,n,o,t))}null==s&&(s=function(e,t,n){let{node:r,offset:o}=vP(t,n),i=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();i=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,i)}(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function CP(e){return e.top<e.bottom||e.left<e.right}function kP(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(CP(e))return e}return Array.prototype.find.call(n,CP)||e.getBoundingClientRect()}const MP=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function OP(e,t,n){let{node:r,offset:o,atom:i}=e.docView.domFromPos(t,n<0?-1:1),s=uP||tP;if(3==r.nodeType){if(!s||!MP.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,i=n<0?1:-1;return n<0&&!o?(t++,i=-1):n>=0&&o==r.nodeValue.length?(e--,i=1):n<0?e--:t++,TP(kP(zT(r,e,t),i),i<0)}{let e=kP(zT(r,o,o),n);if(tP&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=kP(zT(r,o-1,o-1),-1);if(t.top==e.top){let n=kP(zT(r,o,o+1),-1);if(n.top!=e.top)return TP(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==WT(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return PP(e.getBoundingClientRect(),!1)}if(null==i&&o<WT(r)){let e=r.childNodes[o];if(1==e.nodeType)return PP(e.getBoundingClientRect(),!0)}return PP(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==WT(r))){let e=r.childNodes[o-1],t=3==e.nodeType?zT(e,WT(e)-(s?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return TP(kP(t,1),!1)}if(null==i&&o<WT(r)){let e=r.childNodes[o];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?zT(e,0,s?0:1):1==e.nodeType?e:null:null;if(t)return TP(kP(t,-1),!0)}return TP(kP(3==r.nodeType?zT(r):r,-n),n>=0)}function TP(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function PP(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function DP(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}const EP=/[\u0590-\u08ac]/;let jP=null,AP=null,RP=!1;function NP(e,t,n){return jP==t&&AP==n?RP:(jP=t,AP=n,RP="up"==n||"down"==n?function(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return DP(e,t,()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=OP(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=zT(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0})}(e,t,n):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,a=e.domSelection();return a?EP.test(r.parent.textContent)&&a.modify?DP(e,t,()=>{let{focusNode:t,focusOffset:o,anchorNode:i,anchorOffset:s}=e.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&o==d;try{a.collapse(i,s),t&&(t!=i||o!=s)&&a.extend&&a.extend(t,o)}catch(e){}return null!=l&&(a.caretBidiLevel=l),p}):"left"==n||"backward"==n?i:s:r.pos==r.start()||r.pos==r.end()}(e,t,n))}class IP{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>LT(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let o=this.children[n],i=t+o.size;if(i>e||o instanceof VP){r=e-t;break}t=i}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof LP&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?LT(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?LT(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,s=0;;s++){let n=this.children[s],a=i+n.size;if(-1==r&&e<=a){let o=i+n.border;if(e>=o&&t<=a-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=i;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=LT(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(a>t||s==this.children.length-1)){t=a;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=LT(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=a}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let o=Math.min(e,t),i=Math.max(e,t);for(let s=0,a=0;s<this.children.length;s++){let l=this.children[s],c=a+l.size;if(o>a&&i<c)return l.setSelection(e-a-l.border,t-a-l.border,n,r);a=c}let s=this.domFromPos(e,e?-1:1),a=t==e?s:this.domFromPos(t,t?-1:1),l=n.root.getSelection(),c=n.domSelectionRange(),u=!1;if((tP||iP)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if(u=!(!t||"\n"!=e.nodeValue[t-1]),u&&t==e.nodeValue.length)for(let t,n=e;n;n=n.parentNode){if(t=n.nextSibling){"BR"==t.nodeName&&(s=a={node:t.parentNode,offset:LT(t)+1});break}let e=n.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(tP&&c.focusNode&&c.focusNode!=a.node&&1==c.focusNode.nodeType){let e=c.focusNode.childNodes[c.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||u&&iP)&&_T(s.node,s.offset,c.anchorNode,c.anchorOffset)&&_T(a.node,a.offset,c.focusNode,c.focusOffset))return;let d=!1;if((l.extend||e==t)&&!u){l.collapse(s.node,s.offset);try{e!=t&&l.extend(a.node,a.offset),d=!0}catch(e){}}if(!d){if(e>t){let e=s;s=a,a=e}let n=document.createRange();n.setEnd(a.node,a.offset),n.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){let r=n+o.border,s=i-o.border;if(e>=r&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=r||t!=s||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class LP extends IP{constructor(e,t,n,r){let o,i=t.type.toDOM;if("function"==typeof i&&(i=i(n,()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r)),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class $P extends IP{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class FP extends IP{constructor(e,t,n,r,o){super(e,[],n,r),this.mark=t,this.spec=o}static create(e,t,n,r){let o=r.nodeViews[t.type.name],i=o&&o(t,r,n);return i&&i.dom||(i=gO.renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new FP(e,t,i.dom,i.contentDOM||i.dom,i)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=FP.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;t<i&&(o=tD(o,t,i,n)),e>0&&(o=tD(o,0,e,n));for(let e=0;e<o.length;e++)o[e].parent=r;return r.children=o,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class zP extends IP{constructor(e,t,n,r,o,i,s,a,l){super(e,[],o,i),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=s}static create(e,t,n,r,o,i){let s,a=o.nodeViews[t.type.name],l=a&&a(t,o,()=>s?s.parent?s.parent.posBeforeChild(s):void 0:i,n,r),c=l&&l.dom,u=l&&l.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(t.text);else if(!c){let e=gO.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:c,contentDOM:u}=e)}u||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));let d=c;return c=XP(c,n,t),l?s=new WP(e,t,n,r,c,u||null,d,l,o,i+1):t.isText?new BP(e,t,n,r,c,d,o):new zP(e,t,n,r,c,u||null,d,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>mM.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&JP(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,o=e.composing?this.localCompositionInfo(e,t):null,i=o&&o.pos>-1?o:null,s=o&&o.pos<0,a=new QP(this,i&&i.node,e);!function(e,t,n,r){let o=t.locals(e),i=0;if(0==o.length){for(let n=0;n<e.childCount;n++){let s=e.child(n);r(s,o,t.forChild(i,s),n),i+=s.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d,p,f;for(;s<o.length&&o[s].to==i;){let e=o[s++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(eD);for(let e=0;e<d.length;e++)n(d[e],c,!!l)}else n(u,c,!!l);if(l)f=-1,p=l,l=null;else{if(!(c<e.childCount))break;f=c,p=e.child(c++)}for(let e=0;e<a.length;e++)a[e].to<=i&&a.splice(e--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)a.push(o[s++]);let h=i+p.nodeSize;if(p.isText){let e=h;s<o.length&&o[s].from<e&&(e=o[s].from);for(let t=0;t<a.length;t++)a[t].to<e&&(e=a[t].to);e<h&&(l=p.cut(e-i),p=p.cut(0,e-i),h=e,f=-1)}else for(;s<o.length&&o[s].to<h;)s++;r(p,p.isInline&&!p.isLeaf?a.filter(e=>!e.inline):a.slice(),t.forChild(i,p),f),i=h}}(this.node,this.innerDeco,(t,o,i)=>{t.spec.marks?a.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!i&&a.syncToMarks(o==this.node.childCount?vM.none:this.node.child(o).marks,n,e),a.placeWidget(t,e,r)},(t,i,l,c)=>{let u;a.syncToMarks(t.marks,n,e),a.findNodeMatch(t,i,l,c)||s&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=a.findIndexWithChild(o.node))>-1&&a.updateNodeAt(t,i,l,u,e)||a.updateNextNode(t,i,l,e,c,r)||a.addNode(t,i,l,e,r),r+=t.nodeSize}),a.syncToMarks([],n,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),HP(this.contentDOM,this.children,e),sP&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof yT)||n<t||r>t+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let e=o.nodeValue,i=function(e,t,n,r){for(let o=0,i=0;o<e.childCount&&i<=r;){let s=e.child(o++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;o<e.childCount;){let t=e.child(o++);if(i+=t.nodeSize,!t.isText)break;l+=t.text}if(i>=n){if(i>=r&&l.slice(r-t.length-a,r-a)==t)return r-t.length;let e=a<r?l.lastIndexOf(t,r-a-1):-1;if(e>=0&&e+t.length+a>=n)return a+e;if(n==r&&l.length>=r+t.length-a&&l.slice(r-a,r-a+t.length)==t)return r}}return-1}(this.node.content,e,n-t,r-t);return i<0?null:{node:o,pos:i,text:e}}return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let o=t;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new $P(this,o,t,r);e.input.compositionNodes.push(i),this.children=tD(this.children,n,n+r.length,e,i)}update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(JP(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=KP(this.dom,this.nodeDOM,YP(this.outerDeco,this.node,t),YP(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function _P(e,t,n,r,o){XP(r,t,e);let i=new zP(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class BP extends zP{constructor(e,t,n,r,o,i,s){super(e,t,n,r,o,null,i,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new BP(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class VP extends IP{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class WP extends zP{constructor(e,t,n,r,o,i,s,a,l,c){super(e,t,n,r,o,i,s,l,c),this.spec=a}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function HP(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i<t.length;i++){let s=t[i],a=s.dom;if(a.parentNode==e){for(;a!=r;)r=ZP(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(a,r);if(s instanceof FP){let t=r?r.previousSibling:e.lastChild;HP(s.contentDOM,s.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=ZP(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const UP=function(e){e&&(this.nodeName=e)};UP.prototype=Object.create(null);const qP=[new UP];function YP(e,t,n){if(0==e.length)return qP;let r=n?qP[0]:new UP,o=[r];for(let i=0;i<e.length;i++){let s=e[i].type.attrs;if(s){s.nodeName&&o.push(r=new UP(s.nodeName));for(let e in s){let i=s[e];null!=i&&(n&&1==o.length&&o.push(r=new UP(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+i:"style"==e?r.style=(r.style?r.style+";":"")+i:"nodeName"!=e&&(r[e]=i))}}}return o}function KP(e,t,n,r){if(n==qP&&r==qP)return t;let o=t;for(let t=0;t<r.length;t++){let i=r[t],s=n[t];if(t){let t;s&&s.nodeName==i.nodeName&&o!=e&&(t=o.parentNode)&&t.nodeName.toLowerCase()==i.nodeName||(t=document.createElement(i.nodeName),t.pmIsDeco=!0,t.appendChild(o),s=qP[0]),o=t}GP(o,s||qP[0],i)}return o}function GP(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function XP(e,t,n){return KP(e,e,qP,YP(t,n,1!=e.nodeType))}function JP(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function ZP(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class QP{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,o=e.childCount,i=new Map,s=[];e:for(;o>0;){let a;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof FP)){a=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=e.child(o-1))break;--o,i.set(a,o),s.push(a)}}return{index:o,matched:i,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,o=this.stack.length>>1,i=Math.min(o,e.length);for(;r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){r=t;break}}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=FP.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(e,t,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,o){let i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,i){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof zP){let l=this.preMatch.matched.get(a);if(null!=l&&l!=o)return!1;let c,u=a.dom,d=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&JP(t,a.outerDeco));if(!d&&a.update(e,t,n,r))return this.destroyBetween(this.index,s),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(a,e,t,n,r,i)))return this.destroyBetween(this.index,s),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,i){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!JP(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let s=zP.create(this.top,t,n,r,o,i);if(s.contentDOM){s.children=e.children,e.children=[];for(let e of s.children)e.parent=s}return e.destroy(),s}addNode(e,t,n,r,o){let i=zP.create(this.top,e,t,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new LP(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof FP;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof BP)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((iP||rP)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new VP(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function eD(e,t){return e.type.side-t.type.side}function tD(e,t,n,r,o){let i=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),o&&(i.push(o),o=void 0),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function nD(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a,l,c=r.resolve(s);if(UT(n)){for(a=s;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&vT.isSelectable(e)&&o.parent&&(!e.isInline||!function(e,t,n){for(let r=0==t,o=t==WT(e);r||o;){if(e==n)return!0;let t=LT(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==WT(e)}}(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;l=new vT(s==e?c:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=s,o=s;for(let r=0;r<n.rangeCount;r++){let i=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(i.startContainer,i.startOffset,1)),o=Math.max(o,e.docView.posFromDOM(i.endContainer,i.endOffset,-1))}if(t<0)return null;[a,s]=o==e.state.selection.anchor?[o,t]:[t,o],c=r.resolve(s)}else a=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(a<0)return null}let u=r.resolve(a);if(!l){l=dD(e,u,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)}return l}function rD(e){return e.editable?e.hasFocus():fD(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function oD(e,t=!1){let n=e.state.selection;if(cD(e,n),rD(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&rP){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&_T(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setStart(r.parentNode,LT(r)+1):n.setStart(r,0);n.collapse(!0),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&QT&&eP<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{let r,o,{anchor:i,head:s}=n;!iD||n instanceof yT||(n.$from.parent.inlineContent||(r=sD(e,n.from)),n.empty||n.$from.parent.inlineContent||(o=sD(e,n.to))),e.docView.setSelection(i,s,e,t),iD&&(r&&lD(r),o&&lD(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{rD(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const iD=iP||rP&&oP<63;function sD(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(iP&&o&&"false"==o.contentEditable)return aD(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return aD(o);if(i)return aD(i)}}function aD(e){return e.contentEditable="true",iP&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function lD(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function cD(e,t){if(t instanceof vT){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(uD(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else uD(e)}function uD(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function dD(e,t,n,r){return e.someProp("createSelectionBetween",r=>r(e,t,n))||yT.between(t,n,r)}function pD(e){return!(e.editable&&!e.hasFocus())&&fD(e)}function fD(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function hD(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&fT.findFrom(i,t)}function mD(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function gD(e,t,n){let r=e.state.selection;if(!(r instanceof yT)){if(r instanceof vT&&r.node.isInline)return mD(e,new yT(t>0?r.$to:r.$from));{let n=hD(e.state,t);return!!n&&mD(e,n)}}if(n.indexOf("s")>-1){let{$head:n}=r,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(n.pos+o.nodeSize*(t<0?-1:1));return mD(e,new yT(r.$anchor,i))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=hD(e.state,t);return!!(n&&n instanceof vT)&&mD(e,n)}if(!(aP&&n.indexOf("m")>-1)){let n,o=r.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText)return!1;let s=t<0?o.pos-i.nodeSize:o.pos;return!!(i.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(vT.isSelectable(i)?mD(e,new vT(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):!!uP&&mD(e,new yT(e.state.doc.resolve(t<0?s:s+i.nodeSize))))}}function yD(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function bD(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function vD(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,s=!1;tP&&1==n.nodeType&&r<yD(n)&&bD(n.childNodes[r],-1)&&(s=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(bD(e,-1))o=n,i=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(xD(n))break;{let t=n.previousSibling;for(;t&&bD(t,-1);)o=n.parentNode,i=LT(t),t=t.previousSibling;if(t)n=t,r=yD(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?wD(e,n,r):o&&wD(e,o,i)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,s=yD(n);for(;;)if(r<s){if(1!=n.nodeType)break;if(!bD(n.childNodes[r],1))break;o=n,i=++r}else{if(xD(n))break;{let t=n.nextSibling;for(;t&&bD(t,1);)o=t.parentNode,i=LT(t)+1,t=t.nextSibling;if(t)n=t,r=0,s=yD(n);else{if(n=n.parentNode,n==e.dom)break;r=s=0}}}o&&wD(e,o,i)}(e)}function xD(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function wD(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!HT(e);)t=LT(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!HT(e);)t=LT(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(UT(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout(()=>{e.state==o&&oD(e)},50)}function SD(e,t){let n=e.state.doc.resolve(t);if(!rP&&!lP&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function CD(e,t,n){let r=e.state.selection;if(r instanceof yT&&!r.empty||n.indexOf("s")>-1)return!1;if(aP&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=hD(e.state,t);if(n&&n instanceof vT)return mD(e,n)}if(!o.parent.inlineContent){let n=t<0?o:i,s=r instanceof wT?fT.near(n,t):fT.findFrom(n,t);return!!s&&mD(e,s)}return!1}function kD(e,t){if(!(e.state.selection instanceof yT))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let r=e.state.tr;return t<0?r.delete(n.pos-i.nodeSize,n.pos):r.delete(n.pos,n.pos+i.nodeSize),e.dispatch(r),!0}return!1}function MD(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function OD(e,t){let n=t.keyCode,r=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||aP&&72==n&&"c"==r)return kD(e,-1)||vD(e,-1);if(46==n&&!t.shiftKey||aP&&68==n&&"c"==r)return kD(e,1)||vD(e,1);if(13==n||27==n)return!0;if(37==n||aP&&66==n&&"c"==r){let t=37==n?"ltr"==SD(e,e.state.selection.from)?-1:1:-1;return gD(e,t,r)||vD(e,t)}if(39==n||aP&&70==n&&"c"==r){let t=39==n?"ltr"==SD(e,e.state.selection.from)?1:-1:1;return gD(e,t,r)||vD(e,t)}return 38==n||aP&&80==n&&"c"==r?CD(e,-1,r)||vD(e,-1):40==n||aP&&78==n&&"c"==r?function(e){if(!iP||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;MD(e,n,"true"),setTimeout(()=>MD(e,n,"false"),20)}return!1}(e)||CD(e,1,r)||vD(e,1):r==(aP?"m":"c")&&(66==n||73==n||89==n||90==n)}function TD(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){o--,i--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||gO.fromSchema(e.state.schema),a=$D(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let c,u=l.firstChild,d=0;for(;u&&1==u.nodeType&&(c=ID[u.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=a.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),d++}u=l.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function PD(e,t,n,r,o){let i,s,a=o.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",n=>{t=n(t,a||r,e)}),a)return t?new wM(mM.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):wM.empty;let n=e.someProp("clipboardTextParser",n=>n(t,o,r,e));if(n)s=n;else{let n=o.marks(),{schema:r}=e.state,s=gO.fromSchema(r);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),i=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=$D().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(n=o&&ID[o[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"</"+e+">").reverse().join(""));if(r.innerHTML=function(e){let t=window.trustedTypes;if(!t)return e;FD||(FD=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return FD.createHTML(e)}(e),n)for(let e=0;e<n.length;e++)r=r.querySelector(n[e])||r;return r}(n),uP&&function(e){let t=e.querySelectorAll(rP?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(i);let c=i&&i.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let e=+u[3];e>0;e--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||sO.fromSchema(e.state.schema);s=t.parseSlice(i,{preserveWhitespace:!(!l&&!u),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||DD.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(u)s=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}let{content:o,openStart:i,openEnd:s}=e;for(let e=n.length-2;e>=0;e-=2){let t=r.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;o=mM.from(t.create(n[e+1],o)),i++,s++}return new wM(o,i,s)}(ND(s,+u[1],+u[2]),u[4]);else if(s=wM.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,o=t.node(n).contentMatchAt(t.index(n)),i=[];if(e.forEach(e=>{if(!i)return;let t,n=o.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&r.length&&jD(n,r,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=AD(i[i.length-1],r.length));let t=ED(e,n);i.push(t),o=o.matchType(t.type),r=n}}),i)return mM.from(i)}return e}(s.content,o),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=ND(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e)}),s}const DD=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function ED(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,mM.from(e));return e}function jD(e,t,n,r,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let i=jD(e,t,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==e.length-1?n.type:e[o+1]))return r.copy(r.content.append(mM.from(ED(n,e,o+1))))}}function AD(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,AD(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(mM.empty,!0);return e.copy(n.append(r))}function RD(e,t,n,r,o,i){let s=t<0?e.firstChild:e.lastChild,a=s.content;return e.childCount>1&&(i=0),o<r-1&&(a=RD(a,t,n,r,o+1,i)),o>=n&&(a=t<0?s.contentMatchAt(0).fillBefore(a,i<=o).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(mM.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(a))}function ND(e,t,n){return t<e.openStart&&(e=new wM(RD(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new wM(RD(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const ID={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let LD=null;function $D(){return LD||(LD=document.implementation.createHTMLDocument("title"))}let FD=null;const zD={},_D={},BD={touchstart:!0,touchmove:!0};class VD{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function WD(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function HD(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>UD(e,t))})}function UD(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function qD(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function YD(e){return{left:e.clientX,top:e.clientY}}function KD(e,t,n,r,o){if(-1==r)return!1;let i=e.state.doc.resolve(r);for(let r=i.depth+1;r>0;r--)if(e.someProp(t,t=>r>i.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1)))return!0;return!1}function GD(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function XD(e,t,n,r,o){return KD(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(o?function(e,t){if(-1==t)return!1;let n,r,o=e.state.selection;o instanceof vT&&(n=o.node);let i=e.state.doc.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e);if(vT.isSelectable(t)){r=n&&o.$from.depth>0&&e>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(e);break}}return null!=r&&(GD(e,vT.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&vT.isSelectable(r))&&(GD(e,new vT(n),"pointer"),!0)}(e,n))}function JD(e,t,n,r){return KD(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function ZD(e,t,n,r){return KD(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||function(e,t,n){if(0!=n.button)return!1;let r=e.state.doc;if(-1==t)return!!r.inlineContent&&(GD(e,yT.create(r,0,r.content.size),"pointer"),!0);let o=r.resolve(t);for(let t=o.depth+1;t>0;t--){let n=t>o.depth?o.nodeAfter:o.node(t),i=o.before(t);if(n.inlineContent)GD(e,yT.create(r,i+1,i+1+n.content.size),"pointer");else{if(!vT.isSelectable(n))continue;GD(e,vT.create(r,i),"pointer")}return!0}}(e,n,r)}function QD(e){return aE(e)}_D.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!nE(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!cP||!rP||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!sP||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||OD(e,n)?n.preventDefault():WD(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,qT(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},_D.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},_D.keypress=(e,t)=>{let n=t;if(nE(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||aP&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let r=e.state.selection;if(!(r instanceof yT&&r.$from.sameParent(r.$to))){let t=String.fromCharCode(n.charCode),o=()=>e.state.tr.insertText(t).scrollIntoView();/[\r\n]/.test(t)||e.someProp("handleTextInput",n=>n(e,r.$from.pos,r.$to.pos,t,o))||e.dispatch(o()),n.preventDefault()}};const eE=aP?"metaKey":"ctrlKey";zD.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=QD(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[eE]&&e.input.lastClick.button==n.button&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=e.posAtCoords(YD(n));s&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new tE(e,s,n,!!r)):("doubleClick"==i?JD:ZD)(e,s.pos,s.inside,n)?n.preventDefault():WD(e,"pointer"))};class tE{constructor(e,t,n,r){let o,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[eE],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,i=n.depth?n.before():0}const s=r?null:n.target,a=s?e.docView.nearestDesc(s,!0):null;this.target=a&&1==a.dom.nodeType?a.dom:null;let{selection:l}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||l instanceof vT&&l.from<=i&&l.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!tP||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),WD(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>oD(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(YD(e))),this.updateAllowDefault(e),this.allowDefault||!t?WD(this.view,"pointer"):XD(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||iP&&this.mightDrag&&!this.mightDrag.node.isAtom||rP&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(GD(this.view,fT.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):WD(this.view,"pointer")}move(e){this.updateAllowDefault(e),WD(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function nE(e,t){return!!e.composing||!!(iP&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}zD.touchstart=e=>{e.input.lastTouch=Date.now(),QD(e),WD(e,"pointer")},zD.touchmove=e=>{e.input.lastTouch=Date.now(),WD(e,"pointer")},zD.contextmenu=e=>QD(e);const rE=cP?5e3:-1;function oE(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>aE(e),t))}function iE(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function sE(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=WT(e=e.childNodes[t-1])}else{if(!e.parentNode||HT(e))return null;t=LT(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||HT(e))return null;t=LT(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function aE(e,t=!1){if(!(cP&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),iE(e),t||e.docView&&e.docView.dirty){let n=nD(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}_D.compositionstart=_D.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof yT&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),aE(e,!0),e.markCursor=null;else if(aE(e,!t.selection.empty),tP&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}oE(e,rE)},_D.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,oE(e,20))};const lE=QT&&eP<15||sP&&dP<604;function cE(e,t,n,r,o){let i=PD(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,o,i||wM.empty)))return!0;if(!i)return!1;let s=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),a=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(i);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function uE(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}zD.copy=_D.cut=(e,t)=>{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let i=lE?null:n.clipboardData,s=r.content(),{dom:a,text:l}=TD(e,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,a),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},_D.paste=(e,t)=>{let n=t;if(e.composing&&!cP)return;let r=lE?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&cE(e,uE(r),r.getData("text/html"),o,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?cE(e,r.value,null,o,t):cE(e,r.textContent,r.innerHTML,o,t)},50)}(e,n)};class dE{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}const pE=aP?"altKey":"ctrlKey";function fE(e,t){let n=e.someProp("dragCopies",e=>!e(t));return null!=n?n:!t[pE]}zD.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o,i=e.state.selection,s=i.empty?null:e.posAtCoords(YD(n));if(s&&s.pos>=i.from&&s.pos<=(i instanceof vT?i.to-1:i.to));else if(r&&r.mightDrag)o=vT.create(e.state.doc,r.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=vT.create(e.state.doc,t.posBefore))}let a=(o||e.state.selection).content(),{dom:l,text:c,slice:u}=TD(e,a);(!n.dataTransfer.files.length||!rP||oP>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(lE?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",lE||n.dataTransfer.setData("text/plain",c),e.dragging=new dE(u,fE(e,n),o)},zD.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},_D.dragover=_D.dragenter=(e,t)=>t.preventDefault(),_D.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(YD(n));if(!o)return;let i=e.state.doc.resolve(o.pos),s=r&&r.slice;s?e.someProp("transformPasted",t=>{s=t(s,e)}):s=PD(e,uE(n.dataTransfer),lE?null:n.dataTransfer.getData("text/html"),!1,i);let a=!(!r||!fE(e,n));if(e.someProp("handleDrop",t=>t(e,n,s||wM.empty,a)))return void n.preventDefault();if(!s)return;n.preventDefault();let l=s?XO(e.state.doc,i.pos,s):i.pos;null==l&&(l=i.pos);let c=e.state.tr;if(a){let{node:e}=r;e?e.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,p=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(p))return;let f=c.doc.resolve(u);if(d&&vT.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new vT(f));else{let t=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,o)=>t=o),c.setSelection(dD(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},zD.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&oD(e)},20))},zD.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},zD.beforeinput=(e,t)=>{if(rP&&cP&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,qT(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in _D)zD[e]=_D[e];function hE(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class mE{constructor(e,t){this.toDOM=e,this.spec=t||xE,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:i}=e.mapResult(t.from+r,this.side<0?-1:1);return i?null:new bE(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof mE&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&hE(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class gE{constructor(e,t){this.attrs=e,this.spec=t||xE}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new bE(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof gE&&hE(this.attrs,e.attrs)&&hE(this.spec,e.spec)}static is(e){return e.type instanceof gE}destroy(){}}class yE{constructor(e,t){this.attrs=e,this.spec=t||xE}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new bE(o.pos-n,i.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof yE&&hE(this.attrs,e.attrs)&&hE(this.spec,e.spec)}destroy(){}}class bE{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new bE(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new bE(e,e,new mE(t,n))}static inline(e,t,n,r){return new bE(e,t,new gE(n,r))}static node(e,t,n,r){return new bE(e,t,new yE(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof gE}get widget(){return this.type instanceof mE}}const vE=[],xE={};class wE{constructor(e,t){this.local=e.length?e:vE,this.children=t.length?t:vE}static create(e,t){return t.length?TE(t,e,0,xE):SE}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let i=0;i<this.local.length;i++){let s=this.local[i];s.from<=t&&s.to>=e&&(!o||o(s.spec))&&n.push(s.copy(s.from+r,s.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let s=this.children[i]+1;this.children[i+2].findInner(e-s,t-s,n,r+s,o)}}map(e,t,n){return this==SE||0==e.maps.length?this:this.mapInner(e,t,0,0,n||xE)}mapInner(e,t,n,r,o){let i;for(let s=0;s<this.local.length;s++){let a=this.local[s].map(e,n,r);a&&a.type.valid(t,a)?(i||(i=[])).push(a):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,r,o,i,s){let a=e.slice();for(let e=0,t=i;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,o,i)=>{let s=i-o-(n-e);for(let o=0;o<a.length;o+=3){let i=a[o+1];if(i<0||e>i+t-r)continue;let l=a[o]+t-r;n>=l?a[o+1]=e<=l?-2:-1:e>=t&&s&&(a[o]+=s,a[o+1]+=s)}r+=s}),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<a.length;t+=3)if(a[t+1]<0){if(-2==a[t+1]){l=!0,a[t+1]=-1;continue}let c=n.map(e[t]+i),u=c-o;if(u<0||u>=r.content.size){l=!0;continue}let d=n.map(e[t+1]+i,-1)-o,{index:p,offset:f}=r.content.findIndex(u),h=r.maybeChild(p);if(h&&f==u&&f+h.nodeSize==d){let r=a[t+2].mapInner(n,h,c+1,e[t]+i+1,s);r!=SE?(a[t]=u,a[t+1]=d,a[t+2]=r):(a[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,r,o,i,s){function a(e,t){for(let i=0;i<e.local.length;i++){let a=e.local[i].map(r,o,t);a?n.push(a):s.onRemove&&s.onRemove(e.local[i].spec)}for(let n=0;n<e.children.length;n+=3)a(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)-1==e[n+1]&&a(e[n+2],t[n]+i+1);return n}(a,e,t,n,o,i,s),c=TE(l,r,0,s);t=c.local;for(let e=0;e<a.length;e+=3)a[e+1]<0&&(a.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<a.length&&a[t]<n;)t+=3;a.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new wE(t.sort(PE),a)}(this.children,i||[],e,t,n,r,o):i?new wE(i.sort(PE),vE):SE}add(e,t){return t.length?this==SE?wE.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach((e,i)=>{let s,a=i+n;if(s=ME(t,e,a)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(e,s,a+1):r.splice(o,0,i,i+e.nodeSize,TE(s,e,a+1,xE)),o+=3}});let i=kE(o?OE(t):t,-n);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new wE(i.length?this.local.concat(i).sort(PE):this.local,r||this.children)}remove(e){return 0==e.length||this==SE?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let o,i=n[r]+t,s=n[r+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>i&&t.to<s&&(e[n]=null,(o||(o=[])).push(t));if(!o)continue;n==this.children&&(n=this.children.slice());let a=n[r+2].removeInner(o,i+1);a!=SE?n[r+2]=a:(n.splice(r,3),r-=3)}if(r.length)for(let n,o=0;o<e.length;o++)if(n=e[o])for(let e=0;e<r.length;e++)r[e].eq(n,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new wE(r,n):SE}forChild(e,t){if(this==SE)return this;if(t.isLeaf)return wE.empty;let n,r;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>o&&t.type instanceof gE){let e=Math.max(o,t.from)-o,n=Math.min(i,t.to)-o;e<n&&(r||(r=[])).push(t.copy(e,n))}}if(r){let e=new wE(r.sort(PE),vE);return n?new CE([e,n]):e}return n||SE}eq(e){if(this==e)return!0;if(!(e instanceof wE)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return DE(this.localsInner(e))}localsInner(e){if(this==SE)return vE;if(e.inlineContent||!this.local.some(gE.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof gE||t.push(this.local[e]);return t}forEachSet(e){e(this)}}wE.empty=new wE([],[]),wE.removeOverlap=DE;const SE=wE.empty;class CE{constructor(e){this.members=e}map(e,t){const n=this.members.map(n=>n.map(e,t,xE));return CE.from(n)}forChild(e,t){if(t.isLeaf)return wE.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=SE&&(o instanceof CE?n=n.concat(o.members):n.push(o))}return CE.from(n)}eq(e){if(!(e instanceof CE)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?DE(n?t:t.sort(PE)):vE}static from(e){switch(e.length){case 0:return SE;case 1:return e[0];default:return new CE(e.every(e=>e instanceof wE)?e:e.reduce((e,t)=>e.concat(t instanceof wE?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function kE(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new bE(o.from+t,o.to+t,o.type))}return n}function ME(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let t,i=0;i<e.length;i++)(t=e[i])&&t.from>n&&t.to<r&&((o||(o=[])).push(t),e[i]=null);return o}function OE(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function TE(e,t,n,r){let o=[],i=!1;t.forEach((t,s)=>{let a=ME(e,t,s+n);if(a){i=!0;let e=TE(a,t,n+s+1,r);e!=SE&&o.push(s,s+t.nodeSize,e)}});let s=kE(i?OE(e):e,-n).sort(PE);for(let e=0;e<s.length;e++)s[e].type.valid(t,s[e])||(r.onRemove&&r.onRemove(s[e].spec),s.splice(e--,1));return s.length||o.length?new wE(s,o):SE}function PE(e,t){return e.from-t.from||e.to-t.to}function DE(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),EE(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),EE(t,o+1,i.copy(r.to,i.to)))}}return t}function EE(e,t,n){for(;t<e.length&&PE(n,e[t])>0;)t++;e.splice(t,0,n)}function jE(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=SE&&t.push(r)}),e.cursorWrapper&&t.push(wE.create(e.state.doc,[e.cursorWrapper.deco])),CE.from(t)}const AE={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},RE=QT&&eP<=11;class NE{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class IE{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new NE,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);QT&&eP<=11&&e.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),RE&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,AE)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(pD(this.view)){if(this.suppressingSelectionUpdates)return oD(this.view);if(QT&&eP<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&_T(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let t=e.focusNode;t;t=$T(t))n.add(t);for(let r=e.anchorNode;r;r=$T(r))if(n.has(r)){t=r;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&pD(e)&&!this.ignoreSelectionChange(n),o=-1,i=-1,s=!1,a=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],a);n&&(o=o<0?n.from:Math.min(n.from,o),i=i<0?n.to:Math.max(n.to,i),n.typeOver&&(s=!0))}if(tP&&a.length){let t=a.filter(e=>"BR"==e.nodeName);if(2==t.length){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;!t||"LI"!=t.nodeName||n&&zE(e,n)==t||r.remove()}}}let l=null;o<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&UT(n)&&(l=nD(e))&&l.eq(fT.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,oD(e),this.currentSelection.set(n),e.scrollToSelection()):(o>-1||r)&&(o>-1&&(e.docView.markDirty(o,i),function(e){if(LE.has(e))return;if(LE.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=tP,$E)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),$E=!0}}(e)),this.handleDOMChange(o,i,s,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||oD(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(QT&&eP<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:i}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(e.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==e.target?LT(r)+1:0,s=n.localPosFromDOM(e.target,i,-1),a=o&&o.parentNode==e.target?LT(o):e.target.childNodes.length;return{from:s,to:n.localPosFromDOM(e.target,a,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let LE=new WeakMap,$E=!1;function FE(e,t){let n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return _T(s.node,s.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function zE(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function _E(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(iP&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||iP&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const BE=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function VE(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=nD(e,t);if(n&&!e.state.selection.eq(n)){if(rP&&cP&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,qT(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),i&&r.setMeta("composition",i),e.dispatch(r)}return}let s=e.state.doc.resolve(t),a=s.sharedDepth(n);t=s.before(a+1),n=e.state.doc.resolve(n).after(a+1);let l,c,u=e.state.selection,d=function(e,t,n){let r,{node:o,fromOffset:i,toOffset:s,from:a,to:l}=e.docView.parseRange(t,n),c=e.domSelectionRange(),u=c.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(r=[{node:u,offset:c.anchorOffset}],UT(c)||r.push({node:c.focusNode,offset:c.focusOffset})),rP&&8===e.input.lastKeyCode)for(let e=s;e>i;e--){let t=o.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){s=e;break}if(!n||n.size)break}let d=e.state.doc,p=e.someProp("domParser")||sO.fromSchema(e.state.schema),f=d.resolve(a),h=null,m=p.parse(o,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:i,to:s,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:r,ruleFromNode:_E,context:f});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),h={anchor:e+a,head:t+a}}return{doc:m,sel:h,from:a,to:l}}(e,t,n),p=e.state.doc,f=p.slice(d.from,d.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(l=e.state.selection.to,c="end"):(l=e.state.selection.from,c="start"),e.input.lastKeyCode=null;let h=function(e,t,n,r,o){let i=e.findDiffStart(t,n);if(null==i)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==o){r-=s+Math.max(0,i-Math.min(s,a))-i}if(s<i&&e.size<t.size){let e=r<=i&&r>=s?i-r:0;i-=e,i&&i<t.size&&UE(t.textBetween(i-1,i+1))&&(i+=e?1:-1),a=i+(a-s),s=i}else if(a<i){let t=r<=i&&r>=a?i-r:0;i-=t,i&&i<e.size&&UE(e.textBetween(i-1,i+1))&&(i+=t?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}(f.content,d.doc.content,d.from,l,c);if(h&&e.input.domChangeCount++,(sP&&e.input.lastIOSEnter>Date.now()-225||cP)&&o.some(e=>1==e.nodeType&&!BE.test(e.nodeName))&&(!h||h.endA>=h.endB)&&e.someProp("handleKeyDown",t=>t(e,qT(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!h){if(!(r&&u instanceof yT&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||d.sel&&d.sel.anchor!=d.sel.head){if(d.sel){let t=WE(e,e.state.doc,d.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);i&&n.setMeta("composition",i),e.dispatch(n)}}return}h={start:u.from,endA:u.to,endB:u.to}}e.state.selection.from<e.state.selection.to&&h.start==h.endB&&e.state.selection instanceof yT&&(h.start>e.state.selection.from&&h.start<=e.state.selection.from+2&&e.state.selection.from>=d.from?h.start=e.state.selection.from:h.endA<e.state.selection.to&&h.endA>=e.state.selection.to-2&&e.state.selection.to<=d.to&&(h.endB+=e.state.selection.to-h.endA,h.endA=e.state.selection.to)),QT&&eP<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>d.from&&" "==d.doc.textBetween(h.start-d.from-1,h.start-d.from+1)&&(h.start--,h.endA--,h.endB--);let m,g=d.doc.resolveNoCache(h.start-d.from),y=d.doc.resolveNoCache(h.endB-d.from),b=p.resolve(h.start),v=g.sameParent(y)&&g.parent.inlineContent&&b.end()>=h.endA;if((sP&&e.input.lastIOSEnter>Date.now()-225&&(!v||o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!v&&g.pos<d.doc.content.size&&(!g.sameParent(y)||!g.parent.inlineContent)&&!/\S/.test(d.doc.textBetween(g.pos,y.pos,"",""))&&(m=fT.findFrom(d.doc.resolve(g.pos+1),1,!0))&&m.head>g.pos)&&e.someProp("handleKeyDown",t=>t(e,qT(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>h.start&&function(e,t,n,r,o){if(n-t<=o.pos-r.pos||HE(r,!0,!1)<o.pos)return!1;let i=e.resolve(t);if(!r.parent.isTextblock){let e=i.nodeAfter;return null!=e&&n==t+e.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=e.resolve(HE(i,!0,!0));return!(!s.parent.isTextblock||s.pos>n||HE(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}(p,h.start,h.endA,g,y)&&e.someProp("handleKeyDown",t=>t(e,qT(8,"Backspace"))))return void(cP&&rP&&e.domObserver.suppressSelectionUpdates());rP&&h.endB==h.start&&(e.input.lastChromeDelete=Date.now()),cP&&!v&&g.start()!=y.start()&&0==y.parentOffset&&g.depth==y.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==h.endA&&(h.endB-=2,y=d.doc.resolveNoCache(h.endB-d.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,qT(13,"Enter"))})},20));let x,w=h.start,S=h.endA,C=t=>{let n=t||e.state.tr.replace(w,S,d.doc.slice(h.start-d.from,h.endB-d.from));if(d.sel){let t=WE(e,n.doc,d.sel);t&&!(rP&&e.composing&&t.empty&&(h.start!=h.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==w||t.head==n.mapping.map(S)-1)||QT&&t.empty&&t.head==w)&&n.setSelection(t)}return i&&n.setMeta("composition",i),n.scrollIntoView()};if(v){if(g.pos==y.pos){QT&&eP<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>oD(e),20));let t=C(e.state.tr.delete(w,S)),n=p.resolve(h.start).marksAcross(p.resolve(h.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(h.endA==h.endB&&(x=function(e,t){let n,r,o,i=e.firstChild.marks,s=t.firstChild.marks,a=i,l=s;for(let e=0;e<s.length;e++)a=s[e].removeFromSet(a);for(let e=0;e<i.length;e++)l=i[e].removeFromSet(l);if(1==a.length&&0==l.length)r=a[0],n="add",o=e=>e.mark(r.addToSet(e.marks));else{if(0!=a.length||1!=l.length)return null;r=l[0],n="remove",o=e=>e.mark(r.removeFromSet(e.marks))}let c=[];for(let e=0;e<t.childCount;e++)c.push(o(t.child(e)));if(mM.from(c).eq(e))return{mark:r,type:n}}(g.parent.content.cut(g.parentOffset,y.parentOffset),b.parent.content.cut(b.parentOffset,h.endA-b.start())))){let t=C(e.state.tr);"add"==x.type?t.addMark(w,S,x.mark):t.removeMark(w,S,x.mark),e.dispatch(t)}else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,y.parentOffset),n=()=>C(e.state.tr.insertText(t,w,S));e.someProp("handleTextInput",r=>r(e,w,S,t,n))||e.dispatch(n())}}else e.dispatch(C())}function WE(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:dD(e,t.resolve(n.anchor),t.resolve(n.head))}function HE(e,t,n){let r=e.depth,o=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}function UE(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class qE{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new VD,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(JE),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=GE(this),KE(this),this.nodeViews=XE(this),this.docView=_P(this.state.doc,YE(this),jE(this),this.dom,this),this.domObserver=new IE(this,(e,t,n,r)=>VE(this,e,t,n,r)),this.domObserver.start(),function(e){for(let t in zD){let n=zD[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!qD(e,t)||UD(e,t)||!e.editable&&t.type in _D||n(e,t)},BD[t]?{passive:!0}:void 0)}iP&&e.dom.addEventListener("input",()=>null),HD(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&HD(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(JE),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n;let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(iE(this),i=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(s||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=XE(this);(function(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(s||t.handleDOMEvents!=this._props.handleDOMEvents)&&HD(this),this.editable=GE(this),KE(this);let a=jE(this),l=YE(this),c=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",u=o||!this.docView.matchesNode(e.doc,l,a);!u&&e.selection.eq(r.selection)||(i=!0);let d="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,s=o+1;s<Math.min(innerHeight,r.bottom);s+=5){let r=e.root.elementFromPoint(i,s);if(!r||r==e.dom||!e.dom.contains(r))continue;let a=r.getBoundingClientRect();if(a.top>=o-20){t=r,n=a.top;break}}return{refDOM:t,refTop:n,stack:gP(e.dom)}}(this);if(i){this.domObserver.stop();let t=u&&(QT||rP)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(u){let n=rP?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=sE(this)),!o&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=_P(e.doc,l,a,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return _T(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?oD(this,t):(cD(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;yP(n,0==r?0:r-t)}(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof vT){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&mP(this,t.getBoundingClientRect(),e)}else mP(this,this.coordsAtPos(this.state.selection.head,1),e);else;}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new dE(e.slice,e.move,r<0?void 0:vT.create(this.state.doc,r))}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let o=this.directPlugins[r].props[e];if(null!=o&&(n=t?t(o):o))return n}let o=this.state.plugins;if(o)for(let r=0;r<o.length;r++){let i=o[r].props[e];if(null!=i&&(n=t?t(i):i))return n}}hasFocus(){if(QT){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(bP)return e.focus(bP);let t=gP(e);e.focus(null==bP?{get preventScroll(){return bP={preventScroll:!0},!0}}:void 0),bP||(bP=!1,yP(t,0))}(this.dom),oD(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e;return e||document}updateRoot(){this._root=null}posAtCoords(e){return SP(this,e)}coordsAtPos(e,t=1){return OP(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return NP(this,t||this.state,e)}pasteHTML(e,t){return cE(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return cE(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return TD(this,e)}destroy(){this.docView&&(!function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],jE(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,FT=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){UD(e,t)||!zD[t.type]||!e.editable&&t.type in _D||zD[t.type](e,t)}(this,e)}domSelectionRange(){let e=this.domSelection();return e?iP&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return FE(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?FE(e,n):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function YE(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[bE.node(0,e.state.doc.content.size,t)]}function KE(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:bE.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function GE(e){return!e.someProp("editable",t=>!1===t(e.state))}function XE(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function JE(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}qE.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};for(var ZE={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},QE={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ej="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),tj="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),nj=0;nj<10;nj++)ZE[48+nj]=ZE[96+nj]=String(nj);for(nj=1;nj<=24;nj++)ZE[nj+111]="F"+nj;for(nj=65;nj<=90;nj++)ZE[nj]=String.fromCharCode(nj+32),QE[nj]=String.fromCharCode(nj);for(var rj in ZE)QE.hasOwnProperty(rj)||(QE[rj]=ZE[rj]);const oj="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),ij="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function sj(e){let t,n,r,o,i=e.split(/-(?!$)/),s=i[i.length-1];"Space"==s&&(s=" ");for(let e=0;e<i.length-1;e++){let s=i[e];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else{if(!/^mod$/i.test(s))throw new Error("Unrecognized modifier name: "+s);oj?o=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),r&&(s="Shift-"+s),s}function aj(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function lj(e){let t=function(e){let t=Object.create(null);for(let n in e)t[sj(n)]=e[n];return t}(e);return function(e,n){let r,o=function(e){var t=!(ej&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||tj&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?QE:ZE)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),i=t[aj(o,n)];if(i&&i(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[aj(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(ij&&n.ctrlKey&&n.altKey)&&(r=ZE[n.keyCode])&&r!=o){let o=t[aj(r,n)];if(o&&o(e.state,e.dispatch,e))return!0}}return!1}}const cj=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function uj(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const dj=(e,t,n)=>{let r=uj(e,n);if(!r)return!1;let o=mj(r);if(!o){let n=r.blockRange(),o=n&&BO(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(Tj(e,o,t,-1))return!0;if(0==r.parent.content.size&&(fj(i,"end")||vT.isSelectable(i)))for(let n=r.depth;;n--){let s=JO(e.doc,r.before(n),r.after(n),wM.empty);if(s&&s.slice.size<s.to-s.from){if(t){let n=e.tr.step(s);n.setSelection(fj(i,"end")?fT.findFrom(n.doc.resolve(n.mapping.map(o.pos,-1)),-1):vT.create(n.doc,o.pos-i.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||r.node(n-1).childCount>1)break}return!(!i.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0)};function pj(e,t,n){let r=t.nodeBefore,o=t.pos-1;for(;!r.isTextblock;o--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let i=t.nodeAfter,s=t.pos+1;for(;!i.isTextblock;s++){if(i.type.spec.isolating)return!1;let e=i.firstChild;if(!e)return!1;i=e}let a=JO(e.doc,o,s,wM.empty);if(!a||a.from!=o||a instanceof LO&&a.slice.size>=s-o)return!1;if(n){let t=e.tr.step(a);t.setSelection(yT.create(t.doc,o)),n(t.scrollIntoView())}return!0}function fj(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const hj=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=mj(r)}let s=i&&i.nodeBefore;return!(!s||!vT.isSelectable(s))&&(t&&t(e.tr.setSelection(vT.create(e.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function mj(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function gj(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const yj=(e,t,n)=>{let r=gj(e,n);if(!r)return!1;let o=vj(r);if(!o)return!1;let i=o.nodeAfter;if(Tj(e,o,t,1))return!0;if(0==r.parent.content.size&&(fj(i,"start")||vT.isSelectable(i))){let n=JO(e.doc,r.before(),r.after(),wM.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(fj(i,"start")?fT.findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):vT.create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)},bj=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=vj(r)}let s=i&&i.nodeAfter;return!(!s||!vT.isSelectable(s))&&(t&&t(e.tr.setSelection(vT.create(e.doc,i.pos)).scrollIntoView()),!0)};function vj(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const xj=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function wj(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Sj=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=wj(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,s.createAndFill());o.setSelection(fT.near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},Cj=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof wT||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=wj(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,s=e.tr.insert(n,i.createAndFill());s.setSelection(yT.create(s.doc,n+1)),t(s.scrollIntoView())}return!0},kj=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(qO(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&BO(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};const Mj=(e,t)=>{let{$from:n,$to:r}=e.selection;if(e.selection instanceof vT&&e.selection.node.isBlock)return!(!n.parentOffset||!qO(e.doc,n.pos)||(t&&t(e.tr.split(n.pos).scrollIntoView()),0));if(!n.depth)return!1;let o,i,s=[],a=!1,l=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){a=n.end(e)==n.pos+(n.depth-e),l=n.start(e)==n.pos-(n.depth-e),i=wj(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));let t=Oj&&Oj(r.parent,a,n);s.unshift(t||(a&&i?{type:i}:null)),o=e;break}if(1==e)return!1;s.unshift(null)}let c=e.tr;(e.selection instanceof yT||e.selection instanceof wT)&&c.deleteSelection();let u=c.mapping.map(n.pos),d=qO(c.doc,u,s.length,s);if(d||(s[0]=i?{type:i}:null,d=qO(c.doc,u,s.length,s)),!d)return!1;if(c.split(u,s.length,s),!a&&l&&n.node(o).type!=i){let e=c.mapping.map(n.before(o)),t=c.doc.resolve(e);i&&n.node(o-1).canReplaceWith(t.index(),t.index()+1,i)&&c.setNodeMarkup(c.mapping.map(n.before(o)),i)}return t&&t(c.scrollIntoView()),!0};var Oj;function Tj(e,t,n,r){let o,i,s=t.nodeBefore,a=t.nodeAfter,l=s.type.spec.isolating||a.type.spec.isolating;if(!l&&function(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,i=t.index();return!(!(r&&o&&r.type.compatibleContent(o.type))||(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!o.isTextblock&&!YO(e.doc,t.pos)||(n&&n(e.tr.join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;let c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(o=(i=s.contentMatchAt(s.childCount)).findWrapping(a.type))&&i.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,i=mM.empty;for(let e=o.length-1;e>=0;e--)i=mM.from(o[e].create(null,i));i=mM.from(s.copy(i));let l=e.tr.step(new $O(t.pos-1,r,t.pos,r,new wM(i,1,0),o.length,!0)),c=l.doc.resolve(r+2*o.length);c.nodeAfter&&c.nodeAfter.type==s.type&&YO(l.doc,c.pos)&&l.join(c.pos),n(l.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&l?null:fT.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),p=d&&BO(d);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(d,p).scrollIntoView()),!0;if(c&&fj(a,"start",!0)&&fj(s,"end")){let r=s,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=a,l=1;for(;!i.isTextblock;i=i.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=mM.empty;for(let e=o.length-1;e>=0;e--)r=mM.from(o[e].copy(r));n(e.tr.step(new $O(t.pos-o.length,t.pos+a.nodeSize,t.pos+l,t.pos+a.nodeSize-l,new wM(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Pj(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection(yT.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}const Dj=Pj(-1),Ej=Pj(1);function jj(e,t=null){return function(n,r){let o=!1;for(let r=0;r<n.selection.ranges.length&&!o;r++){let{$from:{pos:i},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(i,s,(r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(i),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:s}}=n.selection.ranges[r];o.setBlockType(i,s,e,t)}r(o.scrollIntoView())}return!0}}function Aj(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let Rj=Aj(cj,dj,hj),Nj=Aj(cj,yj,bj);const Ij={Enter:Aj(xj,Cj,kj,Mj),"Mod-Enter":Sj,Backspace:Rj,"Mod-Backspace":Rj,"Shift-Backspace":Rj,Delete:Nj,"Mod-Delete":Nj,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new wT(e.doc))),!0)},Lj={"Ctrl-h":Ij.Backspace,"Alt-Backspace":Ij["Mod-Backspace"],"Ctrl-d":Ij.Delete,"Ctrl-Alt-Backspace":Ij["Mod-Delete"],"Alt-Delete":Ij["Mod-Delete"],"Alt-d":Ij["Mod-Delete"],"Ctrl-a":Dj,"Ctrl-e":Ej};for(let e in Ij)Lj[e]=Ij[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function $j(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i);if(!s)return!1;let a=r?n.tr:null;return!!function(e,t,n,r=null){let o=!1,i=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=s.resolve(t.start-2);i=new $M(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new $M(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let a=VO(i,n,r,t);if(!a)return!1;e&&function(e,t,n,r,o){let i=mM.empty;for(let e=n.length-1;e>=0;e--)i=mM.from(n[e].type.create(n[e].attrs,i));e.step(new $O(t.start-(r?2:0),t.end,t.start,t.end,new wM(i,0,0),n.length,!0));let s=0;for(let e=0;e<n.length;e++)n[e].type==o&&(s=e+1);let a=n.length-s,l=t.start+n.length-(r?2:0),c=t.parent;for(let n=t.startIndex,r=t.endIndex,o=!0;n<r;n++,o=!1)!o&&qO(e.doc,l,a)&&(e.split(l,a),l+=2*a),l+=c.child(n).nodeSize}(e,t,a,o,n);return!0}(a,s,e,t)&&(r&&r(a.scrollIntoView()),!0)}}function Fj(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);return!!i&&(!n||(r.node(i.depth-1).type==e?function(e,t,n,r){let o=e.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new $O(i-1,s,i,s,new wM(mM.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new $M(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const a=BO(r);if(null==a)return!1;o.lift(r,a);let l=o.doc.resolve(o.mapping.map(i,-1)-1);YO(o.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&o.join(l.pos);return t(o.scrollIntoView()),!0}(t,n,e,i):function(e,t,n){let r=e.tr,o=n.parent;for(let e=n.end,t=n.endIndex-1,i=n.startIndex;t>i;t--)e-=o.child(t).nodeSize,r.delete(e-1,e+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let a=0==n.startIndex,l=n.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?mM.empty:mM.from(o))))return!1;let d=i.pos,p=d+s.nodeSize;return r.step(new $O(d-(a?1:0),p+(l?1:0),d+1,p-1,new wM((a?mM.empty:mM.from(o.copy(mM.empty))).append(l?mM.empty:mM.from(o.copy(mM.empty))),a?0:1,l?0:1),a?0:1)),t(r.scrollIntoView()),!0}(t,n,i)))}}function zj(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class _j{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{const n=t(...e)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s=[],a=!!e,l=e||o.tr,c={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{const r=this.buildProps(l,t),o=n(...e)(r);return s.push(o),c}])),run:()=>(a||!t||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),s.every(e=>!0===e))};return c}createCan(e){const{rawCommands:t,state:n}=this,r=!1,o=e||n.tr,i=this.buildProps(o,r),s=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})]));return{...s,chain:()=>this.createChain(o,r)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s={tr:e,editor:r,view:i,state:zj({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(s)]))}};return s}}class Bj{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}}function Vj(e,t,n){if(void 0===e.config[t]&&e.parent)return Vj(e.parent,t,n);if("function"==typeof e.config[t]){return e.config[t].bind({...n,parent:e.parent?Vj(e.parent,t,n):null})}return e.config[t]}function Wj(e){return{baseExtensions:e.filter(e=>"extension"===e.type),nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}function Hj(e){const t=[],{nodeExtensions:n,markExtensions:r}=Wj(e),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{const n=Vj(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage,extensions:o});if(!n)return;n().forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...i,...r}})})})})}),o.forEach(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=Vj(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach(([n,r])=>{const o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})})}),t}function Uj(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function qj(...e){return e.filter(e=>!!e).reduce((e,t)=>{const n={...e};return Object.entries(t).forEach(([e,t])=>{if(n[e])if("class"===e){const r=t?String(t).split(" "):[],o=n[e]?n[e].split(" "):[],i=r.filter(e=>!o.includes(e));n[e]=[...o,...i].join(" ")}else if("style"===e){const r=t?t.split(";").map(e=>e.trim()).filter(Boolean):[],o=n[e]?n[e].split(";").map(e=>e.trim()).filter(Boolean):[],i=new Map;o.forEach(e=>{const[t,n]=e.split(":").map(e=>e.trim());i.set(t,n)}),r.forEach(e=>{const[t,n]=e.split(":").map(e=>e.trim());i.set(t,n)}),n[e]=Array.from(i.entries()).map(([e,t])=>`${e}: ${t}`).join("; ")}else n[e]=t;else n[e]=t}),n},{})}function Yj(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>qj(e,t),{})}function Kj(e){return"function"==typeof e}function Gj(e,t=void 0,...n){return Kj(e)?t?e.bind(t)(...n):e(...n):e}function Xj(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!=typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null==r?e:{...e,[t.name]:r}},{});return{...r,...o}}}}function Jj(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>("attrs"!==e||!function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t))}function Zj(e,t){var n;const r=Hj(e),{nodeExtensions:o,markExtensions:i}=Wj(e),s=null===(n=o.find(e=>Vj(e,"topNode")))||void 0===n?void 0:n.name,a=Object.fromEntries(o.map(n=>{const o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:t},s=Jj({...e.reduce((e,t)=>{const r=Vj(t,"extendNodeSchema",i);return{...e,...r?r(n):{}}},{}),content:Gj(Vj(n,"content",i)),marks:Gj(Vj(n,"marks",i)),group:Gj(Vj(n,"group",i)),inline:Gj(Vj(n,"inline",i)),atom:Gj(Vj(n,"atom",i)),selectable:Gj(Vj(n,"selectable",i)),draggable:Gj(Vj(n,"draggable",i)),code:Gj(Vj(n,"code",i)),whitespace:Gj(Vj(n,"whitespace",i)),linebreakReplacement:Gj(Vj(n,"linebreakReplacement",i)),defining:Gj(Vj(n,"defining",i)),isolating:Gj(Vj(n,"isolating",i)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),a=Gj(Vj(n,"parseHTML",i));a&&(s.parseDOM=a.map(e=>Xj(e,o)));const l=Vj(n,"renderHTML",i);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:Yj(e,o)}));const c=Vj(n,"renderText",i);return c&&(s.toText=c),[n.name,s]})),l=Object.fromEntries(i.map(n=>{const o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:t},s=Jj({...e.reduce((e,t)=>{const r=Vj(t,"extendMarkSchema",i);return{...e,...r?r(n):{}}},{}),inclusive:Gj(Vj(n,"inclusive",i)),excludes:Gj(Vj(n,"excludes",i)),group:Gj(Vj(n,"group",i)),spanning:Gj(Vj(n,"spanning",i)),code:Gj(Vj(n,"code",i)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),a=Gj(Vj(n,"parseHTML",i));a&&(s.parseDOM=a.map(e=>Xj(e,o)));const l=Vj(n,"renderHTML",i);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:Yj(e,o)})),[n.name,s]}));return new oO({topNode:s,nodes:a,marks:l})}function Qj(e,t){return t.nodes[e]||t.marks[e]||null}function eA(e,t){return Array.isArray(t)?t.some(t=>("string"==typeof t?t:t.name)===e.name):t}function tA(e,t){const n=gO.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function nA(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class rA{constructor(e){this.find=e.find,this.handler=e.handler}}function oA(e){var t;const{editor:n,from:r,to:o,text:i,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(t=c.nodeBefore||c.nodeAfter)||void 0===t?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let u=!1;const d=((e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,o,i)=>{var s,a;const l=(null===(a=(s=e.type.spec).toText)||void 0===a?void 0:a.call(s,{node:e,pos:t,parent:o,index:i}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,r-t))}),n})(c)+i;return s.forEach(e=>{if(u)return;const t=((e,t)=>{if(nA(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r})(d,e.find);if(!t)return;const s=l.state.tr,c=zj({state:l.state,transaction:s}),p={from:r-(t[0].length-i.length),to:o},{commands:f,chain:h,can:m}=new _j({editor:n,state:c});null!==e.handler({state:c,range:p,match:t,commands:f,chain:h,can:m})&&s.steps.length&&(s.setMeta(a,{transform:s,from:r,to:o,text:i}),l.dispatch(s),u=!0)}),u}function iA(e){const{editor:t,rules:n}=e,r=new AT({state:{init:()=>null,apply(e,o,i){const s=e.getMeta(r);if(s)return s;const a=e.getMeta("applyInputRules");return!!a&&setTimeout(()=>{let{text:e}=a;"string"==typeof e||(e=tA(mM.from(e),i.schema));const{from:o}=a,s=o+e.length;oA({editor:t,from:o,to:s,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:o}},props:{handleTextInput:(e,o,i,s)=>oA({editor:t,from:o,to:i,text:s,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout(()=>{const{$cursor:o}=e.state.selection;o&&oA({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(e,o){if("Enter"!==o.key)return!1;const{$cursor:i}=e.state.selection;return!!i&&oA({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}function sA(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function aA(e,t){const n={...e};return sA(e)&&sA(t)&&Object.keys(t).forEach(r=>{sA(t[r])&&sA(e[r])?n[r]=aA(e[r],t[r]):n[r]=t[r]}),n}class lA{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Gj(Vj(this,"addOptions",{name:this.name}))),this.storage=Gj(Vj(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new lA(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>aA(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new lA(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Gj(Vj(t,"addOptions",{name:t.name})),t.storage=Gj(Vj(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find(e=>(null==e?void 0:e.type.name)===t.name))return!1;const i=o.find(e=>(null==e?void 0:e.type.name)===t.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}class cA{constructor(e){this.find=e.find,this.handler=e.handler}}function uA(e){const{editor:t,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:c,can:u}=new _j({editor:t,state:n}),d=[];n.doc.nodesBetween(r,o,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const p=Math.max(r,t),f=Math.min(o,t+e.content.size);((e,t,n)=>{if(nA(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n}):[]})(e.textBetween(p-t,f-t,void 0,""),i.find,s).forEach(e=>{if(void 0===e.index)return;const t=p+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=i.handler({state:n,range:o,match:e,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(f)})});return d.every(e=>null!==e)}let dA=null;function pA(e){const{editor:t,rules:n}=e;let r,o=null,i=!1,s=!1,a="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{r="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{r=null}const l=({state:e,from:n,to:o,rule:i,pasteEvt:s})=>{const l=e.tr,c=zj({state:e,transaction:l});if(uA({editor:t,state:c,from:Math.max(n-1,0),to:o.b-1,rule:i,pasteEvent:s,dropEvent:r})&&l.steps.length){try{r="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{r=null}return a="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,l}},c=n.map(e=>new AT({view(e){const n=n=>{var r;o=(null===(r=e.dom.parentElement)||void 0===r?void 0:r.contains(n.target))?e.dom.parentElement:null,o&&(dA=t)},r=()=>{dA&&(dA=null)};return window.addEventListener("dragstart",n),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",n),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(s=o===e.dom.parentElement,r=t,!s){const e=dA;(null==e?void 0:e.isEditable)&&setTimeout(()=>{const t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{var n;const r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return a=t,i=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{const o=t[0],c="paste"===o.getMeta("uiEvent")&&!i,u="drop"===o.getMeta("uiEvent")&&!s,d=o.getMeta("applyPasteRules"),p=!!d;if(!c&&!u&&!p)return;if(p){let{text:t}=d;"string"==typeof t||(t=tA(mM.from(t),r.schema));const{from:n}=d,o=n+t.length,i=(e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null===(t=n.clipboardData)||void 0===t||t.setData("text/html",e),n})(t);return l({rule:e,state:r,from:n,to:{b:o},pasteEvt:i})}const f=n.doc.content.findDiffStart(r.doc.content),h=n.doc.content.findDiffEnd(r.doc.content);return"number"==typeof f&&h&&f!==h.b?l({rule:e,state:r,from:f,to:h,pasteEvt:a}):void 0}}));return c}class fA{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=fA.resolve(e),this.schema=Zj(this.extensions,t),this.setupExtensions()}static resolve(e){const t=fA.sort(fA.flatten(e)),n=function(e){const t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(e=>{const t=Vj(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e}).flat(10)}static sort(e){return e.sort((e,t)=>{const n=Vj(e,"priority")||100,r=Vj(t,"priority")||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const n=Vj(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Qj(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){const{editor:e}=this,t=fA.sort([...this.extensions].reverse()),n=[],r=[],o=t.map(t=>{const o={name:t.name,options:t.options,storage:t.storage,editor:e,type:Qj(t.name,this.schema)},i=[],s=Vj(t,"addKeyboardShortcuts",o);let a={};if("mark"===t.type&&Vj(t,"exitable",o)&&(a.ArrowRight=()=>lA.handleExit({editor:e,mark:t})),s){const t=Object.fromEntries(Object.entries(s()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}const l=new AT({props:{handleKeyDown:lj(a)}});i.push(l);const c=Vj(t,"addInputRules",o);eA(t,e.options.enableInputRules)&&c&&n.push(...c());const u=Vj(t,"addPasteRules",o);eA(t,e.options.enablePasteRules)&&u&&r.push(...u());const d=Vj(t,"addProseMirrorPlugins",o);if(d){const e=d();i.push(...e)}return i}).flat();return[iA({editor:e,rules:n}),...pA({editor:e,rules:r}),...o]}get attributes(){return Hj(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Wj(this.extensions);return Object.fromEntries(t.filter(e=>!!Vj(e,"addNodeView")).map(t=>{const n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:Uj(t.name,this.schema)},o=Vj(t,"addNodeView",r);if(!o)return[];return[t.name,(r,i,s,a,l)=>{const c=Yj(r,n);return o()({node:r,view:i,getPos:s,decorations:a,innerDecorations:l,editor:e,extension:t,HTMLAttributes:c})}]}))}setupExtensions(){this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Qj(e.name,this.schema)};if("mark"===e.type){(null===(t=Gj(Vj(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name)}const r=Vj(e,"onBeforeCreate",n),o=Vj(e,"onCreate",n),i=Vj(e,"onUpdate",n),s=Vj(e,"onSelectionUpdate",n),a=Vj(e,"onTransaction",n),l=Vj(e,"onFocus",n),c=Vj(e,"onBlur",n),u=Vj(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),s&&this.editor.on("selectionUpdate",s),a&&this.editor.on("transaction",a),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),u&&this.editor.on("destroy",u)})}}class hA{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Gj(Vj(this,"addOptions",{name:this.name}))),this.storage=Gj(Vj(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new hA(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>aA(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new hA({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Gj(Vj(t,"addOptions",{name:t.name})),t.storage=Gj(Vj(t,"addStorage",{name:t.name,options:t.options})),t}}function mA(e,t,n){const{from:r,to:o}=t,{blockSeparator:i="\n\n",textSerializers:s={}}=n||{};let a="";return e.nodesBetween(r,o,(e,n,l,c)=>{var u;e.isBlock&&n>r&&(a+=i);const d=null==s?void 0:s[e.type.name];if(d)return l&&(a+=d({node:e,pos:n,parent:l,index:c,range:t})),!1;e.isText&&(a+=null===(u=null==e?void 0:e.text)||void 0===u?void 0:u.slice(Math.max(r,n)-n,o-n))}),a}function gA(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const yA=hA.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new AT({key:new IT("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o,s=Math.min(...i.map(e=>e.$from.pos)),a=Math.max(...i.map(e=>e.$to.pos)),l=gA(n);return mA(r,{from:s,to:a},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});function bA(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:nA(t[r])?t[r].test(e[r]):t[r]===e[r])}function vA(e,t,n={}){return e.find(e=>e.type===t&&bA(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function xA(e,t,n={}){return!!vA(e,t,n)}function wA(e,t,n){var r;if(!e||!t)return;let o=e.parent.childAfter(e.parentOffset);if(o.node&&o.node.marks.some(e=>e.type===t)||(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some(e=>e.type===t))return;n=n||(null===(r=o.node.marks[0])||void 0===r?void 0:r.attrs);if(!vA([...o.node.marks],t,n))return;let i=o.index,s=e.start()+o.offset,a=i+1,l=s+o.node.nodeSize;for(;i>0&&xA([...e.parent.child(i-1).marks],t,n);)i-=1,s-=e.parent.child(i).nodeSize;for(;a<e.parent.childCount&&xA([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function SA(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function CA(e){return e instanceof yT}function kA(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function MA(e,t=null){if(!t)return null;const n=fT.atStart(e),r=fT.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;const o=n.from,i=r.to;return"all"===t?yT.create(e,kA(0,o,i),kA(e.content.size,o,i)):yT.create(e,kA(t,o,i),kA(t,o,i))}function OA(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function TA(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const PA=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&PA(r)}return e};function DA(e){const t=`<body>${e}</body>`,n=(new window.DOMParser).parseFromString(t,"text/html").body;return PA(n)}function EA(e,t,n){if(e instanceof zM||e instanceof mM)return e;n={slice:!0,parseOptions:{},...n};const r="string"==typeof e;if("object"==typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return mM.fromArray(e.map(e=>t.nodeFromJSON(e)));const r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),EA("",t,n)}if(r){if(n.errorOnInvalidContent){let r=!1,o="";const i=new oO({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,o="string"==typeof e?e:e.outerHTML,null)}]}})});if(n.slice?sO.fromSchema(i).parseSlice(DA(e),n.parseOptions):sO.fromSchema(i).parse(DA(e),n.parseOptions),n.errorOnInvalidContent&&r)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const r=sO.fromSchema(t);return n.slice?r.parseSlice(DA(e),n.parseOptions).content:r.parse(DA(e),n.parseOptions)}return EA("",t,n)}function jA(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function AA(e,t,n={}){const{from:r,to:o,empty:i}=e.selection,s=t?Uj(t,e.schema):null,a=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);a.push({node:e,from:n,to:i})});const l=o-r,c=a.filter(e=>!s||s.name===e.node.type.name).filter(e=>bA(e.node.attrs,n,{strict:!1}));if(i)return!!c.length;return c.reduce((e,t)=>e+t.to-t.from,0)>=l}function RA(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function NA(e,t){const n="string"==typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}function IA(e,t,n={},r={}){return EA(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}function LA(e,t){const n=SA(t,e.schema),{from:r,to:o,empty:i}=e.selection,s=[];i?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{s.push(...e.marks)});const a=s.find(e=>e.type.name===n.name);return a?{...a.attrs}:{}}function $A(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function FA(e){return t=>$A(t.$from,e)}function zA(e,t){return mA(e,{from:0,to:e.content.size},t)}function _A(e,t){const n=RA("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=Uj(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,e=>{i.push(e)});const s=i.reverse().find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}(e,t):"mark"===n?LA(e,t):{}}function BA(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(t=>{const o=wA(n.resolve(e),t.type);o&&r.push({mark:t,...o})}):n.nodesBetween(e,t,(e,t)=>{e&&void 0!==(null==e?void 0:e.nodeSize)&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}function VA(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{const r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function WA(e,t,n={}){const{empty:r,ranges:o}=e.selection,i=t?SA(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!i||i.name===e.type.name).find(e=>bA(e.attrs,n,{strict:!1}));let s=0;const a=[];if(o.forEach(({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,(e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);s+=i-n,a.push(...e.marks.map(e=>({mark:e,from:n,to:i})))})}),0===s)return!1;const l=a.filter(e=>!i||i.name===e.mark.type.name).filter(e=>bA(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),c=a.filter(e=>!i||e.mark.type!==i&&e.mark.type.excludes(i)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+c:l)>=s}function HA(e,t){const{nodeExtensions:n}=Wj(t),r=n.find(t=>t.name===e);if(!r)return!1;const o=Gj(Vj(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function UA(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!==(r=e.text)&&void 0!==r?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let r=!0;return e.content.forEach(e=>{!1!==r&&(UA(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function qA(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}const YA=(e,t)=>{const n=FA(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!YO(e.doc,n.pos)||(e.join(n.pos),!0)},KA=(e,t)=>{const n=FA(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!YO(e.doc,r)||(e.join(r),!0)};var GA=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())}),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;const{doc:r,mapping:o}=t,i=r.resolve(o.map(n)),s=r.resolve(o.map(n+e.nodeSize)),a=i.blockRange(s);if(!a)return;const l=BO(a);if(e.type.isTextblock){const{defaultType:e}=i.parent.contentMatchAt(i.index());t.setNodeMarkup(a.start,e)}(l||0===l)&&t.lift(a,l)})}),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>Cj(e,t),cut:(e,t)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const s=r.mapping.map(t);return r.insert(s,i.content),r.setSelection(new yT(r.doc.resolve(s-1))),!0},deleteCurrentNode:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const o=e.selection.$anchor;for(let n=o.depth;n>0;n-=1){if(o.node(n).type===r.type){if(t){const t=o.before(n),r=o.after(n);e.delete(t,r).scrollIntoView()}return!0}}return!1},deleteNode:e=>({tr:t,state:n,dispatch:r})=>{const o=Uj(e,n.schema),i=t.selection.$anchor;for(let e=i.depth;e>0;e-=1){if(i.node(e).type===o){if(r){const n=i.before(e),r=i.after(e);t.delete(n,r).scrollIntoView()}return!0}}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{const{from:r,to:o}=e;return n&&t.delete(r,o),!0},deleteSelection:()=>({state:e,dispatch:t})=>cj(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>Sj(e,t),extendMarkRange:(e,t={})=>({tr:n,state:r,dispatch:o})=>{const i=SA(e,r.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(o){const e=wA(l,i,t);if(e&&e.from<=c&&e.to>=u){const t=yT.create(s,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{const n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};const s=()=>{(TA()||OA())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};if(r.hasFocus()&&null===e||!1===e)return!0;if(i&&null===e&&!CA(n.state.selection))return s(),!0;const a=MA(o.doc,e)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||o.setSelection(a),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},forEach:(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),insertContent:(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:r,dispatch:o,editor:i})=>{var s;if(o){let o;const a=e=>{i.emit("contentError",{editor:i,error:e,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},l={preserveWhitespace:"full",...(n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n}).parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{EA(t,i.schema,{parseOptions:l,errorOnInvalidContent:!0})}catch(e){a(e)}try{o=EA(t,i.schema,{parseOptions:l,errorOnInvalidContent:null!==(s=n.errorOnInvalidContent)&&void 0!==s?s:i.options.enableContentCheck})}catch(e){return a(e),!1}let{from:c,to:u}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},d=!0,p=!0;if(("type"in o?[o]:o).forEach(e=>{e.check(),d=!!d&&(e.isText&&0===e.marks.length),p=!!p&&e.isBlock}),c===u&&p){const{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(c-=1,u+=1)}let f;if(d){if(Array.isArray(t))f=t.map(e=>e.text||"").join("");else if(t instanceof mM){let e="";t.forEach(t=>{t.text&&(e+=t.text)}),f=e}else f="object"==typeof t&&t&&t.text?t.text:t;r.insertText(f,c,u)}else f=o,r.replaceWith(c,u,f);n.updateSelection&&function(e,t,n){const r=e.steps.length-1;if(r<t)return;const o=e.steps[r];if(!(o instanceof LO||o instanceof $O))return;const i=e.mapping.maps[r];let s=0;i.forEach((e,t,n,r)=>{0===s&&(s=r)}),e.setSelection(fT.near(e.doc.resolve(s),n))}(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:f}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:f})}return!0},joinBackward:()=>({state:e,dispatch:t})=>dj(e,t),joinDown:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection;if(r instanceof vT){if(r.node.isTextblock||!YO(e.doc,r.to))return!1;n=r.to}else if(n=GO(e.doc,r.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0})(e,t),joinForward:()=>({state:e,dispatch:t})=>yj(e,t),joinItemBackward:()=>({state:e,dispatch:t,tr:n})=>{try{const r=GO(e.doc,e.selection.$from.pos,-1);return null!=r&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},joinItemForward:()=>({state:e,dispatch:t,tr:n})=>{try{const r=GO(e.doc,e.selection.$from.pos,1);return null!=r&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},joinTextblockBackward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=uj(e,n);if(!r)return!1;let o=mj(r);return!!o&&pj(e,o,t)})(e,t),joinTextblockForward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=gj(e,n);if(!r)return!1;let o=vj(r);return!!o&&pj(e,o,t)})(e,t),joinUp:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection,o=r instanceof vT;if(o){if(r.node.isTextblock||!YO(e.doc,r.from))return!1;n=r.from}else if(n=GO(e.doc,r.from,-1),null==n)return!1;if(t){let r=e.tr.join(n);o&&r.setSelection(vT.create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0})(e,t),keyboardShortcut:e=>({editor:t,view:n,tr:r,dispatch:o})=>{const i=function(e){const t=e.split(/-(?!$)/);let n,r,o,i,s=t[t.length-1];"Space"===s&&(s=" ");for(let e=0;e<t.length-1;e+=1){const s=t[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))o=!0;else{if(!/^mod$/i.test(s))throw new Error(`Unrecognized modifier name: ${s}`);TA()||jA()?i=!0:r=!0}}return n&&(s=`Alt-${s}`),r&&(s=`Ctrl-${s}`),i&&(s=`Meta-${s}`),o&&(s=`Shift-${s}`),s}(e).split(/-(?!$)/),s=i.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,a))});return null==l||l.steps.forEach(e=>{const t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0},lift:(e,t={})=>({state:n,dispatch:r})=>!!AA(n,Uj(e,n.schema),t)&&((e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&BO(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)})(n,r),liftEmptyBlock:()=>({state:e,dispatch:t})=>kj(e,t),liftListItem:e=>({state:t,dispatch:n})=>Fj(Uj(e,t.schema))(t,n),newlineInCode:()=>({state:e,dispatch:t})=>xj(e,t),resetAttributes:(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const a=RA("string"==typeof e?e:e.name,r.schema);return!!a&&("node"===a&&(i=Uj(e,r.schema)),"mark"===a&&(s=SA(e,r.schema)),o&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,NA(e.attrs,t)),s&&e.marks.length&&e.marks.forEach(o=>{s===o.type&&n.addMark(r,r+e.nodeSize,s.create(NA(o.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,dispatch:t})=>{if(t){const t=new wT(e.doc);e.setSelection(t)}return!0},selectNodeBackward:()=>({state:e,dispatch:t})=>hj(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>bj(e,t),selectParentNode:()=>({state:e,dispatch:t})=>((e,t)=>{let n,{$from:r,to:o}=e.selection,i=r.sharedDepth(o);return 0!=i&&(n=r.before(i),t&&t(e.tr.setSelection(vT.create(e.doc,n))),!0)})(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>Ej(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>Dj(e,t),setContent:(e,t=!1,n={},r={})=>({editor:o,tr:i,dispatch:s,commands:a})=>{var l,c;const{doc:u}=i;if("full"!==n.preserveWhitespace){const a=IA(e,o.schema,n,{errorOnInvalidContent:null!==(l=r.errorOnInvalidContent)&&void 0!==l?l:o.options.enableContentCheck});return s&&i.replaceWith(0,u.content.size,a).setMeta("preventUpdate",!t),!0}return s&&i.setMeta("preventUpdate",!t),a.insertContentAt({from:0,to:u.content.size},e,{parseOptions:n,errorOnInvalidContent:null!==(c=r.errorOnInvalidContent)&&void 0!==c?c:o.options.enableContentCheck})},setMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=SA(e,r.schema);if(o)if(s){const e=LA(r,l);n.addStoredMark(l.create({...e,...t}))}else a.forEach(e=>{const o=e.$from.pos,i=e.$to.pos;r.doc.nodesBetween(o,i,(e,r)=>{const s=Math.max(r,o),a=Math.min(r+e.nodeSize,i);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(s,a,l.create({...e.attrs,...t}))}):n.addMark(s,a,l.create(t))})});return function(e,t,n){var r;const{selection:o}=t;let i=null;if(CA(o)&&(i=o.$cursor),i){const t=null!==(r=e.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(t)||!t.some(e=>e.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:t,$to:r})=>{let o=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(o)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),i=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));o=t&&i}return!o}),o})}(r,n,l)},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{const i=Uj(e,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?o().command(({commands:e})=>!!jj(i,{...s,...t})(n)||e.clearNodes()).command(({state:e})=>jj(i,{...s,...t})(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,r=kA(e,0,n.content.size),o=vT.create(n,r);t.setSelection(o)}return!0},setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,{from:r,to:o}="number"==typeof e?{from:e,to:e}:e,i=yT.atStart(n).from,s=yT.atEnd(n).to,a=kA(r,i,s),l=kA(o,i,s),c=yT.create(n,a,l);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{const r=Uj(e,t.schema);return(o=r,function(e,t){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,e=>e.childCount>0&&e.firstChild.type==o);if(!i)return!1;let s=i.startIndex;if(0==s)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=o)return!1;if(t){let n=l.lastChild&&l.lastChild.type==a.type,r=mM.from(n?o.create():null),s=new wM(mM.from(o.create(null,mM.from(a.type.create(null,r)))),n?3:1,0),c=i.start,u=i.end;t(e.tr.step(new $O(c-(n?3:1),u,c,u,s,1,!0)).scrollIntoView())}return!0})(t,n);var o},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=t,{$from:a,$to:l}=i,c=VA(o.extensionManager.attributes,a.node().type.name,a.node().attrs);if(i instanceof vT&&i.node.isBlock)return!(!a.parentOffset||!qO(s,a.pos))&&(r&&(e&&qA(n,o.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const u=l.parentOffset===l.parent.content.size,d=0===a.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=u&&d?[{type:d,attrs:c}]:void 0,f=qO(t.doc,t.mapping.map(a.pos),1,p);if(p||f||!qO(t.doc,t.mapping.map(a.pos),1,d?[{type:d}]:void 0)||(f=!0,p=d?[{type:d,attrs:c}]:void 0),r){if(f&&(i instanceof yT&&t.deleteSelection(),t.split(t.mapping.map(a.pos),1,p),d&&!u&&!a.parentOffset&&a.parent.type!==d)){const e=t.mapping.map(a.before()),n=t.doc.resolve(e);a.node(-1).canReplaceWith(n.index(),n.index()+1,d)&&t.setNodeMarkup(t.mapping.map(a.before()),d)}e&&qA(n,o.extensionManager.splittableMarks),t.scrollIntoView()}return f},splitListItem:(e,t={})=>({tr:n,state:r,dispatch:o,editor:i})=>{var s;const a=Uj(e,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const p=i.extensionManager.attributes;if(0===l.parent.content.size&&l.node(-1).childCount===l.indexAfter(-1)){if(2===l.depth||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(o){let e=mM.empty;const r=l.index(-1)?1:l.index(-2)?2:3;for(let t=l.depth-r;t>=l.depth-3;t-=1)e=mM.from(l.node(t).copy(e));const o=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,i={...VA(p,l.node().type.name,l.node().attrs),...t},c=(null===(s=a.contentMatch.defaultType)||void 0===s?void 0:s.createAndFill(i))||void 0;e=e.append(mM.from(a.createAndFill(null,c)||void 0));const u=l.before(l.depth-(r-1));n.replace(u,l.after(-o),new wM(e,4-r,0));let d=-1;n.doc.nodesBetween(u,n.doc.content.size,(e,t)=>{if(d>-1)return!1;e.isTextblock&&0===e.content.size&&(d=t+1)}),d>-1&&n.setSelection(yT.near(n.doc.resolve(d))),n.scrollIntoView()}return!0}const f=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,h={...VA(p,d.type.name,d.attrs),...t},m={...VA(p,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,c.pos);const g=f?[{type:a,attrs:h},{type:f,attrs:m}]:[{type:a,attrs:h}];if(!qO(n.doc,l.pos,2))return!1;if(o){const{selection:e,storedMarks:t}=r,{splittableMarks:s}=i.extensionManager,a=t||e.$to.parentOffset&&e.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!a||!o)return!0;const c=a.filter(e=>s.includes(e.type.name));n.ensureMarks(c)}return!0},toggleList:(e,t,n,r={})=>({editor:o,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:p}=o.extensionManager,f=Uj(e,s.schema),h=Uj(t,s.schema),{selection:m,storedMarks:g}=s,{$from:y,$to:b}=m,v=y.blockRange(b),x=g||m.$to.parentOffset&&m.$from.marks();if(!v)return!1;const w=FA(e=>HA(e.type.name,d))(m);if(v.depth>=1&&w&&v.depth-w.depth<=1){if(w.node.type===f)return c.liftListItem(h);if(HA(w.node.type.name,d)&&f.validContent(w.node.content)&&a)return l().command(()=>(i.setNodeMarkup(w.pos,f),!0)).command(()=>YA(i,f)).command(()=>KA(i,f)).run()}return n&&x&&a?l().command(()=>{const e=u().wrapInList(f,r),t=x.filter(e=>p.includes(e.type.name));return i.ensureMarks(t),!!e||c.clearNodes()}).wrapInList(f,r).command(()=>YA(i,f)).command(()=>KA(i,f)).run():l().command(()=>!!u().wrapInList(f,r)||c.clearNodes()).wrapInList(f,r).command(()=>YA(i,f)).command(()=>KA(i,f)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=SA(e,r.schema);return WA(r,s,t)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,t)},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{const i=Uj(e,r.schema),s=Uj(t,r.schema),a=AA(r,i,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),a?o.setNode(s,l):o.setNode(i,{...l,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const o=Uj(e,n.schema);return AA(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(e))){if(t){const t=e.tr,n=i.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(i.text){const n=t.doc.resolve(i.from).marks();t.replaceWith(i.from,i.to,e.schema.text(i.text,n))}else t.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=SA(e,r.schema),{$from:c,empty:u,ranges:d}=a;if(!o)return!0;if(u&&s){let{from:e,to:t}=a;const r=null===(i=c.marks().find(e=>e.type===l))||void 0===i?void 0:i.attrs,o=wA(c,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else d.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const a=RA("string"==typeof e?e:e.name,r.schema);return!!a&&("node"===a&&(i=Uj(e,r.schema)),"mark"===a&&(s=SA(e,r.schema)),o&&n.selection.ranges.forEach(e=>{const o=e.$from.pos,a=e.$to.pos;let l,c,u,d;n.selection.empty?r.doc.nodesBetween(o,a,(e,t)=>{i&&i===e.type&&(u=Math.max(t,o),d=Math.min(t+e.nodeSize,a),l=t,c=e)}):r.doc.nodesBetween(o,a,(e,r)=>{r<o&&i&&i===e.type&&(u=Math.max(r,o),d=Math.min(r+e.nodeSize,a),l=r,c=e),r>=o&&r<=a&&(i&&i===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),s&&e.marks.length&&e.marks.forEach(i=>{if(s===i.type){const l=Math.max(r,o),c=Math.min(r+e.nodeSize,a);n.addMark(l,c,s.create({...i.attrs,...t}))}}))}),c&&(void 0!==l&&n.setNodeMarkup(l,void 0,{...c.attrs,...t}),s&&c.marks.length&&c.marks.forEach(e=>{s===e.type&&n.addMark(u,d,s.create({...e.attrs,...t}))}))}),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),a=s&&VO(s,e,t);return!!a&&(r&&r(n.tr.wrap(s,a).scrollIntoView()),!0)}}(Uj(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>$j(Uj(e,n.schema),t)(n,r)});const XA=hA.create({name:"commands",addCommands:()=>({...GA})}),JA=hA.create({name:"drop",addProseMirrorPlugins(){return[new AT({key:new IT("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),ZA=hA.create({name:"editable",addProseMirrorPlugins(){return[new AT({key:new IT("editable"),props:{editable:()=>this.editor.options.editable}})]}}),QA=new IT("focusEvents"),eR=hA.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new AT({key:QA,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),tR=hA.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{const{selection:n,doc:r}=t,{empty:o,$anchor:i}=n,{pos:s,parent:a}=i,l=i.parent.isTextblock&&s>0?t.doc.resolve(s-1):i,c=l.parent.type.spec.isolating,u=i.pos-i.parentOffset,d=c&&1===l.parent.childCount?u===i.pos:fT.atStart(r).from===s;return!(!o||!a.type.isTextblock||a.textContent.length||!d||d&&"paragraph"===i.parent.type.name)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return TA()||jA()?o:r},addProseMirrorPlugins(){return[new AT({key:new IT("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta("composition")))return;const r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),o=e.some(e=>e.getMeta("preventClearDocument"));if(!r||o)return;const{empty:i,from:s,to:a}=t.selection,l=fT.atStart(t.doc).from,c=fT.atEnd(t.doc).to;if(i||!(s===l&&a===c))return;if(!UA(n.doc))return;const u=n.tr,d=zj({state:n,transaction:u}),{commands:p}=new _j({editor:this.editor,state:d});return p.clearNodes(),u.steps.length?u:void 0}})]}}),nR=hA.create({name:"paste",addProseMirrorPlugins(){return[new AT({key:new IT("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),rR=hA.create({name:"tabindex",addProseMirrorPlugins(){return[new AT({key:new IT("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class oR{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!==(e=this.actualDepth)&&void 0!==e?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new oR(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new oR(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new oR(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,n)=>{const r=t.isBlock&&!t.isTextblock,o=t.isAtom&&!t.isText,i=this.pos+n+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const s=this.resolvedPos.doc.resolve(i);if(!r&&s.depth<=this.depth)return;const a=new oR(s,this.editor,r,r?t:null);r&&(a.actualDepth=this.depth+1),e.push(new oR(s,this.editor,r,r?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){const e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];if(e[o]!==t[o])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;const o=Object.keys(t);return this.children.forEach(i=>{if(!(n&&r.length>0)){if(i.node.type.name===e){o.every(e=>t[e]===i.node.attrs[e])&&r.push(i)}n&&r.length>0||(r=r.concat(i.querySelectorAll(e,t,n)))}}),r}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}class iR extends Bj{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on("paste",({event:e,slice:t})=>this.options.onPaste(e,t)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=Kj(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(e=>{const t="string"==typeof e?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[ZA,yA.configure({blockSeparator:null===(t=null===(e=this.options.coreExtensionOptions)||void 0===e?void 0:e.clipboardTextSerializer)||void 0===t?void 0:t.blockSeparator}),XA,eR,tR,rR,JA,nR].filter(e=>"object"!=typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name]):[],...this.options.extensions].filter(e=>["extension","node","mark"].includes(null==e?void 0:e.type));this.extensionManager=new fA(n,this)}createCommandManager(){this.commandManager=new _j({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=IA(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error&&["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message)))throw e;this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>"collaboration"!==e.name),this.createExtensionManager()}}),t=IA(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=MA(t,this.options.autofocus);this.view=new qE(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...null===(e=this.options.editorProps)||void 0===e?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:ET.create({doc:t,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach(e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)}):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return _A(this.state,e)}isActive(e,t){const n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return AA(e,null,n)||WA(e,null,n);const r=RA(t,e.schema);return"node"===r?AA(e,t,n):"mark"===r&&WA(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return tA(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return zA(this.state.doc,{blockSeparator:t,textSerializers:{...gA(this.schema),...n}})}get isEmpty(){return UA(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}$node(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new oR(t,this)}get $doc(){return this.$pos(0)}}function sR(e){return new rA({find:e.find,handler:({state:t,range:n,match:r})=>{const o=Gj(e.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:i}=t,s=r[r.length-1],a=r[0];if(s){const r=a.search(/\S/),l=n.from+a.indexOf(s),c=l+s.length;if(BA(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>l).length)return null;c<n.to&&i.delete(c,n.to),l>n.from&&i.delete(n.from+r,l);const u=n.from+r+s.length;i.addMark(n.from+r,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function aR(e){return new rA({find:e.find,handler:({state:t,range:n,match:r})=>{const o=Gj(e.getAttributes,void 0,r)||{},{tr:i}=t,s=n.from;let a=n.to;const l=e.type.create(o);if(r[1]){let e=s+r[0].lastIndexOf(r[1]);e>a?e=a:a=e+r[1].length;const t=r[0][r[0].length-1];i.insertText(t,s+r[0].length-1),i.replaceWith(e,a,l)}else if(r[0]){const t=e.type.isInline?s:s-1;i.insert(t,e.type.create(o)).delete(i.mapping.map(s),i.mapping.map(a))}i.scrollIntoView()}})}function lR(e){return new rA({find:e.find,handler:({state:t,range:n,match:r})=>{const o=t.doc.resolve(n.from),i=Gj(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)}})}function cR(e){return new rA({find:e.find,handler:({state:t,range:n,match:r,chain:o})=>{const i=Gj(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),l=a&&VO(a,e.type,i);if(!l)return null;if(s.wrap(a,l),e.keepMarks&&e.editor){const{selection:n,storedMarks:r}=t,{splittableMarks:o}=e.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){const e=i.filter(e=>o.includes(e.type.name));s.ensureMarks(e)}}if(e.keepAttributes){const t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";o().updateAttributes(t,i).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&YO(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&s.join(n.from-1)}})}class uR{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Gj(Vj(this,"addOptions",{name:this.name}))),this.storage=Gj(Vj(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new uR(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>aA(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new uR(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Gj(Vj(t,"addOptions",{name:t.name})),t.storage=Gj(Vj(t,"addStorage",{name:t.name,options:t.options})),t}}function dR(e){return new cA({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:o})=>{const i=Gj(e.getAttributes,void 0,r,o);if(!1===i||null===i)return null;const{tr:s}=t,a=r[r.length-1],l=r[0];let c=n.to;if(a){const r=l.search(/\S/),o=n.from+l.indexOf(a),u=o+a.length;if(BA(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>o).length)return null;u<n.to&&s.delete(u,n.to),o>n.from&&s.delete(n.from+r,o),c=n.from+r+a.length,s.addMark(n.from+r,c,e.type.create(i||{})),s.removeStoredMark(e.type)}}})}function pR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fR,hR={exports:{}},mR={};hR.exports=function(){if(fR)return mR;fR=1;var e=i.default,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var i=t(),l=n({inst:{value:i,getSnapshot:t}}),c=l[0].inst,u=l[1];return o(function(){c.value=i,c.getSnapshot=t,a(c)&&u({inst:c})},[e,i,t]),r(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),s(i),i};return mR.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,mR}();var gR=hR.exports;const yR=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},bR=({contentComponent:e})=>{const t=gR.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return i.default.createElement(i.default.Fragment,null,Object.values(t))};class vR extends i.default.Component{constructor(e){var t;super(e),this.editorContentRef=i.default.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:Boolean(null===(t=e.editor)||void 0===t?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=function(){const e=new Set;let t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(n,r){t={...t,[n]:fa.default.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){const r={...t};delete r[n],t=r,e.forEach(e=>e())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const e=this.props.editor;if(!e)return;if(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild)return;const t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){const{editor:e,innerRef:t,...n}=this.props;return i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{ref:yR(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&i.default.createElement(bR,{contentComponent:e.contentComponent}))}}const xR=(0,i.forwardRef)((e,t)=>{const n=i.default.useMemo(()=>Math.floor(4294967295*Math.random()).toString(),[e.editor]);return i.default.createElement(vR,{key:n,innerRef:t,...e})}),wR=i.default.memo(xR);var SR,CR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var s=i[o];if(("_owner"!==s||!t.$$typeof)&&!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n},kR=pR(CR),MR={exports:{}},OR={};MR.exports=function(){if(SR)return OR;SR=1;var e=i.default,t=gR,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return OR.useSyncExternalStoreWithSelector=function(e,t,i,c,u){var d=o(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=a(function(){function e(e){if(!s){if(s=!0,r=e,e=c(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return o=t}return o=e}if(t=o,n(r,e))return t;var i=c(e);return void 0!==u&&u(t,i)?t:(r=e,o=i)}var r,o,s=!1,a=void 0===i?null:i;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,i,c,u]);var f=r(e,d[0],d[1]);return s(function(){p.hasValue=!0,p.value=f},[f]),l(f),f},OR}();var TR=MR.exports;const PR="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;class DR{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}}const ER="undefined"==typeof window,jR=ER||Boolean("undefined"!=typeof window&&window.next);class AR{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?ER||jR?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onBeforeCreate)||void 0===n?void 0:n.call(t,...e)},onBlur:(...e)=>{var t,n;return null===(n=(t=this.options.current).onBlur)||void 0===n?void 0:n.call(t,...e)},onCreate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onCreate)||void 0===n?void 0:n.call(t,...e)},onDestroy:(...e)=>{var t,n;return null===(n=(t=this.options.current).onDestroy)||void 0===n?void 0:n.call(t,...e)},onFocus:(...e)=>{var t,n;return null===(n=(t=this.options.current).onFocus)||void 0===n?void 0:n.call(t,...e)},onSelectionUpdate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onSelectionUpdate)||void 0===n?void 0:n.call(t,...e)},onTransaction:(...e)=>{var t,n;return null===(n=(t=this.options.current).onTransaction)||void 0===n?void 0:n.call(t,...e)},onUpdate:(...e)=>{var t,n;return null===(n=(t=this.options.current).onUpdate)||void 0===n?void 0:n.call(t,...e)},onContentError:(...e)=>{var t,n;return null===(n=(t=this.options.current).onContentError)||void 0===n?void 0:n.call(t,...e)},onDrop:(...e)=>{var t,n;return null===(n=(t=this.options.current).onDrop)||void 0===n?void 0:n.call(t,...e)},onPaste:(...e)=>{var t,n;return null===(n=(t=this.options.current).onPaste)||void 0===n?void 0:n.call(t,...e)}};return new iR(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>{var r;return e===(null===(r=t.extensions)||void 0===r?void 0:r[n])}):e[n]===t[n]))}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===e.length?AR.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps)return void(this.previousDeps=e);const t=this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]);if(t)return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{this.isComponentMounted&&this.instanceId===e?t&&t.setOptions(this.options.current):t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function RR(e={},t=[]){const n=(0,i.useRef)(e);n.current=e;const[r]=(0,i.useState)(()=>new AR(n)),o=gR.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,i.useDebugValue)(o),(0,i.useEffect)(r.onRender(t)),function(e){var t;const[n]=(0,i.useState)(()=>new DR(e.editor)),r=TR.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!==(t=e.equalityFn)&&void 0!==t?t:kR);PR(()=>n.watch(e.editor),[e.editor,n]),(0,i.useDebugValue)(r)}({editor:o,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),o}const NR=(0,i.createContext)({editor:null});NR.Consumer;const IR=(0,i.createContext)({onDragStart:void 0}),LR=()=>(0,i.useContext)(IR);i.default.forwardRef((e,t)=>{const{onDragStart:n}=LR(),r=e.as||"div";return i.default.createElement(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});class $R extends fT{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return $R.valid(n)?new $R(n):fT.near(n)}content(){return wM.empty}eq(e){return e instanceof $R&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new $R(e.resolve(t.pos))}getBookmark(){return new FR(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0!=n)for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&$R.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if($R.valid(s))return s}for(;;){let i=t>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!vT.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=i,r+=t;let s=e.doc.resolve(r);if($R.valid(s))return s}return null}}}$R.prototype.visible=!1,$R.findFrom=$R.findGapCursorFrom,fT.jsonID("gapcursor",$R);class FR{constructor(e){this.pos=e}map(e){return new FR(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return $R.valid(t)?new $R(t):fT.near(t)}}const zR=lj({ArrowLeft:_R("horiz",-1),ArrowRight:_R("horiz",1),ArrowUp:_R("vert",-1),ArrowDown:_R("vert",1)});function _R(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let i=e.selection,s=t>0?i.$to:i.$from,a=i.empty;if(i instanceof yT){if(!o.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}let l=$R.findGapCursorFrom(s,t,a);return!!l&&(r&&r(e.tr.setSelection(new $R(l))),!0)}}function BR(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!$R.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&vT.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new $R(r))),!0)}function VR(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof $R))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=mM.empty;for(let e=r.length-1;e>=0;e--)o=mM.from(r[e].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new wM(o,0,0));return i.setSelection(yT.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function WR(e){if(!(e.selection instanceof $R))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",wE.create(e.doc,[bE.widget(e.selection.head,t,{key:"gapcursor"})])}const HR=hA.create({name:"gapCursor",addProseMirrorPlugins:()=>[new AT({props:{decorations:WR,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&$R.valid(n)?new $R(n):null,handleClick:BR,handleKeyDown:zR,handleDOMEvents:{beforeinput:VR}}})],extendNodeSchema(e){var t;return{allowGapCursor:null!==(t=Gj(Vj(e,"allowGapCursor",{name:e.name,options:e.options,storage:e.storage})))&&void 0!==t?t:null}}});var UR,qR;if("undefined"!=typeof WeakMap){let e=new WeakMap;UR=t=>e.get(t),qR=(t,n)=>(e.set(t,n),n)}else{const e=[],t=10;let n=0;UR=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},qR=(r,o)=>(n==t&&(n=0),e[n++]=r,e[n++]=o)}var YR=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,o=t/this.width|0;let i=r+1,s=o+1;for(let e=1;i<this.width&&this.map[t+e]==n;e++)i++;for(let e=1;s<this.height&&this.map[t+this.width*e]==n;e++)s++;return{left:r,top:o,right:i,bottom:s}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:o,top:i,bottom:s}=this.findCell(e);return"horiz"==t?(n<0?0==r:o==this.width)?null:this.map[i*this.width+(n<0?r-1:o)]:(n<0?0==i:s==this.height)?null:this.map[r+this.width*(n<0?i-1:s)]}rectBetween(e,t){const{left:n,right:r,top:o,bottom:i}=this.findCell(e),{left:s,right:a,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,s),top:Math.min(o,l),right:Math.max(r,a),bottom:Math.max(i,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let o=e.left;o<e.right;o++){const i=r*this.width+o,s=this.map[i];n[s]||(n[s]=!0,o==e.left&&o&&this.map[i-1]==s||r==e.top&&r&&this.map[i-this.width]==s||t.push(s))}return t}positionAt(e,t,n){for(let r=0,o=0;;r++){const i=o+n.child(r).nodeSize;if(r==e){let n=t+e*this.width;const r=(e+1)*this.width;for(;n<r&&this.map[n]<o;)n++;return n==r?i-1:this.map[n]}o=i}}static get(e){return UR(e)||qR(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);const t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const o=e.child(r);let i=0;if(n)for(let t=0;t<r;t++){const n=e.child(t);for(let e=0;e<n.childCount;e++){const o=n.child(e);t+o.attrs.rowspan>r&&(i+=o.attrs.colspan)}}for(let e=0;e<o.childCount;e++){const t=o.child(e);i+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,r=[];let o=0,i=null;const s=[];for(let e=0,o=t*n;e<o;e++)r[e]=0;for(let a=0,l=0;a<n;a++){const c=e.child(a);l++;for(let e=0;;e++){for(;o<r.length&&0!=r[o];)o++;if(e==c.childCount)break;const u=c.child(e),{colspan:d,rowspan:p,colwidth:f}=u.attrs;for(let e=0;e<p;e++){if(e+a>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:l,n:p-e});break}const c=o+e*t;for(let e=0;e<d;e++){0==r[c+e]?r[c+e]=l:(i||(i=[])).push({type:"collision",row:a,pos:l,n:d-e});const n=f&&f[e];if(n){const r=(c+e)%t*2,o=s[r];null==o||o!=n&&1==s[r+1]?(s[r]=n,s[r+1]=1):o==n&&s[r+1]++}}}o+=d,l+=u.nodeSize}const u=(a+1)*t;let d=0;for(;o<u;)0==r[o++]&&d++;d&&(i||(i=[])).push({type:"missing",row:a,n:d}),l++}0!==t&&0!==n||(i||(i=[])).push({type:"zero_sized"});const a=new YR(t,n,r,i);let l=!1;for(let e=0;!l&&e<s.length;e+=2)null!=s[e]&&s[e+1]<n&&(l=!0);l&&function(e,t,n){e.problems||(e.problems=[]);const r={};for(let o=0;o<e.map.length;o++){const i=e.map[o];if(r[i])continue;r[i]=!0;const s=n.nodeAt(i);if(!s)throw new RangeError(`No cell with offset ${i} found`);let a=null;const l=s.attrs;for(let n=0;n<l.colspan;n++){const r=t[2*((o+n)%e.width)];null==r||l.colwidth&&l.colwidth[n]==r||((a||(a=KR(l)))[n]=r)}a&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:a})}}(a,s,e);return a}(e))}};function KR(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function GR(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],o=r.spec.tableRole;o&&(t[o]=r)}}return t}var XR=new IT("selectingCells");function JR(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function ZR(e){const t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function QR(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;const n=JR(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function eN(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function tN(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function nN(e,t,n){const r=e.node(-1),o=YR.get(r),i=e.start(-1),s=o.nextCell(e.pos-i,t,n);return null==s?null:e.node(0).resolve(i+s)}function rN(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function oN(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var iN=class e extends fT{constructor(e,t=e){const n=e.node(-1),r=YR.get(n),o=e.start(-1),i=r.rectBetween(e.pos-o,t.pos-o),s=e.node(0),a=r.cellsInRect(i).filter(e=>e!=t.pos-o);a.unshift(t.pos-o);const l=a.map(e=>{const t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);const r=o+e+1;return new hT(s.resolve(r),s.resolve(r+t.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(t,n){const r=t.resolve(n.map(this.$anchorCell.pos)),o=t.resolve(n.map(this.$headCell.pos));if(eN(r)&&eN(o)&&tN(r,o)){const t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,o):t&&this.isColSelection()?e.colSelection(r,o):new e(r,o)}return yT.between(r,o)}content(){const e=this.$anchorCell.node(-1),t=YR.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},i=[];for(let n=r.top;n<r.bottom;n++){const s=[];for(let i=n*t.width+r.left,a=r.left;a<r.right;a++,i++){const n=t.map[i];if(o[n])continue;o[n]=!0;const a=t.findCell(n);let l=e.nodeAt(n);if(!l)throw RangeError(`No cell with offset ${n} found`);const c=r.left-a.left,u=a.right-r.right;if(c>0||u>0){let e=l.attrs;if(c>0&&(e=rN(e,0,c)),u>0&&(e=rN(e,e.colspan-u,u)),a.left<r.left){if(l=l.type.createAndFill(e),!l)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(a.top<r.top||a.bottom>r.bottom){const e={...l.attrs,rowspan:Math.min(a.bottom,r.bottom)-Math.max(a.top,r.top)};l=a.top<r.top?l.type.createAndFill(e):l.type.create(e,l.content)}s.push(l)}i.push(e.child(n).copy(mM.from(s)))}const s=this.isColSelection()&&this.isRowSelection()?e:i;return new wM(mM.from(s),1,1)}replace(e,t=wM.empty){const n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){const{$from:i,$to:s}=r[o],a=e.mapping.slice(n);e.replace(a.map(i.pos),a.map(s.pos),o?wM.empty:t)}const o=fT.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,t){this.replace(e,new wM(mM.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),n=YR.get(t),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<o.length;n++)e(t.nodeAt(o[n]),r+o[n])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){const r=t.node(-1),o=YR.get(r),i=t.start(-1),s=o.findCell(t.pos-i),a=o.findCell(n.pos-i),l=t.node(0);return s.top<=a.top?(s.top>0&&(t=l.resolve(i+o.map[s.left])),a.bottom<o.height&&(n=l.resolve(i+o.map[o.width*(o.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(i+o.map[a.left])),s.bottom<o.height&&(t=l.resolve(i+o.map[o.width*(o.height-1)+s.right-1]))),new e(t,n)}isRowSelection(){const e=this.$anchorCell.node(-1),t=YR.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),o=t.colCount(this.$headCell.pos-n);if(Math.min(r,o)>0)return!1;const i=r+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,s)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const r=t.node(-1),o=YR.get(r),i=t.start(-1),s=o.findCell(t.pos-i),a=o.findCell(n.pos-i),l=t.node(0);return s.left<=a.left?(s.left>0&&(t=l.resolve(i+o.map[s.top*o.width])),a.right<o.width&&(n=l.resolve(i+o.map[o.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(i+o.map[a.top*o.width])),s.right<o.width&&(t=l.resolve(i+o.map[o.width*(s.top+1)-1]))),new e(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new sN(this.$anchorCell.pos,this.$headCell.pos)}};iN.prototype.visible=!1,fT.jsonID("cell",iN);var sN=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){const t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&tN(t,n)?new iN(t,n):fT.near(n,1)}};function aN(e){if(!(e.selection instanceof iN))return null;const t=[];return e.selection.forEachCell((e,n)=>{t.push(bE.node(n,n+e.nodeSize,{class:"selectedCell"}))}),wE.create(e.doc,t)}var lN=new IT("fix-tables");function cN(e,t,n,r){const o=e.childCount,i=t.childCount;e:for(let s=0,a=0;s<i;s++){const i=t.child(s);for(let t=a,r=Math.min(o,s+3);t<r;t++)if(e.child(t)==i){a=t+1,n+=i.nodeSize;continue e}r(i,n),a<o&&e.child(a).sameMarkup(i)?cN(e.child(a),i,n+1,r):i.nodesBetween(0,i.content.size,r,n+1),n+=i.nodeSize}}function uN(e,t){let n;const r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){const o=YR.get(t);if(!o.problems)return r;r||(r=e.tr);const i=[];for(let e=0;e<o.height;e++)i.push(0);for(let e=0;e<o.problems.length;e++){const s=o.problems[e];if("collision"==s.type){const e=t.nodeAt(s.pos);if(!e)continue;const o=e.attrs;for(let e=0;e<o.rowspan;e++)i[s.row+e]+=s.n;r.setNodeMarkup(r.mapping.map(n+1+s.pos),null,rN(o,o.colspan-s.n,s.n))}else if("missing"==s.type)i[s.row]+=s.n;else if("overlong_rowspan"==s.type){const e=t.nodeAt(s.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+s.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-s.n})}else if("colwidth mismatch"==s.type){const e=t.nodeAt(s.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+s.pos),null,{...e.attrs,colwidth:s.colwidth})}else if("zero_sized"==s.type){const e=r.mapping.map(n);r.delete(e,e+t.nodeSize)}}let s,a;for(let e=0;e<i.length;e++)i[e]&&(null==s&&(s=e),a=e);for(let l=0,c=n+1;l<o.height;l++){const n=t.child(l),o=c+n.nodeSize,u=i[l];if(u>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);const i=[];for(let n=0;n<u;n++){const n=GR(e.schema)[t].createAndFill();n&&i.push(n)}const d=0!=l&&s!=l-1||a!=l?o-1:c+1;r.insert(r.mapping.map(d),i)}c=o}return r.setMeta(lN,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&cN(t.doc,e.doc,0,r):e.doc.descendants(r),n}function dN(e){const t=e.selection,n=QR(e),r=n.node(-1),o=n.start(-1),i=YR.get(r);return{...t instanceof iN?i.rectBetween(t.$anchorCell.pos-o,t.$headCell.pos-o):i.findCell(n.pos-o),tableStart:o,map:i,table:r}}function pN(e,{map:t,tableStart:n,table:r},o){let i=o>0?-1:0;(function(e,t,n){const r=GR(t.type.schema).header_cell;for(let o=0;o<e.height;o++)if(t.nodeAt(e.map[n+o*e.width]).type!=r)return!1;return!0})(t,r,o+i)&&(i=0==o||o==t.width?null:0);for(let s=0;s<t.height;s++){const a=s*t.width+o;if(o>0&&o<t.width&&t.map[a-1]==t.map[a]){const i=t.map[a],l=r.nodeAt(i);e.setNodeMarkup(e.mapping.map(n+i),null,oN(l.attrs,o-t.colCount(i))),s+=l.attrs.rowspan-1}else{const l=null==i?GR(r.type.schema).cell:r.nodeAt(t.map[a+i]).type,c=t.positionAt(s,o,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function fN(e,{map:t,table:n,tableStart:r},o){const i=e.mapping.maps.length;for(let s=0;s<t.height;){const a=s*t.width+o,l=t.map[a],c=n.nodeAt(l),u=c.attrs;if(o>0&&t.map[a-1]==l||o<t.width-1&&t.map[a+1]==l)e.setNodeMarkup(e.mapping.slice(i).map(r+l),null,rN(u,o-t.colCount(l)));else{const t=e.mapping.slice(i).map(r+l);e.delete(t,t+c.nodeSize)}s+=u.rowspan}}function hN(e,{map:t,tableStart:n,table:r},o){var i;let s=n;for(let e=0;e<o;e++)s+=r.child(e).nodeSize;const a=[];let l=o>0?-1:0;(function(e,t,n){var r;const o=GR(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if((null==(r=t.nodeAt(e.map[i+n*e.width]))?void 0:r.type)!=o)return!1;return!0})(t,r,o+l)&&(l=0==o||o==t.height?null:0);for(let s=0,c=t.width*o;s<t.width;s++,c++)if(o>0&&o<t.height&&t.map[c]==t.map[c-t.width]){const o=t.map[c],i=r.nodeAt(o).attrs;e.setNodeMarkup(n+o,null,{...i,rowspan:i.rowspan+1}),s+=i.colspan-1}else{const e=null==l?GR(r.type.schema).cell:null==(i=r.nodeAt(t.map[c+l*t.width]))?void 0:i.type,n=null==e?void 0:e.createAndFill();n&&a.push(n)}return e.insert(s,GR(r.type.schema).row.create(null,a)),e}function mN(e,{map:t,table:n,tableStart:r},o){let i=0;for(let e=0;e<o;e++)i+=n.child(e).nodeSize;const s=i+n.child(o).nodeSize,a=e.mapping.maps.length;e.delete(i+r,s+r);const l=new Set;for(let i=0,s=o*t.width;i<t.width;i++,s++){const c=t.map[s];if(!l.has(c))if(l.add(c),o>0&&c==t.map[s-t.width]){const t=n.nodeAt(c).attrs;e.setNodeMarkup(e.mapping.slice(a).map(c+r),null,{...t,rowspan:t.rowspan-1}),i+=t.colspan-1}else if(o<t.height&&c==t.map[s+t.width]){const s=n.nodeAt(c),l=s.attrs,u=s.type.create({...l,rowspan:s.attrs.rowspan-1},s.content),d=t.positionAt(o+1,i,n);e.insert(e.mapping.slice(a).map(r+d),u),i+=l.colspan-1}}}function gN(e){const t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function yN(e,t){const n=e.selection;if(!(n instanceof iN)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=dN(e),{map:o}=r;if(function({width:e,height:t,map:n},r){let o=r.top*e+r.left,i=o,s=(r.bottom-1)*e+r.left,a=o+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[i]==n[i-1]||r.right<e&&n[a]==n[a+1])return!0;i+=e,a+=e}for(let i=r.left;i<r.right;i++){if(r.top>0&&n[o]==n[o-e]||r.bottom<t&&n[s]==n[s+e])return!0;o++,s++}return!1}(o,r))return!1;if(t){const n=e.tr,i={};let s,a,l=mM.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){const c=o.map[e*o.width+t],u=r.table.nodeAt(c);if(!i[c]&&u)if(i[c]=!0,null==s)s=c,a=u;else{gN(u)||(l=l.append(u.content));const e=n.mapping.map(c+r.tableStart);n.delete(e,e+u.nodeSize)}}if(null==s||null==a)return!0;if(n.setNodeMarkup(s+r.tableStart,null,{...oN(a.attrs,a.attrs.colspan,r.right-r.left-a.attrs.colspan),rowspan:r.bottom-r.top}),l.size){const e=s+1+a.content.size,t=gN(a)?s+1:e;n.replaceWith(t+r.tableStart,e+r.tableStart,l)}n.setSelection(new iN(n.doc.resolve(s+r.tableStart))),t(n)}return!0}function bN(e,t){const n=GR(e.schema);return(r=({node:e})=>n[e.type.spec.tableRole],(e,t)=>{var n;const o=e.selection;let i,s;if(o instanceof iN){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;i=o.$anchorCell.nodeAfter,s=o.$anchorCell.pos}else{if(i=function(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from),!i)return!1;s=null==(n=JR(o.$from))?void 0:n.pos}if(null==i||null==s)return!1;if(1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(t){let n=i.attrs;const a=[],l=n.colwidth;n.rowspan>1&&(n={...n,rowspan:1}),n.colspan>1&&(n={...n,colspan:1});const c=dN(e),u=e.tr;for(let e=0;e<c.right-c.left;e++)a.push(l?{...n,colwidth:l&&l[e]?[l[e]]:null}:n);let d;for(let e=c.top;e<c.bottom;e++){let t=c.map.positionAt(e,c.left,c.table);e==c.top&&(t+=i.nodeSize);for(let n=c.left,o=0;n<c.right;n++,o++)n==c.left&&e==c.top||u.insert(d=u.mapping.map(t+c.tableStart,1),r({node:i,row:e,col:n}).createAndFill(a[o]))}u.setNodeMarkup(s,r({node:i,row:c.top,col:c.left}),a[0]),o instanceof iN&&u.setSelection(new iN(u.doc.resolve(o.$anchorCell.pos),d?u.doc.resolve(d):void 0)),t(u)}return!0})(e,t);var r}function vN(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){const o=t.table.nodeAt(r[e]);if(o&&o.type!==n.header_cell)return!1}return!0}function xN(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!ZR(t))return!1;if(n){const r=GR(t.schema),o=dN(t),i=t.tr,s=o.map.cellsInRect("column"==e?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==e?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),a=s.map(e=>o.table.nodeAt(e));for(let e=0;e<s.length;e++)a[e].type==r.header_cell&&i.setNodeMarkup(o.tableStart+s[e],r.cell,a[e].attrs);if(0==i.steps.length)for(let e=0;e<s.length;e++)i.setNodeMarkup(o.tableStart+s[e],r.header_cell,a[e].attrs);n(i)}return!0}}(e):function(t,n){if(!ZR(t))return!1;if(n){const r=GR(t.schema),o=dN(t),i=t.tr,s=vN("row",o,r),a=vN("column",o,r),l=("column"===e?s:"row"===e&&a)?1:0,c="column"==e?{left:0,top:l,right:1,bottom:o.map.height}:"row"==e?{left:l,top:0,right:o.map.width,bottom:1}:o,u="column"==e?a?r.cell:r.header_cell:"row"==e?s?r.cell:r.header_cell:r.cell;o.map.cellsInRect(c).forEach(e=>{const t=e+o.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,u,n.attrs)}),n(i)}return!0}}xN("row",{useDeprecatedLogic:!0}),xN("column",{useDeprecatedLogic:!0});var wN=xN("cell",{useDeprecatedLogic:!0});function SN(e){return function(t,n){if(!ZR(t))return!1;const r=function(e,t){if(t<0){const t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){const r=e.node(-1).child(t),o=r.lastChild;if(o)return n-1-o.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){const e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(QR(t),e);if(null==r)return!1;if(n){const e=t.doc.resolve(r);n(t.tr.setSelection(yT.between(e,(o=e,o.node(0).resolve(o.pos+o.nodeAfter.nodeSize)))).scrollIntoView())}var o;return!0}}function CN(e,t){const n=e.selection;if(!(n instanceof iN))return!1;if(t){const r=e.tr,o=GR(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(o)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new wM(o,0,0))}),r.docChanged&&t(r)}return!0}function kN(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;const o=t.child(0),i=o.type.spec.tableRole,s=o.type.schema,a=[];if("row"==i)for(let e=0;e<t.childCount;e++){let o=t.child(e).content;const i=e?0:Math.max(0,n-1),l=e<t.childCount-1?0:Math.max(0,r-1);(i||l)&&(o=MN(GR(s).row,new wM(o,i,l)).content),a.push(o)}else{if("cell"!=i&&"header_cell"!=i)return null;a.push(n||r?MN(GR(s).row,new wM(t,n,r)).content:t)}return function(e,t){const n=[];for(let e=0;e<t.length;e++){const r=t[e];for(let t=r.childCount-1;t>=0;t--){const{rowspan:o,colspan:i}=r.child(t).attrs;for(let t=e;t<e+o;t++)n[t]=(n[t]||0)+i}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let o=0;o<n.length;o++)if(o>=t.length&&t.push(mM.empty),n[o]<r){const i=GR(e).cell.createAndFill(),s=[];for(let e=n[o];e<r;e++)s.push(i);t[o]=t[o].append(mM.from(s))}return{height:t.length,width:r,rows:t}}(s,a)}function MN(e,t){const n=e.createAndFill();return new dT(n).replace(0,n.content.size,t).doc}function ON(e,t,n,r,o,i,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=o;c<i;c++){const o=s*t.width+c,i=t.map[o];if(t.map[o-t.width]==i){l=!0;const o=n.nodeAt(i),{top:u,left:d}=t.findCell(i);e.setNodeMarkup(e.mapping.slice(a).map(i+r),null,{...o.attrs,rowspan:s-u}),e.insert(e.mapping.slice(a).map(t.positionAt(s,d,n)),o.type.createAndFill({...o.attrs,rowspan:u+o.attrs.rowspan-s})),c+=o.attrs.colspan-1}}return l}function TN(e,t,n,r,o,i,s,a){if(0==s||s==t.width)return!1;let l=!1;for(let c=o;c<i;c++){const o=c*t.width+s,i=t.map[o];if(t.map[o-1]==i){l=!0;const o=n.nodeAt(i),u=t.colCount(i),d=e.mapping.slice(a).map(i+r);e.setNodeMarkup(d,null,rN(o.attrs,s-u,o.attrs.colspan-(s-u))),e.insert(d+o.nodeSize,o.type.createAndFill(rN(o.attrs,0,s-u))),c+=o.attrs.rowspan-1}}return l}function PN(e,t,n,r,o){let i=n?e.doc.nodeAt(n-1):e.doc;if(!i)throw new Error("No table found");let s=YR.get(i);const{top:a,left:l}=r,c=l+o.width,u=a+o.height,d=e.tr;let p=0;function f(){if(i=n?d.doc.nodeAt(n-1):d.doc,!i)throw new Error("No table found");s=YR.get(i),p=d.mapping.maps.length}(function(e,t,n,r,o,i,s){const a=GR(e.doc.type.schema);let l,c;if(o>t.width)for(let i=0,u=0;i<t.height;i++){const d=n.child(i);u+=d.nodeSize;const p=[];let f;f=null==d.lastChild||d.lastChild.type==a.cell?l||(l=a.cell.createAndFill()):c||(c=a.header_cell.createAndFill());for(let e=t.width;e<o;e++)p.push(f);e.insert(e.mapping.slice(s).map(u-1+r),p)}if(i>t.height){const u=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,o);e++){const o=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==a.header_cell;u.push(o?c||(c=a.header_cell.createAndFill()):l||(l=a.cell.createAndFill()))}const d=a.row.create(null,mM.from(u)),p=[];for(let e=t.height;e<i;e++)p.push(d);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),p)}return!(!l&&!c)})(d,s,i,n,c,u,p)&&f(),ON(d,s,i,n,l,c,a,p)&&f(),ON(d,s,i,n,l,c,u,p)&&f(),TN(d,s,i,n,a,u,l,p)&&f(),TN(d,s,i,n,a,u,c,p)&&f();for(let e=a;e<u;e++){const t=s.positionAt(e,l,i),r=s.positionAt(e,c,i);d.replace(d.mapping.slice(p).map(t+n),d.mapping.slice(p).map(r+n),new wM(o.rows[e-a],0,0))}f(),d.setSelection(new iN(d.doc.resolve(n+s.positionAt(a,l,i)),d.doc.resolve(n+s.positionAt(u-1,c-1,i)))),t(d)}var DN=lj({ArrowLeft:jN("horiz",-1),ArrowRight:jN("horiz",1),ArrowUp:jN("vert",-1),ArrowDown:jN("vert",1),"Shift-ArrowLeft":AN("horiz",-1),"Shift-ArrowRight":AN("horiz",1),"Shift-ArrowUp":AN("vert",-1),"Shift-ArrowDown":AN("vert",1),Backspace:CN,"Mod-Backspace":CN,Delete:CN,"Mod-Delete":CN});function EN(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function jN(e,t){return(n,r,o)=>{if(!o)return!1;const i=n.selection;if(i instanceof iN)return EN(n,r,fT.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;const s=LN(o,e,t);if(null==s)return!1;if("horiz"==e)return EN(n,r,fT.near(n.doc.resolve(i.head+t),t));{const o=n.doc.resolve(s),i=nN(o,e,t);let a;return a=i?fT.near(i,1):t<0?fT.near(n.doc.resolve(o.before(-1)),-1):fT.near(n.doc.resolve(o.after(-1)),1),EN(n,r,a)}}}function AN(e,t){return(n,r,o)=>{if(!o)return!1;const i=n.selection;let s;if(i instanceof iN)s=i;else{const r=LN(o,e,t);if(null==r)return!1;s=new iN(n.doc.resolve(r))}const a=nN(s.$headCell,e,t);return!!a&&EN(n,r,new iN(s.$anchorCell,a))}}function RN(e,t){const n=JR(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new iN(n))),!0)}function NN(e,t,n){if(!ZR(e.state))return!1;let r=kN(n);const o=e.state.selection;if(o instanceof iN){r||(r={width:1,height:1,rows:[mM.from(MN(GR(e.state.schema).cell,n))]});const t=o.$anchorCell.node(-1),i=o.$anchorCell.start(-1),s=YR.get(t).rectBetween(o.$anchorCell.pos-i,o.$headCell.pos-i);return r=function({width:e,height:t,rows:n},r,o){if(e!=r){const t=[],o=[];for(let e=0;e<n.length;e++){const i=n[e],s=[];for(let n=t[e]||0,o=0;n<r;o++){let a=i.child(o%i.childCount);n+a.attrs.colspan>r&&(a=a.type.createChecked(rN(a.attrs,a.attrs.colspan,n+a.attrs.colspan-r),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;n<a.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+a.attrs.colspan}o.push(mM.from(s))}n=o,e=r}if(t!=o){const e=[];for(let r=0,i=0;r<o;r++,i++){const s=[],a=n[i%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);r+t.attrs.rowspan>o&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,o-t.attrs.rowspan)},t.content)),s.push(t)}e.push(mM.from(s))}n=e,t=o}return{width:e,height:t,rows:n}}(r,s.right-s.left,s.bottom-s.top),PN(e.state,e.dispatch,i,s,r),!0}if(r){const t=QR(e.state),n=t.start(-1);return PN(e.state,e.dispatch,n,YR.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function IN(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=$N(e,t.target);let o;if(t.shiftKey&&e.state.selection instanceof iN)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(o=JR(e.state.selection.$anchor))&&(null==(n=FN(e,t))?void 0:n.pos)!=o.pos)i(o,t),t.preventDefault();else if(!r)return;function i(t,n){let r=FN(e,n);const o=null==XR.getState(e.state);if(!r||!tN(t,r)){if(!o)return;r=t}const i=new iN(t,r);if(o||!e.state.selection.eq(i)){const n=e.state.tr.setSelection(i);o&&n.setMeta(XR,t.pos),e.dispatch(n)}}function s(){e.root.removeEventListener("mouseup",s),e.root.removeEventListener("dragstart",s),e.root.removeEventListener("mousemove",a),null!=XR.getState(e.state)&&e.dispatch(e.state.tr.setMeta(XR,-1))}function a(n){const o=n,a=XR.getState(e.state);let l;if(null!=a)l=e.state.doc.resolve(a);else if($N(e,o.target)!=r&&(l=FN(e,t),!l))return s();l&&i(l,o)}e.root.addEventListener("mouseup",s),e.root.addEventListener("dragstart",s),e.root.addEventListener("mousemove",a)}function LN(e,t,n){if(!(e.state.selection instanceof yT))return null;const{$head:r}=e.state.selection;for(let o=r.depth-1;o>=0;o--){const i=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:i.childCount))return null;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){const i=r.before(o),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?i:null}}return null}function $N(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function FN(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?JR(e.state.doc.resolve(n.pos)):null}var zN=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),_N(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,_N(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function _N(e,t,n,r,o,i){var s;let a=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u){for(let e=0,n=0;e<u.childCount;e++){const{colspan:s,colwidth:d}=u.child(e).attrs;for(let e=0;e<s;e++,n++){const s=o==n?i:d&&d[e],u=s?s+"px":"";if(a+=s||r,s||(l=!1),c)c.style.width!=u&&(c.style.width=u),c=c.nextSibling;else{const e=document.createElement("col");e.style.width=u,t.appendChild(e)}}}for(;c;){const e=c.nextSibling;null==(s=c.parentNode)||s.removeChild(c),c=e}l?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var BN=new IT("tableColumnResizing");function VN({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=zN,lastColumnResizable:o=!0}={}){const i=new AT({key:BN,state:{init(e,t){var o,s;const a=null==(s=null==(o=i.spec)?void 0:o.props)?void 0:s.nodeViews,l=GR(t.schema).table.name;return r&&a&&(a[l]=(e,t)=>new r(e,n,t)),new WN(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{const t=BN.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r){if(!e.editable)return;const o=BN.getState(e.state);if(!o)return;if(!o.dragging){const i=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target);let s=-1;if(i){const{left:r,right:o}=i.getBoundingClientRect();t.clientX-r<=n?s=HN(e,t,"left",n):o-t.clientX<=n&&(s=HN(e,t,"right",n))}if(s!=o.activeHandle){if(!r&&-1!==s){const t=e.state.doc.resolve(s),n=t.node(-1),r=YR.get(n),o=t.start(-1);if(r.colCount(t.pos-o)+t.nodeAfter.attrs.colspan-1==r.width-1)return}qN(e,s)}}}(t,n,e,o)},mouseleave:e=>{!function(e){if(!e.editable)return;const t=BN.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&qN(e,-1)}(e)},mousedown:(e,r)=>{!function(e,t,n,r){var o;if(!e.editable)return!1;const i=null!=(o=e.dom.ownerDocument.defaultView)?o:window,s=BN.getState(e.state);if(!s||-1==s.activeHandle||s.dragging)return!1;const a=e.state.doc.nodeAt(s.activeHandle),l=function(e,t,{colspan:n,colwidth:r}){const o=r&&r[r.length-1];if(o)return o;const i=e.domAtPos(t),s=i.node.childNodes[i.offset];let a=s.offsetWidth,l=n;if(r)for(let e=0;e<n;e++)r[e]&&(a-=r[e],l--);return a/l}(e,s.activeHandle,a.attrs);function c(t){i.removeEventListener("mouseup",c),i.removeEventListener("mousemove",u);const r=BN.getState(e.state);(null==r?void 0:r.dragging)&&(!function(e,t,n){const r=e.state.doc.resolve(t),o=r.node(-1),i=YR.get(o),s=r.start(-1),a=i.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<i.height;e++){const t=e*i.width+a;if(e&&i.map[t]==i.map[t-i.width])continue;const r=i.map[t],c=o.nodeAt(r).attrs,u=1==c.colspan?0:a-i.colCount(r);if(c.colwidth&&c.colwidth[u]==n)continue;const d=c.colwidth?c.colwidth.slice():KN(c.colspan);d[u]=n,l.setNodeMarkup(s+r,null,{...c,colwidth:d})}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,UN(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(BN,{setDragging:null})))}function u(t){if(!t.which)return c(t);const o=BN.getState(e.state);if(o&&o.dragging){const i=UN(o.dragging,t,n);YN(e,o.activeHandle,i,r)}}e.dispatch(e.state.tr.setMeta(BN,{setDragging:{startX:t.clientX,startWidth:l}})),YN(e,s.activeHandle,l,r),i.addEventListener("mouseup",c),i.addEventListener("mousemove",u),t.preventDefault()}(e,r,t,n)}},decorations:e=>{const t=BN.getState(e);if(t&&t.activeHandle>-1)return function(e,t){var n;const r=[],o=e.doc.resolve(t),i=o.node(-1);if(!i)return wE.empty;const s=YR.get(i),a=o.start(-1),l=s.colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){const o=l+t*s.width;if(!(l!=s.width-1&&s.map[o]==s.map[o+1]||0!=t&&s.map[o]==s.map[o-s.width])){const t=s.map[o],l=a+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(n=BN.getState(e))?void 0:n.dragging)&&r.push(bE.node(a+t,a+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(bE.widget(l,c))}}return wE.create(e.doc,r)}(e,t.activeHandle)},nodeViews:{}}});return i}var WN=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){const n=this,r=t.getMeta(BN);if(r&&null!=r.setHandle)return new e(r.setHandle,!1);if(r&&void 0!==r.setDragging)return new e(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&t.docChanged){let r=t.mapping.map(n.activeHandle,-1);return eN(t.doc.resolve(r))||(r=-1),new e(r,n.dragging)}return n}};function HN(e,t,n,r){const o="right"==n?-r:r,i=e.posAtCoords({left:t.clientX+o,top:t.clientY});if(!i)return-1;const{pos:s}=i,a=JR(e.state.doc.resolve(s));if(!a)return-1;if("right"==n)return a.pos;const l=YR.get(a.node(-1)),c=a.start(-1),u=l.map.indexOf(a.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function UN(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function qN(e,t){e.dispatch(e.state.tr.setMeta(BN,{setHandle:t}))}function YN(e,t,n,r){const o=e.state.doc.resolve(t),i=o.node(-1),s=o.start(-1),a=YR.get(i).colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1;let l=e.domAtPos(o.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&_N(i,l.firstChild,l,r,a,n)}function KN(e){return Array(e).fill(0)}function GN({allowTableNodeSelection:e=!1}={}){return new AT({key:XR,state:{init:()=>null,apply(e,t){const n=e.getMeta(XR);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;const{deleted:r,pos:o}=e.mapping.mapResult(t);return r?null:o}},props:{decorations:aN,handleDOMEvents:{mousedown:IN},createSelectionBetween:e=>null!=XR.getState(e.state)?e.state.selection:null,handleTripleClick:RN,handleKeyDown:DN,handlePaste:NN},appendTransaction:(t,n,r)=>function(e,t,n){const r=(t||e).selection,o=(t||e).doc;let i,s;if(r instanceof vT&&(s=r.node.type.spec.tableRole)){if("cell"==s||"header_cell"==s)i=iN.create(o,r.from);else if("row"==s){const e=o.resolve(r.from+1);i=iN.rowSelection(e,e)}else if(!n){const e=YR.get(r.node),t=r.from+1,n=t+e.map[e.width*e.height-1];i=iN.create(o,t+1,n)}}else r instanceof yT&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,o=e.depth;for(;o>=0&&!(e.after(o+1)<e.end(o));o--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(o).type.spec.tableRole)}(r)?i=yT.create(o,r.from):r instanceof yT&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){const r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){const n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(r)&&(i=yT.create(o,r.$from.start(),r.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(r,uN(r,n),e)})}function XN(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function JN(e,t,n,r,o,i){var s;let a=0,l=!0,c=t.firstChild;const u=e.firstChild;if(null!==u)for(let e=0,n=0;e<u.childCount;e+=1){const{colspan:s,colwidth:d}=u.child(e).attrs;for(let e=0;e<s;e+=1,n+=1){const s=o===n?i:d&&d[e],u=s?`${s}px`:"";if(a+=s||r,s||(l=!1),c){if(c.style.width!==u){const[e,t]=XN(r,s);c.style.setProperty(e,t)}c=c.nextSibling}else{const e=document.createElement("col"),[n,o]=XN(r,s);e.style.setProperty(n,o),t.appendChild(e)}}}for(;c;){const e=c.nextSibling;null===(s=c.parentNode)||void 0===s||s.removeChild(c),c=e}l?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}class ZN{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),JN(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,JN(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}function QN(e,t){return t?e.createChecked(null,t):e.createAndFill()}function eI(e,t,n,r,o){const i=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;const t={};return Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),s=[],a=[];for(let e=0;e<n;e+=1){const e=QN(i.cell,o);if(e&&a.push(e),r){const e=QN(i.header_cell,o);e&&s.push(e)}}const l=[];for(let e=0;e<t;e+=1)l.push(i.row.createChecked(null,r&&0===e?s:a));return i.table.createChecked(null,l)}const tI=({editor:e})=>{const{selection:t}=e.state;if(!(t instanceof iN))return!1;let n=0;const r=$A(t.ranges[0].$from,e=>"table"===e.type.name);null==r||r.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)});return n===t.ranges.length&&(e.commands.deleteTable(),!0)},nI=uR.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:ZN,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){const{colgroup:n,tableWidth:r,tableMinWidth:o}=function(e,t,n,r){let o=0,i=!0;const s=[],a=e.firstChild;if(!a)return{};for(let e=0,l=0;e<a.childCount;e+=1){const{colspan:c,colwidth:u}=a.child(e).attrs;for(let e=0;e<c;e+=1,l+=1){const a=n===l?r:u&&u[e];o+=a||t,a||(i=!1);const[c,d]=XN(t,a);s.push(["col",{style:`${c}: ${d}`}])}}const l=i?`${o}px`:"",c=i?"":`${o}px`;return{colgroup:["colgroup",{},...s],tableWidth:l,tableMinWidth:c}}(e,this.options.cellMinWidth);return["table",qj(this.options.HTMLAttributes,t,{style:r?`width: ${r}`:`min-width: ${o}`}),n,["tbody",0]]},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:i})=>{const s=eI(i.schema,e,t,n);if(o){const e=r.selection.from+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(yT.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!ZR(e))return!1;if(t){const n=dN(e);t(pN(e.tr,n,n.left))}return!0}(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!ZR(e))return!1;if(t){const n=dN(e);t(pN(e.tr,n,n.right))}return!0}(e,t),deleteColumn:()=>({state:e,dispatch:t})=>function(e,t){if(!ZR(e))return!1;if(t){const n=dN(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;fN(r,n,e),e!=n.left;e--){const e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=YR.get(e)}t(r)}return!0}(e,t),addRowBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!ZR(e))return!1;if(t){const n=dN(e);t(hN(e.tr,n,n.top))}return!0}(e,t),addRowAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!ZR(e))return!1;if(t){const n=dN(e);t(hN(e.tr,n,n.bottom))}return!0}(e,t),deleteRow:()=>({state:e,dispatch:t})=>function(e,t){if(!ZR(e))return!1;if(t){const n=dN(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;mN(r,n,e),e!=n.top;e--){const e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=YR.get(n.table)}t(r)}return!0}(e,t),deleteTable:()=>({state:e,dispatch:t})=>function(e,t){const n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}(e,t),mergeCells:()=>({state:e,dispatch:t})=>yN(e,t),splitCell:()=>({state:e,dispatch:t})=>bN(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>xN("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>xN("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>wN(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!yN(e,t)||bN(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>function(e,t){return function(n,r){if(!ZR(n))return!1;const o=QR(n);if(o.nodeAfter.attrs[e]===t)return!1;if(r){const i=n.tr;n.selection instanceof iN?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&i.setNodeMarkup(r,null,{...n.attrs,[e]:t})}):i.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[e]:t}),r(i)}return!0}}(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>SN(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>SN(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&uN(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){const n=iN.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:tI,"Mod-Backspace":tI,Delete:tI,"Mod-Delete":tI}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[VN({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],GN({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:e=>({tableRole:Gj(Vj(e,"tableRole",{name:e.name,options:e.options,storage:e.storage}))})}),rI=uR.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth"),n=t?t.split(",").map(e=>parseInt(e,10)):null;return n}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",qj(this.options.HTMLAttributes,e),0]}}),oI=uR.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth"),n=t?t.split(",").map(e=>parseInt(e,10)):null;return n}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",qj(this.options.HTMLAttributes,e),0]}}),iI=uR.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",qj(this.options.HTMLAttributes,e),0]}}),sI=lA.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),aI=/^\s*>\s$/,lI=uR.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[cR({find:aI,type:this.type})]}}),cI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,uI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,dI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,pI=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,fI=lA.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[sR({find:cI,type:this.type}),sR({find:dI,type:this.type})]},addPasteRules(){return[dR({find:uI,type:this.type}),dR({find:pI,type:this.type})]}}),hI="textStyle",mI=/^\s*([-+*])\s$/,gI=uR.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(hI)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=cR({find:mI,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cR({find:mI,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(hI),editor:this.editor})),[e]}}),yI=/(^|[^`])`([^`]+)`(?!`)/,bI=/(^|[^`])`([^`]+)`(?!`)/g,vI=lA.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[sR({find:yI,type:this.type})]},addPasteRules(){return[dR({find:bI,type:this.type})]}}),xI=/^```([a-z]+)?[\s\n]$/,wI=/^~~~([a-z]+)?[\s\n]$/,SI=uR.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,r=[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",qj(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!(!e||t.parent.type.name!==this.name)&&(!(!n&&t.parent.textContent.length)&&this.editor.commands.clearNodes())},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!(!i||!s)&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;if(!(o.parentOffset===o.parent.nodeSize-2))return!1;const s=o.after();if(void 0===s)return!1;return r.nodeAt(s)?e.commands.command(({tr:e})=>(e.setSelection(fT.near(r.resolve(s))),!0)):e.commands.exitCode()}}},addInputRules(){return[lR({find:xI,type:this.type,getAttributes:e=>({language:e[1]})}),lR({find:wI,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new AT({key:new IT("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=null==o?void 0:o.mode;if(!n||!i)return!1;const{tr:s,schema:a}=e.state,l=a.text(n.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:i},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(yT.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),CI=uR.create({name:"doc",topNode:!0,content:"block+"});function kI(e={}){return new AT({view:t=>new MI(t,e)})}class MI{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r=this.editorView.dom,o=r.getBoundingClientRect(),i=o.width/r.offsetWidth,s=o.height/r.offsetHeight;if(n){let n=t.nodeBefore,r=t.nodeAfter;if(n||r){let t=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(t){let o=t.getBoundingClientRect(),i=n?o.bottom:o.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let a=this.width/2*s;e={left:o.left,right:o.right,top:i-a,bottom:i+a}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos),n=this.width/2*i;e={left:t.left-n,right:t.left+n,top:t.top,bottom:t.bottom}}let a,l,c=this.editorView.dom.offsetParent;if(this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!c||c==document.body&&"static"==getComputedStyle(c).position)a=-pageXOffset,l=-pageYOffset;else{let e=c.getBoundingClientRect(),t=e.width/c.offsetWidth,n=e.height/c.offsetHeight;a=e.left-c.scrollLeft*t,l=e.top-c.scrollTop*n}this.element.style.left=(e.left-a)/i+"px",this.element.style.top=(e.top-l)/s+"px",this.element.style.width=(e.right-e.left)/i+"px",this.element.style.height=(e.bottom-e.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=XO(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const OI=hA.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[kI(this.options)]}}),TI=uR.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",qj(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:e,storedMarks:o}=n;if(e.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:s}=r.extensionManager,a=o||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&a&&i){const t=a.filter(e=>s.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),PI=uR.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,qj(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>lR({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var DI=200,EI=function(){};EI.prototype.append=function(e){return e.length?(e=EI.from(e),!this.length&&e||e.length<DI&&this.leafAppend(e)||this.length<DI&&e.leafPrepend(this)||this.appendInner(e)):this},EI.prototype.prepend=function(e){return e.length?EI.from(e).append(this):this},EI.prototype.appendInner=function(e){return new AI(this,e)},EI.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?EI.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},EI.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},EI.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},EI.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},EI.from=function(e){return e instanceof EI?e:e&&e.length?new jI(e):EI.empty};var jI=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=DI)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=DI)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(EI);EI.empty=new jI([]);var AI=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(EI);const RI=EI;class NI{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,s,a=e.tr,l=[],c=[];return this.items.forEach((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),r=n.maps.length),r--,void c.push(e);if(n){c.push(new II(e.map));let t,o=e.step.map(n.slice(r));o&&a.maybeStep(o).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],l.push(new II(t,void 0,void 0,l.length+c.length))),r--,t&&n.appendMap(t,r)}else a.maybeStep(e.step);return e.selection?(i=n?e.selection.map(n.slice(r)):e.selection,s=new NI(this.items.slice(0,o).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:s,transform:a,selection:i}}addTransform(e,t,n,r){let o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null;for(let n=0;n<e.steps.length;n++){let l,c=e.steps[n].invert(e.docs[n]),u=new II(e.mapping.maps[n],c,t);(l=a&&a.merge(u))&&(u=l,n?o.pop():s=s.slice(0,s.length-1)),o.push(u),t&&(i++,t=void 0),r||(a=u)}let l=i-n.depth;return l>$I&&(s=function(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&0==t--)return n=r,!1}),e.slice(n)}(s,l),i-=l),new NI(s.append(o),i)}remapping(e,t){let n=new TO;return this.items.forEach((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)},e,t),n}addMaps(e){return 0==this.eventCount?this:new NI(this.items.append(e.map(e=>new II(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},r);let a=t;this.items.forEach(t=>{let r=o.getMirror(--a);if(null==r)return;i=Math.min(i,r);let l=o.maps[r];if(t.step){let i=e.steps[r].invert(e.docs[r]),c=t.selection&&t.selection.map(o.slice(a+1,r));c&&s++,n.push(new II(l,i,c))}else n.push(new II(l))},r);let l=[];for(let e=t;e<i;e++)l.push(new II(o.maps[e]));let c=this.items.slice(0,r).append(l).append(n),u=new NI(c,s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((i,s)=>{if(s>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=i.selection&&i.selection.map(t.slice(n));a&&o++;let l,c=new II(s.invert(),e,a),u=r.length-1;(l=r.length&&r[u].merge(c))?r[u]=l:r.push(c)}}else i.map&&n--},this.items.length,0),new NI(RI.from(r.reverse()),o)}}NI.empty=new NI(RI.empty,0);class II{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new II(t.getMap().invert(),t,this.selection)}}}class LI{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const $I=20;function FI(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,o)=>t.push(r,o));return t}function zI(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}let _I=!1,BI=null;function VI(e){let t=e.plugins;if(BI!=t){_I=!1,BI=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){_I=!0;break}}return _I}const WI=new IT("history"),HI=new IT("closeHistory");function UI(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new AT({key:WI,state:{init:()=>new LI(NI.empty,NI.empty,null,0,-1),apply:(t,n,r)=>function(e,t,n,r){let o,i=n.getMeta(WI);if(i)return i.historyState;n.getMeta(HI)&&(e=new LI(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(WI))return s.getMeta(WI).redo?new LI(e.done.addTransform(n,void 0,r,VI(t)),e.undone,FI(n.mapping.maps),e.prevTime,e.prevComposition):new LI(e.done,e.undone.addTransform(n,void 0,r,VI(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new LI(e.done.rebased(n,o),e.undone.rebased(n,o),zI(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new LI(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),zI(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),i=0==e.prevTime||!s&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)}),n}(n,e.prevRanges)),a=s?zI(e.prevRanges,n.mapping):FI(n.mapping.maps);return new LI(e.done.addTransform(n,i?t.selection.getBookmark():void 0,r,VI(t)),NI.empty,a,n.time,null==o?e.prevComposition:o)}}(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?YI:"historyRedo"==n?KI:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}function qI(e,t){return(n,r)=>{let o=WI.getState(n);if(!o||0==(e?o.undone:o.done).eventCount)return!1;if(r){let i=function(e,t,n){let r=VI(t),o=WI.get(t).spec.config,i=(n?e.undone:e.done).popEvent(t,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(n?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),o,r),l=new LI(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(WI,{redo:n,historyState:l})}(o,n,e);i&&r(t?i.scrollIntoView():i)}return!0}}const YI=qI(!1,!0),KI=qI(!0,!0);qI(!1,!1),qI(!0,!1);const GI=hA.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>YI(e,t),redo:()=>({state:e,dispatch:t})=>KI(e,t)}),addProseMirrorPlugins(){return[UI(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),XI=uR.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",qj(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!function(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof vT){const e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let o=r.depth;for(;o>=0;){const e=r.index(o);if(r.node(o).contentMatchAt(e).matchType(t))return!0;o-=1}return!1}(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$from:r,$to:o}=n,i=e();return 0===r.parentOffset?i.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):n instanceof vT?i.insertContentAt(o.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:e,dispatch:t})=>{var n;if(t){const{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(yT.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(vT.create(e.doc,t.pos)):e.setSelection(yT.create(e.doc,t.pos));else{const o=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();o&&(e.insert(r,o),e.setSelection(yT.create(e.doc,r+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[aR({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),JI=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,ZI=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,QI=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,eL=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,tL=lA.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[sR({find:JI,type:this.type}),sR({find:QI,type:this.type})]},addPasteRules(){return[dR({find:ZI,type:this.type}),dR({find:eL,type:this.type})]}}),nL=uR.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",qj(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),rL="textStyle",oL=/^(\d+)\.\s$/,iL=uR.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return 1===t?["ol",qj(this.options.HTMLAttributes,n),0]:["ol",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(rL)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=cR({find:oL,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cR({find:oL,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(rL)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),sL=uR.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),aL=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,lL=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,cL=lA.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",qj(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[sR({find:aL,type:this.type})]},addPasteRules(){return[dR({find:lL,type:this.type})]}}),uL=uR.create({name:"text",group:"inline"}),dL=hA.create({name:"starterKit",addExtensions(){const e=[];return!1!==this.options.bold&&e.push(fI.configure(this.options.bold)),!1!==this.options.blockquote&&e.push(lI.configure(this.options.blockquote)),!1!==this.options.bulletList&&e.push(gI.configure(this.options.bulletList)),!1!==this.options.code&&e.push(vI.configure(this.options.code)),!1!==this.options.codeBlock&&e.push(SI.configure(this.options.codeBlock)),!1!==this.options.document&&e.push(CI.configure(this.options.document)),!1!==this.options.dropcursor&&e.push(OI.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&e.push(HR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&e.push(TI.configure(this.options.hardBreak)),!1!==this.options.heading&&e.push(PI.configure(this.options.heading)),!1!==this.options.history&&e.push(GI.configure(this.options.history)),!1!==this.options.horizontalRule&&e.push(XI.configure(this.options.horizontalRule)),!1!==this.options.italic&&e.push(tL.configure(this.options.italic)),!1!==this.options.listItem&&e.push(nL.configure(this.options.listItem)),!1!==this.options.orderedList&&e.push(iL.configure(this.options.orderedList)),!1!==this.options.paragraph&&e.push(sL.configure(this.options.paragraph)),!1!==this.options.strike&&e.push(cL.configure(this.options.strike)),!1!==this.options.text&&e.push(uL.configure(this.options.text)),e}}),pL=li((0,s.jsx)("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"})),fL=li((0,s.jsx)("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})),hL=li((0,s.jsx)("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"})),mL=li((0,s.jsx)("path",{d:"M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z"})),gL=li((0,s.jsx)("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"})),yL=li((0,s.jsx)("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"})),bL=li((0,s.jsx)("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"})),{entries:vL,setPrototypeOf:xL,isFrozen:wL,getPrototypeOf:SL,getOwnPropertyDescriptor:CL}=Object;let{freeze:kL,seal:ML,create:OL}=Object,{apply:TL,construct:PL}="undefined"!=typeof Reflect&&Reflect;kL||(kL=function(e){return e}),ML||(ML=function(e){return e}),TL||(TL=function(e,t,n){return e.apply(t,n)}),PL||(PL=function(e,t){return new e(...t)});const DL=HL(Array.prototype.forEach),EL=HL(Array.prototype.lastIndexOf),jL=HL(Array.prototype.pop),AL=HL(Array.prototype.push),RL=HL(Array.prototype.splice),NL=HL(String.prototype.toLowerCase),IL=HL(String.prototype.toString),LL=HL(String.prototype.match),$L=HL(String.prototype.replace),FL=HL(String.prototype.indexOf),zL=HL(String.prototype.trim),_L=HL(Object.prototype.hasOwnProperty),BL=HL(RegExp.prototype.test),VL=(WL=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return PL(WL,t)});var WL;function HL(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return TL(e,t,r)}}function UL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NL;xL&&xL(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(wL(t)||(t[r]=e),o=e)}e[o]=!0}return e}function qL(e){for(let t=0;t<e.length;t++){_L(e,t)||(e[t]=null)}return e}function YL(e){const t=OL(null);for(const[n,r]of vL(e)){_L(e,n)&&(Array.isArray(r)?t[n]=qL(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=YL(r):t[n]=r)}return t}function KL(e,t){for(;null!==e;){const n=CL(e,t);if(n){if(n.get)return HL(n.get);if("function"==typeof n.value)return HL(n.value)}e=SL(e)}return function(){return null}}const GL=kL(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),XL=kL(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),JL=kL(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ZL=kL(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),QL=kL(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),e$=kL(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),t$=kL(["#text"]),n$=kL(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),r$=kL(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),o$=kL(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),i$=kL(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),s$=ML(/\{\{[\w\W]*|[\w\W]*\}\}/gm),a$=ML(/<%[\w\W]*|[\w\W]*%>/gm),l$=ML(/\$\{[\w\W]*/gm),c$=ML(/^data-[\-\w.\u00B7-\uFFFF]+$/),u$=ML(/^aria-[\-\w]+$/),d$=ML(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),p$=ML(/^(?:\w+script|data):/i),f$=ML(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),h$=ML(/^html$/i),m$=ML(/^[a-z][.\w]*(-[.\w]+)+$/i);var g$=Object.freeze({__proto__:null,ARIA_ATTR:u$,ATTR_WHITESPACE:f$,CUSTOM_ELEMENT:m$,DATA_ATTR:c$,DOCTYPE_NAME:h$,ERB_EXPR:a$,IS_ALLOWED_URI:d$,IS_SCRIPT_OR_DATA:p$,MUSTACHE_EXPR:s$,TMPLIT_EXPR:l$});const y$=1,b$=3,v$=7,x$=8,w$=9,S$=function(){return"undefined"==typeof window?null:window};var C$=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S$();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==w$||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,m=c.prototype,g=KL(m,"cloneNode"),y=KL(m,"remove"),b=KL(m,"nextSibling"),v=KL(m,"childNodes"),x=KL(m,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,S="";const{implementation:C,createNodeIterator:k,createDocumentFragment:M,getElementsByTagName:O}=r,{importNode:T}=o;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof vL&&"function"==typeof x&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:D,ERB_EXPR:E,TMPLIT_EXPR:j,DATA_ATTR:A,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:L}=g$;let{IS_ALLOWED_URI:$}=g$,F=null;const z=UL({},[...GL,...XL,...JL,...QL,...t$]);let _=null;const B=UL({},[...n$,...r$,...o$,...i$]);let V=Object.seal(OL(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,H=null,U=!0,q=!0,Y=!1,K=!0,G=!1,X=!0,J=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,se=!1,ae={},le=null;const ce=UL({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=UL({},["audio","video","img","source","image","track"]);let pe=null;const fe=UL({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,be=!1,ve=null;const xe=UL({},[he,me,ge],IL);let we=UL({},["mi","mo","mn","ms","mtext"]),Se=UL({},["annotation-xml"]);const Ce=UL({},["title","style","font","a","script"]);let ke=null;const Me=["application/xhtml+xml","text/html"];let Oe=null,Te=null;const Pe=r.createElement("form"),De=function(e){return e instanceof RegExp||e instanceof Function},Ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=YL(e),ke=-1===Me.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Oe="application/xhtml+xml"===ke?IL:NL,F=_L(e,"ALLOWED_TAGS")?UL({},e.ALLOWED_TAGS,Oe):z,_=_L(e,"ALLOWED_ATTR")?UL({},e.ALLOWED_ATTR,Oe):B,ve=_L(e,"ALLOWED_NAMESPACES")?UL({},e.ALLOWED_NAMESPACES,IL):xe,pe=_L(e,"ADD_URI_SAFE_ATTR")?UL(YL(fe),e.ADD_URI_SAFE_ATTR,Oe):fe,ue=_L(e,"ADD_DATA_URI_TAGS")?UL(YL(de),e.ADD_DATA_URI_TAGS,Oe):de,le=_L(e,"FORBID_CONTENTS")?UL({},e.FORBID_CONTENTS,Oe):ce,W=_L(e,"FORBID_TAGS")?UL({},e.FORBID_TAGS,Oe):YL({}),H=_L(e,"FORBID_ATTR")?UL({},e.FORBID_ATTR,Oe):YL({}),ae=!!_L(e,"USE_PROFILES")&&e.USE_PROFILES,U=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,$=e.ALLOWED_URI_REGEXP||d$,ye=e.NAMESPACE||ge,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,Se=e.HTML_INTEGRATION_POINTS||Se,V=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&De(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&De(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),G&&(q=!1),te&&(ee=!0),ae&&(F=UL({},t$),_=[],!0===ae.html&&(UL(F,GL),UL(_,n$)),!0===ae.svg&&(UL(F,XL),UL(_,r$),UL(_,i$)),!0===ae.svgFilters&&(UL(F,JL),UL(_,r$),UL(_,i$)),!0===ae.mathMl&&(UL(F,QL),UL(_,o$),UL(_,i$))),e.ADD_TAGS&&(F===z&&(F=YL(F)),UL(F,e.ADD_TAGS,Oe)),e.ADD_ATTR&&(_===B&&(_=YL(_)),UL(_,e.ADD_ATTR,Oe)),e.ADD_URI_SAFE_ATTR&&UL(pe,e.ADD_URI_SAFE_ATTR,Oe),e.FORBID_CONTENTS&&(le===ce&&(le=YL(le)),UL(le,e.FORBID_CONTENTS,Oe)),ie&&(F["#text"]=!0),J&&UL(F,["html","head","body"]),F.table&&(UL(F,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw VL('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw VL('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,S=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==w&&"string"==typeof S&&(S=w.createHTML(""));kL&&kL(e),Te=e}},je=UL({},[...XL,...JL,...ZL]),Ae=UL({},[...QL,...e$]),Re=function(e){AL(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){y(e)}},Ne=function(e,t){try{AL(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){AL(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Re(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ie=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=LL(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ke&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=w?w.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,ke)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?S:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?O.call(t,J?"html":"body")[0]:J?t.documentElement:i},Le=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},$e=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Fe=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,r){DL(e,e=>{e.call(n,t,r,Te)})}const _e=function(e){let t=null;if(ze(P.beforeSanitizeElements,e,null),$e(e))return Re(e),!0;const r=Oe(e.nodeName);if(ze(P.uponSanitizeElement,e,{tagName:r,allowedTags:F}),X&&e.hasChildNodes()&&!Fe(e.firstElementChild)&&BL(/<[/\w!]/g,e.innerHTML)&&BL(/<[/\w!]/g,e.textContent))return Re(e),!0;if(e.nodeType===v$)return Re(e),!0;if(X&&e.nodeType===x$&&BL(/<[/\w]/g,e.data))return Re(e),!0;if(!F[r]||W[r]){if(!W[r]&&Ve(r)){if(V.tagNameCheck instanceof RegExp&&BL(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=x(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,b(e))}}}return Re(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=NL(e.tagName),r=NL(t.tagName);return!!ve[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ge?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(je[n]):e.namespaceURI===he?t.namespaceURI===ge?"math"===n:t.namespaceURI===me?"math"===n&&Se[r]:Boolean(Ae[n]):e.namespaceURI===ge?!(t.namespaceURI===me&&!Se[r])&&!(t.namespaceURI===he&&!we[r])&&!Ae[n]&&(Ce[n]||!je[n]):!("application/xhtml+xml"!==ke||!ve[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!BL(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&e.nodeType===b$&&(t=e.textContent,DL([D,E,j],e=>{t=$L(t,e," ")}),e.textContent!==t&&(AL(n.removed,{element:e.cloneNode()}),e.textContent=t)),ze(P.afterSanitizeElements,e,null),!1):(Re(e),!0)},Be=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Pe))return!1;if(q&&!H[t]&&BL(A,t));else if(U&&BL(R,t));else if(!_[t]||H[t]){if(!(Ve(e)&&(V.tagNameCheck instanceof RegExp&&BL(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&BL(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&BL(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(pe[t]);else if(BL($,$L(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==FL(n,"data:")||!ue[e]){if(Y&&!BL(N,$L(n,I,"")));else if(n)return!1}else;return!0},Ve=function(e){return"annotation-xml"!==e&&LL(e,L)},We=function(e){ze(P.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||$e(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:l}=i,c=Oe(s),u=l;let d="value"===s?u:zL(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,ze(P.uponSanitizeAttribute,e,r),d=r.attrValue,!oe||"id"!==c&&"name"!==c||(Ne(s,e),d="user-content-"+d),X&&BL(/((--!?|])>)|<\/(style|title)/i,d)){Ne(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ne(s,e);continue}if(!K&&BL(/\/>/i,d)){Ne(s,e);continue}G&&DL([D,E,j],e=>{d=$L(d,e," ")});const p=Oe(e.nodeName);if(Be(p,c,d)){if(w&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(a);else switch(h.getAttributeType(p,c)){case"TrustedHTML":d=w.createHTML(d);break;case"TrustedScriptURL":d=w.createScriptURL(d)}if(d!==u)try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),$e(e)?Re(e):jL(n.removed)}catch(t){Ne(s,e)}}else Ne(s,e)}ze(P.afterSanitizeAttributes,e,null)},He=function e(t){let n=null;const r=Le(t);for(ze(P.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ze(P.uponSanitizeShadowNode,n,null),_e(n),We(n),n.content instanceof s&&e(n.content);ze(P.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Fe(e)){if("function"!=typeof e.toString)throw VL("toString is not a function");if("string"!=typeof(e=e.toString()))throw VL("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ee(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Oe(e.nodeName);if(!F[t]||W[t])throw VL("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ie("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===y$&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!G&&!J&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(r=Ie(e),!r)return ee?null:ne?S:""}r&&Q&&Re(r.firstChild);const u=Le(se?e:r);for(;a=u.nextNode();)_e(a),We(a),a.content instanceof s&&He(a.content);if(se)return e;if(ee){if(te)for(c=M.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(_.shadowroot||_.shadowrootmode)&&(c=T.call(o,c,!0)),c}let d=J?r.outerHTML:r.innerHTML;return J&&F["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&BL(h$,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),G&&DL([D,E,j],e=>{d=$L(d,e," ")}),w&&ne?w.createHTML(d):d},n.setConfig=function(){Ee(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Te=null,Z=!1},n.isValidAttribute=function(e,t,n){Te||Ee({});const r=Oe(e),o=Oe(t);return Be(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&AL(P[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=EL(P[e],t);return-1===n?void 0:RL(P[e],n,1)[0]}return jL(P[e])},n.removeHooks=function(e){P[e]=[]},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),k$=function(e){var t=e.editor;return t?(0,s.jsx)("div",{className:"control-group","data-testid":"rich-text-editor-toolbar",children:(0,s.jsxs)("div",{className:"button-group",children:[(0,s.jsx)($S,{"data-testid":"bold-tooltip",title:"Bold",placement:"top",enterDelay:1e3,arrow:!0,children:(0,s.jsx)(el,{onClick:function(){return t.chain().focus().toggleBold().run()},className:t.isActive("bold")?"is-active":"",children:(0,s.jsx)(pL,{})},"bold")}),(0,s.jsx)($S,{"data-testid":"italic-tooltip",title:"Italic",placement:"top",enterDelay:1e3,arrow:!0,children:(0,s.jsx)(el,{onClick:function(){return t.chain().focus().toggleItalic().run()},className:t.isActive("italic")?"is-active":"",children:(0,s.jsx)(fL,{})},"italic")}),(0,s.jsx)($S,{"data-testid":"underline-tooltip",title:"Underline",placement:"top",enterDelay:1e3,arrow:!0,children:(0,s.jsx)(el,{onClick:function(){return t.chain().focus().toggleUnderline().run()},className:t.isActive("underline")?"is-active":"",children:(0,s.jsx)(hL,{})},"underline")}),(0,s.jsx)($S,{"data-testid":"strikethrough-tooltip",title:"Strikethrough",placement:"top",enterDelay:1e3,arrow:!0,children:(0,s.jsx)(el,{onClick:function(){return t.chain().focus().toggleStrike().run()},className:t.isActive("strike")?"is-active":"",style:{borderRight:"solid 1px #9c9c9c"},children:(0,s.jsx)(mL,{})},"strike")}),(0,s.jsx)($S,{"data-testid":"orderedlist-tooltip",title:"Ordered List",placement:"top",enterDelay:1e3,arrow:!0,children:(0,s.jsx)(el,{onClick:function(){return t.chain().focus().toggleOrderedList().run()},className:t.isActive("orderedList")?"is-active":"",children:(0,s.jsx)(yL,{})},"orderedList")}),(0,s.jsx)($S,{"data-testid":"bulletedlist-tooltip",title:"Bulleted List",placement:"top",enterDelay:1e3,arrow:!0,children:(0,s.jsx)(el,{onClick:function(){return t.chain().focus().toggleBulletList().run()},className:t.isActive("bulletList")?"is-active":"",style:{borderRight:"solid 1px #9c9c9c"},children:(0,s.jsx)(gL,{})},"bulletList")}),(0,s.jsx)($S,{"data-testid":"table-tooltip",title:"Table",placement:"top",enterDelay:1e3,arrow:!0,children:(0,s.jsx)(el,{onClick:function(){return t.commands.insertTable({rows:3,cols:3,withHeaderRow:!0})},className:t.isActive("insertTable")?"is-active":"",children:(0,s.jsx)(bL,{})},"insertTable")})]})}):null};const M$=function(e){var t=e.id,n=e.error,r=void 0!==n&&n,o=e.required,i=void 0!==o&&o,a=e.label,l=e.onChange,c=e.content,u=e.disabled,d=RR({extensions:[dL,HR,nI.configure({resizable:!0}),iI,oI,rI,sI],shouldRerenderOnTransaction:!1,content:c,onUpdate:function(e){var t=e.editor.getHTML();l(t)}},[c]);return(0,s.jsxs)("div",{className:"rich-text-editor","data-testid":"".concat((0,Dd.kebabCase)(a),"-rich-text-editor"),children:[(0,s.jsx)(Od,{shrink:!0,required:i,error:r,htmlFor:t,style:{marginBottom:0,height:16},sx:[{backgroundColor:"transparent",borderColor:"#8C8C8C",display:"inline-flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:"#333","& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},i&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},r&&{color:"#AE1C1C !important"}],children:a}),u?(0,s.jsx)("p",{"data-testid":"".concat(t,"-value"),"aria-labelledby":a,dangerouslySetInnerHTML:{__html:c?C$.sanitize(c):"-"}}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k$,{editor:d}),(0,s.jsx)(wR,{editor:d})]})]})},O$=li((0,s.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function T$(e){return T$="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},T$(e)}var P$=["placeHolder","required","disabled","id","error","label","helperText","options"];function D$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D$(Object(n),!0).forEach(function(t){j$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function j$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=T$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=T$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T$(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const A$=function(e){var t=e.placeHolder,n=void 0===t?void 0:t,r=e.required,o=void 0!==r&&r,i=e.disabled,a=void 0!==i&&i,l=e.id,c=e.error,u=void 0!==c&&c,d=e.label,p=e.helperText,f=void 0===p?void 0:p,h=e.options,m=void 0===h?[(0,s.jsx)(mw,{value:"test value","data-testid":"measure-model-option-",children:"test value"},"test")]:h,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,P$);if(a)return(0,s.jsx)(Ld,E$({required:o,label:d,id:l,size:"small"},g));var y=(0,s.jsx)("span",{style:{color:"#717171"},children:(null==n?void 0:n.name)||"placeholder"});return(0,s.jsxs)(Pi,{error:u,fullWidth:!0,children:[(0,s.jsx)(Od,{id:"".concat(l,"-label"),disabled:a,required:o,shrink:!0,style:{marginBottom:0,height:16},sx:[{backgroundColor:"transparent",display:"flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:"#333","& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},o&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},a&&{color:"rgba(0,0,0,0.6)"},u&&{color:"#AE1C1C !important"}],children:d}),f&&(0,s.jsx)(Ni,{tabIndex:0,"aria-live":"polite","data-testid":"".concat(l,"-helper-text"),id:"".concat(l,"-helper-text"),sx:[{margin:"4px 0px 0px 0px",color:"#515151",lineHeight:1},u&&{color:"#AE1C1C !important"}],children:f}),(0,s.jsx)(gd,E$(E$({sx:[{border:"none",borderRadius:"3px",height:40,marginTop:"8px","& .MuiOutlinedInput-notchedOutline":{borderColor:"#8C8C8C",borderRadius:"3px","& legend":{width:0}},"& .MuiOutlinedInput-root":{"&&":{borderRadius:"3px"}},"& .MuiInputBase-input":{color:"#333",fontFamily:"Rubik",fontSize:14,borderRadius:"3px",padding:"9px 14px","&::placeholder":{color:"#717171"}},"& \t.MuiSelect-icon":{color:"#323232"},"& .Mui-disabled":{backgroundColor:"#EDEDED",border:"#EDEDED"}},u&&{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#AE1C1C !important"}}],displayEmpty:!0,IconComponent:O$,disabled:a,required:o,id:l,"aria-describedby":"".concat(l,"-helper-text"),labelId:"".concat(l,"-label"),renderValue:function(e){return n&&e===n.value?y:e}},g),{},{children:m&&m}))]})};const R$=function(e){var t=e.children,n=e.value,r=void 0===n?0:n,o=e.index,i=void 0===o?0:o,a=e.id,l=e.className,c=void 0===l?"":l,u=e.disabled,d=void 0!==u&&u,p=["qpp-c-tabs__panel",c].filter(Boolean).join(" ");return(0,s.jsx)("div",{role:"tabpanel",id:a,"aria-hidden":r!==i,"aria-labelledby":"qpp-c-tabs__item--".concat(a),"aria-disabled":d,className:p,children:r===i&&t})};function N$(e){return N$="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},N$(e)}var I$=["type","size","orientation"];function L$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L$(Object(n),!0).forEach(function(t){F$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=N$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=N$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==N$(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z$={"& .MuiTabs-flexContainer":{columnGap:"4px !important"},"& .MuiTabs-indicator":{display:"none !important"}},_$={backgroundColor:"#FFF",color:"#515151","& .MuiTabs-indicator":{backgroundColor:"#209FA6",height:"6px"}},B$={color:"333","& .MuiTabs-indicator":{backgroundColor:"#209FA6",height:"100%",width:"6px !important",left:0}},V$={"& .MuiTab-root.Mui-selected":{borderTop:"solid 1px #8C8C8C",borderBottom:"solid 1px #8C8C8C",borderRight:"1px solid white",width:"calc(100% + 1px)"}},W$={backgroundColor:"#FFF",color:"#515151","& .MuiTabs-indicator":{backgroundColor:"#209FA6",height:"6px",top:0}},H$={outline:"none",fontFamily:"Rubik, sans Sarif",fontWeight:400,lineHeight:19,backgroundColor:"transparent","& .Mui-selected":{outline:"none",fontWeight:500,color:"#333 !important",backgroundColor:"#fff"}};const U$=function(e){var t=e.type,n=void 0===t?"A":t,r=(e.size,e.orientation),o=void 0===r?"horizontal":r,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,I$),a=$$({},H$);switch(n){case"A":a=$$($$({},a),z$);break;case"B":a=$$($$({},a),_$);break;case"C":a="vertical"===o?$$($$($$({},a),B$),V$):$$($$({},a),B$);break;case"D":a=$$($$({},a),W$)}return(0,s.jsx)(ex,$$({disableRipple:!0,orientation:o,sx:a},i))};function q$(e){return q$="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},q$(e)}var Y$=["type","size","orientation"];function K$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K$(Object(n),!0).forEach(function(t){X$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=q$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=q$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==q$(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J$={color:"#fff",borderRadius:"4px 4px 0px 0px !important",backgroundColor:"#003366","&:hover":{background:"#001F3D"},"&:focus":{background:"#125496",boxShadow:"0px 0px 0px 4px #CBE4FF"}},Z$={color:"#515151","&:hover":{background:"#F2F9FF",color:"#242424"},"&:focus":{boxShadow:"0px 0px 0px 4px #CBE4FF",background:"#fff"}},Q$={color:"#333",background:"#EDEDED","&:hover":{background:"#FAFAFA",color:"#515151"},"&:focus":{boxShadow:"0px 0px 0px 4px #CBE4FF",background:"#fff"}};const eF=function(e){var t=e.type,n=void 0===t?"A":t,r=e.size,o=void 0===r?"standard":r,i=e.orientation,a=void 0===i?"horizontal":i,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Y$),c="A"===n?J$:"B"===n||"D"===n?Z$:"C"===n?Q$:{},u=G$(G$({},{height:"standard"===o?"48px":"60px",fontFamily:"Rubik, sans serif",fontWeight:400,padding:"standard"===o?"14.5px 24px":"20.5px 24px",textTransform:"none",fontSize:"16px",alignItems:"vertical"===a?"flex-start":void 0,"&.Mui-disabled":{background:"#DDDDDD",color:"#717171 !important"}}),c);return(0,s.jsx)(Rv,G$({tabIndex:0,sx:u},l))},tF=e=>{const t=(e=>{const t=jf(),n=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??n})})(e),{forwardedProps:n,internalProps:r}=Hm(t,"time");return Vm({forwardedProps:n,internalProps:r,valueManager:Sf,fieldValueManager:Cf,validator:kv,valueType:"time"})},nF=["slots","slotProps","InputProps","inputProps"],rF=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiTimeField"}),{slots:r,slotProps:o,InputProps:i,inputProps:a}=n,l=so(n,nF),c=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?Bg:wd),d=pa({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:t}});d.inputProps=z({},a,d.inputProps),d.InputProps=z({},i,d.InputProps);const p=tF(d),f=Ug(p),h=Km(z({},f,{slots:r,slotProps:o}));return(0,s.jsx)(u,z({},h))});function oF(e){return Po("MuiTimePickerToolbar",e)}const iF=Do("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),sF=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],aF=Vr(qf,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lF=Vr(cx,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),cF=Vr("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${iF.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${iF.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),uF=Vr("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${iF.ampmLabel}`]:t.ampmLabel},{[`&.${iF.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${iF.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function dF(e){const t=Dp({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:i,onChange:a,view:l,onViewChange:c,views:u,disabled:d,readOnly:p,className:f}=t,h=so(t,sF),m=jf(),g=Yf(),v=Yi(),x=Boolean(n&&!r&&u.includes("hours")),{meridiemMode:w,handleMeridiemChange:S}=ib(o,n,a),C=z({},t,{isRtl:v}),k=(e=>{const{isLandscape:t,classes:n,isRtl:r}=e;return b({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",t&&"hourMinuteLabelLandscape",r&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",t&&"ampmLandscape"],ampmLabel:["ampmLabel"]},oF,n)})(C),M=(0,s.jsx)(lF,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:k.separator});return(0,s.jsxs)(aF,z({landscapeDirection:"row",toolbarTitle:g.timePickerToolbarTitle,isLandscape:i,ownerState:C,className:y(k.root,f)},h,{children:[(0,s.jsxs)(cF,{className:k.hourMinuteLabel,ownerState:C,children:[fh(u,"hours")&&(0,s.jsx)(px,{tabIndex:-1,variant:"h3",onClick:()=>c("hours"),selected:"hours"===l,value:o?(O=o,n?m.format(O,"hours12h"):m.format(O,"hours24h")):"--"}),fh(u,["hours","minutes"])&&M,fh(u,"minutes")&&(0,s.jsx)(px,{tabIndex:-1,variant:"h3",onClick:()=>c("minutes"),selected:"minutes"===l,value:o?m.format(o,"minutes"):"--"}),fh(u,["minutes","seconds"])&&M,fh(u,"seconds")&&(0,s.jsx)(px,{variant:"h3",onClick:()=>c("seconds"),selected:"seconds"===l,value:o?m.format(o,"seconds"):"--"})]}),x&&(0,s.jsxs)(uF,{className:k.ampmSelection,ownerState:C,children:[(0,s.jsx)(px,{disableRipple:!0,variant:"subtitle2",selected:"am"===w,typographyClassName:k.ampmLabel,value:_p(m,"am"),onClick:p?void 0:()=>S("am"),disabled:d}),(0,s.jsx)(px,{disableRipple:!0,variant:"subtitle2",selected:"pm"===w,typographyClassName:k.ampmLabel,value:_p(m,"pm"),onClick:p?void 0:()=>S("pm"),disabled:d})]})]}));var O}function pF(e,t){const n=jf(),r=Dp({props:e,name:t}),o=r.ampm??n.is12HourCycleInCurrentLocale(),s=i.useMemo(()=>null==r.localeText?.toolbarTitle?r.localeText:z({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return z({},r,{ampm:o,localeText:s},Np({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,slots:z({toolbar:dF},r.slots),slotProps:z({},r.slotProps,{toolbar:z({ampm:o,ampmInClock:r.ampmInClock},r.slotProps?.toolbar)})})}const fF=i.forwardRef(function(e,t){const n=Yf(),r=jf(),o=pF(e,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:s,timeSteps:a}=Tx(o),l=i?$w:Fw,c=z({hours:l,minutes:l,seconds:l,meridiem:l},o.viewRenderers),u=o.ampmInClock??!0,d=i?[]:["accept"],p=c.hours?.name===Fw.name?s:s.filter(e=>"meridiem"!==e),f=z({},o,{ampmInClock:u,timeSteps:a,viewRenderers:c,format:Jp(r,o),views:i?["hours"]:p,slots:z({field:rF,openPickerIcon:Dm},o.slots),slotProps:z({},o.slotProps,{field:e=>z({},Yo(o.slotProps?.field,e),oh(o),{ref:t}),toolbar:z({hidden:!0,ampmInClock:u},o.slotProps?.toolbar),actionBar:z({actions:d},o.slotProps?.actionBar)})}),{renderPicker:h}=km({props:f,valueManager:Sf,valueType:"time",getOpenDialogAriaText:Tf({utils:r,formatKey:"fullTime",contextTranslation:n.openTimePickerDialogue,propsTranslation:f.localeText?.openTimePickerDialogue}),validator:kv});return h()});fF.propTypes={ampm:jp().bool,ampmInClock:jp().bool,autoFocus:jp().bool,className:jp().string,closeOnSelect:jp().bool,defaultValue:jp().object,disabled:jp().bool,disableFuture:jp().bool,disableIgnoringDatePartForTimeValidation:jp().bool,disableOpenPicker:jp().bool,disablePast:jp().bool,enableAccessibleFieldDOMStructure:jp().any,format:jp().string,formatDensity:jp().oneOf(["dense","spacious"]),inputRef:Ap,label:jp().node,localeText:jp().object,maxTime:jp().object,minTime:jp().object,minutesStep:jp().number,name:jp().string,onAccept:jp().func,onChange:jp().func,onClose:jp().func,onError:jp().func,onOpen:jp().func,onSelectedSectionsChange:jp().func,onViewChange:jp().func,open:jp().bool,openTo:jp().oneOf(["hours","meridiem","minutes","seconds"]),orientation:jp().oneOf(["landscape","portrait"]),readOnly:jp().bool,reduceAnimations:jp().bool,referenceDate:jp().object,selectedSections:jp().oneOfType([jp().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),jp().number]),shouldDisableTime:jp().func,skipDisabled:jp().bool,slotProps:jp().object,slots:jp().object,sx:jp().oneOfType([jp().arrayOf(jp().oneOfType([jp().func,jp().object,jp().bool])),jp().func,jp().object]),thresholdToRenderTimeInASingleColumn:jp().number,timeSteps:jp().shape({hours:jp().number,minutes:jp().number,seconds:jp().number}),timezone:jp().string,value:jp().object,view:jp().oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:jp().shape({hours:jp().func,meridiem:jp().func,minutes:jp().func,seconds:jp().func}),views:jp().arrayOf(jp().oneOf(["hours","minutes","seconds"]).isRequired)};const hF=i.forwardRef(function(e,t){const n=Yf(),r=jf(),o=pF(e,"MuiMobileTimePicker"),i=z({hours:Lw,minutes:Lw,seconds:Lw},o.viewRenderers),s=o.ampmInClock??!1,a=z({},o,{ampmInClock:s,viewRenderers:i,format:Jp(r,o),slots:z({field:rF},o.slots),slotProps:z({},o.slotProps,{field:e=>z({},Yo(o.slotProps?.field,e),oh(o),{ref:t}),toolbar:z({hidden:!1,ampmInClock:s},o.slotProps?.toolbar)})}),{renderPicker:l}=Vb({props:a,valueManager:Sf,valueType:"time",getOpenDialogAriaText:Tf({utils:r,formatKey:"fullTime",contextTranslation:n.openTimePickerDialogue,propsTranslation:a.localeText?.openTimePickerDialogue}),validator:kv});return l()});hF.propTypes={ampm:jp().bool,ampmInClock:jp().bool,autoFocus:jp().bool,className:jp().string,closeOnSelect:jp().bool,defaultValue:jp().object,disabled:jp().bool,disableFuture:jp().bool,disableIgnoringDatePartForTimeValidation:jp().bool,disableOpenPicker:jp().bool,disablePast:jp().bool,enableAccessibleFieldDOMStructure:jp().any,format:jp().string,formatDensity:jp().oneOf(["dense","spacious"]),inputRef:Ap,label:jp().node,localeText:jp().object,maxTime:jp().object,minTime:jp().object,minutesStep:jp().number,name:jp().string,onAccept:jp().func,onChange:jp().func,onClose:jp().func,onError:jp().func,onOpen:jp().func,onSelectedSectionsChange:jp().func,onViewChange:jp().func,open:jp().bool,openTo:jp().oneOf(["hours","minutes","seconds"]),orientation:jp().oneOf(["landscape","portrait"]),readOnly:jp().bool,reduceAnimations:jp().bool,referenceDate:jp().object,selectedSections:jp().oneOfType([jp().oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),jp().number]),shouldDisableTime:jp().func,slotProps:jp().object,slots:jp().object,sx:jp().oneOfType([jp().arrayOf(jp().oneOfType([jp().func,jp().object,jp().bool])),jp().func,jp().object]),timezone:jp().string,value:jp().object,view:jp().oneOf(["hours","minutes","seconds"]),viewRenderers:jp().shape({hours:jp().func,minutes:jp().func,seconds:jp().func}),views:jp().arrayOf(jp().oneOf(["hours","minutes","seconds"]).isRequired)};const mF=["desktopModeMediaQuery"],gF=i.forwardRef(function(e,t){const n=Dp({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=gh}=n,o=so(n,mF);return Pp(r,{defaultMatches:!0})?(0,s.jsx)(fF,z({ref:t},o)):(0,s.jsx)(hF,z({ref:t},o))});function yF(e){return yF="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},yF(e)}var bF=["label","value","handleTimeChange","disabled","required","error"];function vF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vF(Object(n),!0).forEach(function(t){wF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=yF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SF={width:"170px",height:40,marginTop:"8px","& .MuiOutlinedInput-notchedOutline":{borderRadius:"3px",borderColor:"#8C8C8C","& legend":{width:0}},"& .MuiOutlinedInput-root":{"&&":{borderRadius:"3px"}},"& .MuiInputBase-input":{color:"#333333",fontFamily:"Rubik",fontSize:14,borderRadius:"3px",padding:"9px",Width:"170px","&::placeholder":{opacity:1,color:"#717171",fontFamily:"Rubik",fontSize:14}}};const CF=function(e){var t=e.label,n=e.value,r=e.handleTimeChange,o=e.disabled,i=e.required,a=e.error,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,bF);return(0,s.jsxs)(Of,{dateAdapter:lv,children:[(0,s.jsx)(Od,{"data-testid":"".concat((0,Dd.kebabCase)(t)),style:{marginBottom:0,height:16},sx:[{backgroundColor:"transparent",textTransform:"none",height:17,left:0,right:0,top:0,fontFamily:"Rubik",fontStyle:"normal",fontWeight:500,fontSize:14,color:"#333333"}],required:i,disabled:o,error:a,children:"".concat(t)}),(0,s.jsx)(gF,xF({sx:SF,disabled:o,value:n||null,onChange:r,slotProps:{textField:{id:"time"}}},l))]})};function kF(e){return kF="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},kF(e)}var MF=["id","error","helperText","required","disabled","label","inputProps","maxLength"];function OF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OF(Object(n),!0).forEach(function(t){PF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=kF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DF=function(e){var t,n=e.id,r=e.error,o=void 0!==r&&r,i=e.helperText,a=void 0===i?void 0:i,l=e.required,c=void 0!==l&&l,u=e.disabled,d=void 0!==u&&u,p=e.label,f=e.inputProps,h=e.maxLength,m=void 0===h?void 0:h,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,MF);return d?(0,s.jsx)(Ld,TF({required:c,label:p,id:n,size:"small"},g)):(0,s.jsxs)(Pi,{fullWidth:!0,error:o,children:[(0,s.jsx)("div",{style:{width:1,display:"flex",flexDirection:"column",flexGrow:1}}),(0,s.jsx)(Od,{disabled:d,shrink:!0,required:c,error:o,htmlFor:n,style:{marginBottom:0,height:16},sx:[{backgroundColor:"transparent",borderColor:"#8C8C8C",display:"flex",flexDirection:"row-reverse",alignSelf:"baseline",textTransform:"none",position:"initial",transform:"translateX(0px) translateY(0px)",fontFamily:"Rubik",fontWeight:500,fontSize:14,color:"#333","& .MuiInputLabel-asterisk":{color:"#AE1C1C !important",marginRight:"3px !important"}},c&&{transform:"translateX(-12px) translateY(0px)","& .MuiInputLabel-asterisk":{color:"#D92F2",marginRight:"3px !important"}},d&&{color:"rgba(0,0,0,0.6)"},o&&{color:"#AE1C1C !important"}],children:p}),a&&(0,s.jsx)(Ni,{tabIndex:0,"aria-live":"polite",id:"".concat(n,"-helper-text"),"data-testid":"".concat(n,"-helper-text"),sx:[{margin:"4px 0px 0px 0px",color:"#515151",lineHeight:1},o&&{color:"#AE1C1C !important"}],children:a}),(0,s.jsx)(Vl,TF(TF({style:{marginTop:"8px",maxWidth:"100%"},className:o?"text-area-variable error":"text-area-variable",label:null,disabled:d,id:n},f),g)),m&&!d&&(0,s.jsxs)("span",{style:{fontFamily:"Rubik",fontSize:12,color:"#717171",position:"absolute",bottom:-26,right:0},children:[null===(t=g.value)||void 0===t?void 0:t.length,"/",m," Characters"]})]})},EF=li((0,s.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 19zm-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 14"}));const jF=function(e){var t=e.id,n=void 0===t?"search-input":t,r=e.name,o=void 0===r?"":r,i=e.placeholder,a=void 0===i?"":i,l=e.disableSearchBtn,c=void 0!==l&&l,u=e.disabled,d=void 0!==u&&u,p=e.inputValue,f=void 0===p?"":p,h=e.onClick,m=void 0===h?function(){return null}:h,g=e.onChange,y=void 0===g?function(){return null}:g,b=e.inputAriaLabel,v=void 0===b?"":b,x=e.buttonAriaLabel,w=void 0===x?"":x,S=e.inputWidth,C={width:void 0===S?"auto":S,borderColor:"#8C8C8C"};return(0,s.jsxs)("form",{role:"search",className:"qpp-c-search qpp-c-search--compact",children:[(0,s.jsx)("label",{className:"qpp-u-visually-hidden",htmlFor:n,children:"Search"}),(0,s.jsxs)("div",{className:"qpp-c-search__wrap",children:[(0,s.jsx)("input",{style:C,className:"qpp-c-text-input",type:"search",id:n,name:o,placeholder:a,value:f,disabled:d,onChange:y,"aria-label":v}),(0,s.jsxs)("button",{"data-testid":"search-btn","aria-label":w,onClick:m,disabled:c,id:"".concat(n,"-submit"),type:"submit",className:"qpp-c-search__submit qpp-c-button qpp-c-button--text",children:[(0,s.jsx)("span",{className:"qpp-u-visually-hidden",children:"Search"}),(0,s.jsx)(EF,{classes:{root:"qpp-icon-mat"}})]})]})]})};function AF(e){return AF="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},AF(e)}var RF=["id","error","helperText","required","disabled","label","tooltipText","inputProps","allowNegative"];function NF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NF(Object(n),!0).forEach(function(t){LF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=AF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $F(e){var t=e.id,n=e.error,r=void 0!==n&&n,o=e.helperText,i=void 0===o?void 0:o,a=e.required,l=void 0!==a&&a,c=e.disabled,u=void 0!==c&&c,d=e.label,p=e.tooltipText,f=e.inputProps,h=e.allowNegative,m=void 0===h||h,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,RF),y=IF({},f)||{};if(y["data-testid"]||(y["data-testid"]="".concat(t,"-input")),!y["aria-describedby"]){var b="";i&&(b+="".concat(t,"-helper-text ")),p&&(b+="".concat(t,"-tooltip")),b&&(y["aria-describedby"]=b)}return y.type="number",m||(y.min=0),(0,s.jsx)(bp,IF({id:"integer-field-".concat(t),error:r,helperText:i,required:l,disabled:u,label:d,tooltipText:p,inputProps:y,placeholder:"Enter ".concat(d),"data-testid":"integer-field-".concat(t),onKeyDown:function(e){"e"!==e.key&&"E"!==e.key&&"+"!==e.key&&"."!==e.key||e.preventDefault()}},g))}function FF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const _F=function(e){var t=e.text,n=e.maxLength,r=void 0===n?120:n,o=e.dataTestId,a=e.fontSize,l=void 0===a?"1rem":a,c=FF((0,i.useState)(!1),2),u=c[0],d=c[1];if(!t||""===Ed().trim(t))return null;var p=u?t:Ed().slice(t,0,r);return(0,s.jsxs)("div",{"data-testid":"".concat(o,"-content"),style:{fontSize:l},children:[(0,s.jsx)("span",{children:p}),t.length>r&&(0,s.jsx)(el,{onClick:function(){return d(function(e){return!e})},"data-testid":"".concat(o,"-toggle-button"),color:"primary",sx:{marginLeft:"5px",padding:"0",cursor:"pointer",textDecoration:"underline",fontSize:"inherit"},children:u?"Show less":"Show more"})]})};const BF=zr({zIndex:{appBar:1251,tooltip:1250},palette:{primary:{main:"#007bff"}},components:{MuiIconButton:{styleOverrides:{root:{"&.DeleteClass":{color:Kn[700]},"&.Mui-disabled":{color:"#8C8C8C"},color:"#0073C8"}}}}}),VF={MyApplicationsIcon:function(){return(0,s.jsx)("svg",{className:"my-applications",viewBox:"0 0 25 25",children:(0,s.jsx)("g",{children:(0,s.jsxs)("g",{transform:"translate(0.000000, 0.629018)",children:[(0,s.jsx)("polygon",{points:"12 23.0964379 24 15.374457 24 16.3397046 12 24.0616855 0 16.3397046 0 15.374457"}),(0,s.jsx)("polygon",{points:"12 19.2701998 24 11.5482189 24 12.5134666 12 20.2354474 0 12.5134666 0 11.5482189"}),(0,s.jsx)("path",{d:"M23.25,8.20460469 L12,0.965247611 L0.75,8.20460469 L12,15.4439618 L23.25,8.20460469 Z M24,7.72198089 L24,8.6872285 L12,16.4092094 L0,8.6872285 L0,7.72198089 L12,0 L24,7.72198089 Z"})]})})})},UserSignInIcon:function(){return(0,s.jsx)("svg",{className:"user-sign-in",viewBox:"0 0 25 25",children:(0,s.jsx)("path",{d:"M26.6,22.9c-1.2-2.3-3.3-4-5.7-4.7l-2.5-0.7c-0.1,0-0.1,0-0.1-0.1c0,0,0-0.1,0-0.2l1.8-2 c1.5-1.6,2.1-3.8,1.9-5.9l-0.3-2.4c-0.3-2.3-1.5-4.3-3.4-5.5l-0.1,0c-1.2-0.8-2.6-1.1-4-1.1c-1.5,0-2.9,0.4-4.3,1.3 c-1.8,1.2-2.9,3-3.2,5.1L6.2,9.1c-0.3,2.2,0.3,4.5,1.8,6.2l1.7,1.9c0,0,0,0,0,0.1c0,0.1,0,0.1,0,0.2c0,0.1-0.1,0.1-0.1,0.1l-2.5,0.7 c-2.4,0.7-4.5,2.4-5.7,4.7c-0.5,1-0.5,2.3,0.1,3.3c0.7,1,1.8,1.6,2.9,1.6h19.3c1.2,0,2.3-0.6,2.9-1.6C27.2,25.3,27.2,24,26.6,22.9z M11.1,18.1c0.2-0.4,0.2-0.9,0.1-1.4c-0.1-0.2-0.2-0.4-0.3-0.5l-1.7-1.9C8,13,7.5,11.1,7.7,9.3l0.4-2.6c0.3-1.7,1.2-3.2,2.6-4.1 c1-0.7,2.2-1,3.4-1c1.2,0,2.3,0.3,3.3,1l0.1,0h0C19,3.6,20,5.2,20.2,7l0.3,2.4c0.2,1.7-0.3,3.4-1.5,4.7l-1.8,2 c-0.1,0.2-0.2,0.3-0.3,0.5c-0.2,0.4-0.1,0.9,0.1,1.4c0.2,0.4,0.6,0.7,1,0.9l2.5,0.7c2.1,0.6,3.8,2,4.8,3.9c0.3,0.6,0.3,1.3-0.1,1.8 c-0.3,0.5-0.9,0.9-1.6,0.9H4.4c-0.7,0-1.2-0.4-1.6-0.9c-0.3-0.6-0.3-1.2,0-1.8l0,0c1-1.9,2.7-3.3,4.8-3.9l2.5-0.7 C10.5,18.8,10.9,18.5,11.1,18.1z"})})},MyTestDataIcon:function(){return(0,s.jsxs)("svg",{className:"my-test-data",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,s.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"})]})},ReportDataIcon:function(){return(0,s.jsxs)("svg",{className:"report-data",viewBox:"0 0 35 35",children:[(0,s.jsx)("title",{children:"report-data"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("polygon",{points:"11.5,15.5 12.6,16.5 16.9,11.8 16.9,26.3 18.1,26.3 18.1,11.8 22.4,16.5 23.5,15.5 17.5,9 \t"}),(0,s.jsx)("path",{d:"M32.8,17.5c0-2.1-0.4-4.1-1.2-6c-2.3-5.5-7.8-9.4-14.1-9.4c-6.7,0-12.4,4.3-14.4,10.3c-0.5,1.6-0.9,3.3-0.9,5 c0,3.7,1.3,7.1,3.5,9.8c2.8,3.4,7,5.5,11.8,5.5c3.2,0,6.1-1,8.6-2.6C30.1,27.4,32.8,22.8,32.8,17.5z M17.5,31.6c-3.1,0-6-1-8.3-2.7 c-3.5-2.6-5.8-6.7-5.8-11.4c0-1.5,0.2-2.9,0.6-4.2c1.8-5.7,7.2-9.9,13.5-9.9c5.9,0,10.9,3.6,13.1,8.8c0.7,1.7,1.1,3.5,1.1,5.4 c0,6-3.7,11.1-8.9,13.1C21.1,31.3,19.3,31.6,17.5,31.6z"})]})]})},ManageUsersIcon:function(){return(0,s.jsx)("svg",{className:"manage-users-svg",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M4.4,10.8V0.2H3.6v10.7c-1.9,0.2-3.4,1.8-3.4,3.8s1.5,3.6,3.4,3.8v6.4h0.9v-6.4c1.9-0.2,3.4-1.8,3.4-3.8 S6.3,11.1,4.4,10.8z M4,17.6c-1.6,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3S5.6,17.6,4,17.6z"}),(0,s.jsx)("path",{d:"M12.9,2.3V0.2h-0.9v2.2c-1.9,0.2-3.4,1.8-3.4,3.8c0,2,1.5,3.6,3.4,3.8v14.9h0.9V9.9c1.9-0.2,3.4-1.8,3.4-3.8 C16.3,4.2,14.8,2.6,12.9,2.3z M12.5,9.1c-1.6,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3S14.1,9.1,12.5,9.1z"}),(0,s.jsx)("path",{d:"M24.8,18.9c0-2-1.5-3.6-3.4-3.8V0.2h-0.9v14.9c-1.9,0.2-3.4,1.8-3.4,3.8s1.5,3.6,3.4,3.8v2.2h0.9v-2.2 C23.3,22.4,24.8,20.8,24.8,18.9z M21,21.8c-1.6,0-3-1.3-3-3c0-1.6,1.3-3,3-3s3,1.3,3,3C24,20.5,22.6,21.8,21,21.8z"})]})})},AccountHomeIcon:function(){return(0,s.jsx)("svg",{className:"account-home-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("path",{d:"M8.5,24 L8.5,15 C8.5,14.7238576 8.72385763,14.5 9,14.5 L16,14.5 C16.2761424,14.5 16.5,14.7238576 16.5,15 L16.5,24 L22.5,24 L22.5,9.238536 L12.5,1.14329791 L2.5,9.238536 L2.5,24 L8.5,24 Z M1.68540089,8.61137756 L12.1854009,0.111377565 C12.3688463,-0.0371258549 12.6311537,-0.0371258549 12.8145991,0.111377565 L23.3145991,8.61137756 C23.4318689,8.70631024 23.5,8.8491212 23.5,9 L23.5,24.5 C23.5,24.7761424 23.2761424,25 23,25 L2,25 C1.72385763,25 1.5,24.7761424 1.5,24.5 L1.5,9 C1.5,8.8491212 1.56813111,8.70631024 1.68540089,8.61137756 Z M9.5,15.5 L9.5,24 L15.5,24 L15.5,15.5 L9.5,15.5 Z"})})},FacilityBasedPreviewIcon:function(){return(0,s.jsx)("svg",{className:"facility-based-preview-svg",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M24.498 23.234l-5.359-5.262c.427-.79.651-1.672.651-2.575 0-1.848-.959-3.582-2.521-4.596V4.792a.513.513 0 0 0-.155-.366L12.762.152A.533.533 0 0 0 12.389 0H.547A.523.523 0 0 0 .02.518v22.154c0 .286.236.517.527.517h16.194a.523.523 0 0 0 .528-.517v-1.954l4.896 4.807c.311.306.726.475 1.166.475.441 0 .855-.169 1.167-.475a1.601 1.601 0 0 0 0-2.29zm-9.03-18.96h-2.552V1.768l1.276 1.253 1.276 1.253zm.746 16.255v1.625H1.074V1.036h10.787v3.756c0 .286.236.518.528.518h3.825v4.955a5.705 5.705 0 0 0-2.03-.373c-3.091 0-5.606 2.47-5.606 5.505 0 3.036 2.515 5.505 5.606 5.505.697 0 1.386-.128 2.03-.373zm.397-1.35l-.136.08a4.61 4.61 0 0 1-2.291.608c-2.51 0-4.551-2.005-4.551-4.47 0-2.464 2.041-4.47 4.551-4.47.806 0 1.599.21 2.291.608 1.394.8 2.26 2.28 2.26 3.862 0 .847-.242 1.671-.7 2.384a4.561 4.561 0 0 1-1.424 1.397zm7.141 5.614a.597.597 0 0 1-.42.171.596.596 0 0 1-.421-.171l-5.206-5.112a5.64 5.64 0 0 0 .84-.827h.001l5.206 5.113a.577.577 0 0 1 0 .826z"}),(0,s.jsx)("path",{d:"M12.28 12.348a3.542 3.542 0 0 0-1.738 3.05c0 .285.236.517.527.517a.523.523 0 0 0 .528-.518c0-.89.462-1.7 1.235-2.167a.513.513 0 0 0 .174-.712.533.533 0 0 0-.726-.17zM16.018 12.307a3.691 3.691 0 0 0-1.834-.486.523.523 0 0 0-.528.518c0 .286.237.518.528.518.458 0 .909.119 1.302.345a.533.533 0 0 0 .722-.186.513.513 0 0 0-.19-.709z"})]})})},PaymentIcon:function(){return(0,s.jsx)("svg",{className:"payment-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M12.1618195,20.7968379 L12.1618195,12.9463878 C10.781964,12.4923749 9.69910643,12.0472873 8.91321499,11.6111111 C8.11242203,11.1666644 7.51873961,10.6203736 7.1321499,9.97222222 C6.7455602,9.32407083 6.55226824,8.5 6.55226824,7.5 C6.55226824,6.14814139 7.0447025,5.01389347 8.0295858,4.09722222 C9.01446909,3.18055097 10.3905237,2.65740806 12.1577909,2.52777778 L12.1577909,0.611111111 C12.1577909,0.425925 12.2130172,0.277778333 12.3234714,0.166666667 C12.4339256,0.055555 12.5811957,0 12.765286,0 L13.2899408,0 C13.4740312,0 13.6213012,0.055555 13.7317554,0.166666667 C13.8422096,0.277778333 13.8974359,0.425925 13.8974359,0.611111111 L13.8974359,2.55555556 C15.057205,2.66666722 16.0512779,2.97221972 16.8796844,3.47222222 C17.7080909,3.97222472 18.3339887,4.56944097 18.7573964,5.26388889 C19.1808042,5.95833681 19.4109137,6.65740389 19.4477318,7.36111111 C19.4477318,7.50926 19.3971077,7.63888833 19.295858,7.75 C19.1946083,7.86111167 19.0519404,7.91666667 18.8678501,7.91666667 L18.3155819,7.91666667 C18.1867186,7.91666667 18.0578573,7.87500042 17.9289941,7.79166667 C17.8001308,7.70833292 17.7264958,7.56481583 17.7080868,7.36111111 C17.5976326,6.43518056 17.1051983,5.67129931 16.2307692,5.06944444 C15.5784594,4.62047057 14.8006641,4.33896279 13.8973694,4.22491735 L13.8973694,11.7499783 C15.4069766,12.2314839 16.5851371,12.6944422 17.4319527,13.1388889 C18.2787682,13.5833356 18.9184725,14.1203672 19.3510848,14.75 C19.7836971,15.3796328 20,16.1944394 20,17.1944444 C20,18.7500078 19.4615438,19.9861065 18.3846154,20.9027778 C17.3076869,21.819449 15.8119754,22.3425919 13.8974359,22.4722222 L13.8974359,24.3888889 C13.8974359,24.574075 13.8422096,24.7222217 13.7317554,24.8333333 C13.6213012,24.944445 13.4740312,25 13.2899408,25 L12.765286,25 C12.5811957,25 12.4339256,24.944445 12.3234714,24.8333333 C12.2130172,24.7222217 12.1577909,24.574075 12.1577909,24.3888889 L12.1577909,22.4444444 C10.9059766,22.3518514 9.81985996,22.0648172 8.89940828,21.5833333 C7.97895661,21.1018494 7.27482164,20.5046332 6.78698225,19.7916667 C6.29914286,19.0787001 6.03681807,18.3148189 6,17.5 C6,17.3518511 6.05522627,17.2222228 6.16568047,17.1111111 C6.27613467,17 6.41420036,16.9444444 6.57988166,16.9444444 L7.1321499,16.9444444 C7.4635125,16.9444444 7.66600884,17.1296278 7.73964497,17.5 C7.86850821,18.3888933 8.37474903,19.1666633 9.25838264,19.8333333 C9.97320875,20.3726414 10.9410143,20.6938096 12.1618195,20.7968379 Z M13.8973694,20.8073012 C15.2350836,20.7193579 16.2613967,20.4085927 16.9763314,19.875 C17.8323514,19.2361079 18.260355,18.3425983 18.260355,17.1944444 C18.260355,16.4907372 18.0532565,15.9120393 17.6390533,15.4583333 C17.22485,15.0046274 16.6219632,14.6064832 15.8303748,14.2638889 C15.3408921,14.052044 14.6965598,13.8065676 13.8973694,13.5274567 L13.8973694,20.8073012 Z M12.1618195,4.19615363 C11.0995324,4.28099937 10.2283731,4.54894668 9.54832347,5 C8.71071245,5.55555833 8.29191321,6.38888333 8.29191321,7.5 C8.29191321,8.22222583 8.48060298,8.81944208 8.85798817,9.29166667 C9.23537335,9.76389125 9.80144264,10.1712946 10.556213,10.5138889 C10.9788577,10.7057296 11.5140579,10.9193435 12.1618195,11.1547327 L12.1618195,4.19615363 Z"})})})},PhysicianCompareIcon:function(){return(0,s.jsx)("svg",{className:"physician-compare-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",children:(0,s.jsxs)("g",{id:"Physician-Compare_Physician-Compare",children:[(0,s.jsx)("path",{d:"M19.2204301,5 L18.1451613,5 C17.7419355,5 17.4731183,5.2601626 17.4731183,5.6504065 C17.4731183,6.04065041 17.7419355,6.30081301 18.1451613,6.30081301 L19.2204301,6.30081301 C19.3548387,6.30081301 19.4892473,6.43089431 19.4892473,6.56097561 L19.4892473,11.8943089 C19.4892473,13.3252033 18.2795699,14.6260163 16.6666667,14.6260163 C15.0537634,14.6260163 13.844086,13.4552846 13.844086,11.8943089 L13.844086,6.56097561 C13.844086,6.43089431 13.9784946,6.30081301 14.1129032,6.30081301 L15.188172,6.30081301 C15.5913978,6.30081301 15.8602151,6.04065041 15.8602151,5.6504065 C15.8602151,5.2601626 15.5913978,5 15.188172,5 L14.1129032,5 C13.3064516,5 12.5,5.6504065 12.5,6.56097561 L12.5,11.8943089 C12.5,13.8455285 13.9784946,15.5365854 15.9946237,15.9268293 C15.8602151,18.398374 14.6505376,19.699187 12.5,19.699187 L12.2311828,19.699187 C9.40860215,19.699187 8.33333333,17.2276423 8.33333333,15.6666667 L8.33333333,14.495935 C9.67741935,14.1056911 10.6182796,12.9349593 10.6182796,11.504065 C10.7526882,9.81300813 9.27419355,8.38211382 7.52688172,8.38211382 C5.77956989,8.38211382 4.16666667,9.81300813 4.16666667,11.504065 C4.16666667,13.0650407 5.37634409,14.3658537 6.98924731,14.6260163 L6.98924731,15.6666667 C6.98924731,18.2682927 8.87096774,21 12.2311828,21 L12.5,21 C15.4569892,21 17.2043011,19.1788618 17.3387097,15.796748 C19.3548387,15.5365854 20.8333333,13.8455285 20.8333333,11.7642276 L20.8333333,6.56097561 C20.8333333,5.6504065 20.1612903,5 19.2204301,5 Z M5.77956989,11.504065 C5.77956989,10.5934959 6.58602151,9.94308943 7.39247312,9.94308943 C8.19892473,9.94308943 9.00537634,10.7235772 9.00537634,11.504065 C9.00537634,12.2845528 8.33333333,13.195122 7.52688172,13.195122 C6.72043011,13.195122 5.77956989,12.4146341 5.77956989,11.504065 Z"}),(0,s.jsx)("path",{d:"M20.718232,0 L4.14364641,0 C1.79558011,0 0,1.82291667 0,3.90625 L0,21.09375 C0,23.3072917 1.93370166,25 4.14364641,25 L20.8563536,25 C23.2044199,25 25,23.1770833 25,21.09375 L25,3.90625 C24.8618785,1.82291667 23.0662983,0 20.718232,0 Z M23.480663,21.09375 C23.480663,22.5260417 22.2375691,23.6979167 20.718232,23.6979167 L4.14364641,23.6979167 C2.62430939,23.6979167 1.38121547,22.5260417 1.38121547,21.09375 L1.38121547,3.90625 C1.38121547,2.47395833 2.62430939,1.30208333 4.14364641,1.30208333 L20.8563536,1.30208333 C22.3756906,1.30208333 23.6187845,2.47395833 23.6187845,3.90625 L23.6187845,21.09375 L23.480663,21.09375 Z"})]})})})},HardshipIcon:function(){return(0,s.jsx)("svg",{className:"hardship-icon",viewBox:"0 0 25 25",version:"1.1",children:(0,s.jsx)("g",{children:(0,s.jsxs)("g",{transform:"translate(2.000000, 0.000000)",fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M18.7721739,2.6119403 L14.4991304,2.6119403 L12.4813043,2.6119403 C12.5178261,2.44402985 12.5543478,2.2761194 12.5543478,2.0988806 C12.5543478,0.942164179 11.6321739,0 10.5,0 C9.36782609,0 8.44565217,0.942164179 8.44565217,2.0988806 C8.44565217,2.2761194 8.47304348,2.44402985 8.51869565,2.6119403 L6.49173913,2.6119403 L2.21869565,2.6119403 C0.995217391,2.6119403 0,3.62873134 0,4.8880597 L0,22.733209 C0,23.983209 0.995217391,25 2.21869565,25 L18.7721739,25 C19.9956522,25 21,23.983209 21,22.7238806 L21,4.8880597 C21,3.62873134 19.9956522,2.6119403 18.7721739,2.6119403 Z M10.5,0.932835821 C11.13,0.932835821 11.6413043,1.45522388 11.6413043,2.0988806 C11.6413043,2.31343284 11.5682609,2.5 11.4769565,2.66791045 C11.403913,2.7891791 11.3126087,2.9011194 11.2030435,2.99440299 C11.1482609,3.04104478 11.0843478,3.08768657 11.0204348,3.125 C10.9747826,3.14365672 10.9382609,3.17164179 10.8926087,3.19029851 C10.7647826,3.22761194 10.6369565,3.26492537 10.5,3.26492537 C10.3630435,3.26492537 10.2352174,3.22761194 10.1165217,3.18097015 C10.0708696,3.16231343 10.0343478,3.14365672 9.98869565,3.11567164 C9.92478261,3.07835821 9.86086957,3.03171642 9.80608696,2.98507463 C9.6873913,2.89179104 9.59608696,2.77052239 9.52304348,2.63992537 C9.43173913,2.47201493 9.36782609,2.29477612 9.36782609,2.08955224 C9.35869565,1.45522388 9.87,0.932835821 10.5,0.932835821 Z M20.0869565,22.7238806 C20.0869565,23.4608209 19.5026087,24.0671642 18.7721739,24.0671642 L2.21869565,24.0671642 C1.4973913,24.0671642 0.903913043,23.4701493 0.903913043,22.7238806 L0.903913043,4.8880597 C0.913043478,4.14179104 1.4973913,3.54477612 2.21869565,3.54477612 L6.49173913,3.54477612 L6.49173913,4.38432836 C6.49173913,4.95335821 6.93913043,5.41044776 7.49608696,5.41044776 L13.503913,5.41044776 C14.0608696,5.41044776 14.5082609,4.95335821 14.5082609,4.38432836 L14.5082609,3.54477612 L18.7813043,3.54477612 C19.5026087,3.54477612 20.096087,4.14179104 20.096087,4.8880597 L20.096087,22.7238806 L20.0869565,22.7238806 L20.0869565,22.7238806 Z"}),(0,s.jsxs)("g",{transform:"translate(4.000000, 9.000000)",children:[(0,s.jsx)("rect",{x:"3.50571429",y:"7.24",width:"7.97142857",height:"1"}),(0,s.jsx)("rect",{x:"0.848571429",y:"7.24",width:"1.37142857",height:"1"}),(0,s.jsx)("rect",{x:"6.50571429",y:"2.17",width:"4.97142857",height:"1"}),(0,s.jsx)("polygon",{points:"2.13428571 4.04 0.402857143 2.01 1.01142857 1.31 2.13428571 2.62 4.03714286 0.41 4.64571429 1.11"})]})]})})})},TargetIcon:function(){return(0,s.jsx)("svg",{className:"target-icon stroke-based-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("g",{strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,s.jsxs)("g",{transform:"translate(1.000000, 1.000000)",children:[(0,s.jsx)("path",{d:"M15.6521739,13.3410862 C14.9799955,14.9155188 13.3391142,15.8471825 11.6426584,15.617619 C9.9462025,15.3880555 8.61194453,14.0537975 8.38238102,12.3573416 C8.15281751,10.6608858 9.08448121,9.0200045 10.6589138,8.34782609",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M19.826087,11.4686261 C19.5475194,15.6524455 16.0240274,18.8752139 11.8318419,18.780577 C7.63965639,18.6859401 4.26519733,15.3074531 4.17572893,11.1153254 C4.08626053,6.92319774 7.31350554,3.40382874 11.4978365,3.13043478",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M22.9565217,10.4801044 C22.9565217,10.8094757 22.9565217,11.1488279 22.9565217,11.4781992 C22.9565217,16.1251852 20.1544991,20.3136359 15.8592987,22.0872623 C11.5640982,23.8608888 6.62327363,22.8696906 3.3445233,19.5766243 C0.065772964,16.283558 -0.903887735,11.3384639 0.888438166,7.05103466 C2.68076407,2.7636054 6.8813862,-0.0200950351 11.5283306,0 C11.867683,0 12.2070354,0 12.5264259,0",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M23.4104348,8.34782609 C23.4626087,8.69217391 23.5147826,9.04695652 23.546087,9.39130435",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M19.0559527,8.3085908 L16.1993898,7.27346855 C15.9679825,7.18675289 15.7867762,7.00255341 15.7042523,6.77015223 L14.6758896,3.9211919 C14.5392501,3.60164864 14.6150694,3.23112279 14.8663271,2.99053153 L17.5610181,0.255529619 C17.7680939,0.0454487694 18.069052,-0.043464617 18.357445,0.020237671 C18.6458381,0.083939959 18.8810085,0.291277194 18.9797777,0.568915255 L19.7415278,2.61067015 C19.8301804,2.85007338 20.017334,3.04018548 20.2557092,3.13297955 L22.4076532,3.94968151 C22.6793557,4.05644917 22.8788566,4.29253202 22.938341,4.57768034 C22.9978255,4.86282867 22.9092906,5.15867892 22.7028314,5.36466513 L19.960531,8.07117744 C19.7289278,8.31564041 19.3782081,8.40768945 19.0559527,8.3085908 Z"}),(0,s.jsx)("line",{x1:"12.5217391",y1:"10.4347826",x2:"16.6956522",y2:"6.26086957",strokeLinecap:"round"})]})})})},ReportsIcon:function(){return(0,s.jsx)("svg",{className:"reports-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M17.933,0 C18.1717358,0 18.3968908,0.110656353 18.5402903,0.296256203 L22.7874693,5.70648432 C22.9255465,5.88258285 23,6.10021604 23,6.324 L23,24 C23,24.5521424 22.5521424,25 22,25 L3,25 C2.44785763,25 2,24.5521424 2,24 L2,1 C2,0.447857625 2.44785763,0 3,0 L17.933,0 Z M16.937,1 L3,1 L3,24 L22,24 L22,7 L18.4371948,7 C17.6087677,7 16.9371948,6.32842712 16.9371948,5.5 L16.937,1 Z M16.5,20 C16.7761424,20 17,20.2238576 17,20.5 C17,20.7761424 16.7761424,21 16.5,21 L8.5,21 C8.22385763,21 8,20.7761424 8,20.5 C8,20.2238576 8.22385763,20 8.5,20 L16.5,20 Z M12.5,6 C12.7761424,6 13,6.22385763 13,6.5 L12.999,16.41 L15.4105156,14 C15.5840819,13.8264336 15.8535063,13.8071485 16.0483745,13.9421445 L16.1176224,14 C16.3128845,14.1952621 16.3128845,14.5118446 16.1176224,14.7071068 L16.1176224,14.7071068 L12.8535534,17.9711757 C12.6582912,18.1664379 12.3417088,18.1664379 12.1464466,17.9711757 L12.1464466,17.9711757 L8.88237764,14.7071068 C8.6871155,14.5118446 8.6871155,14.1952621 8.88237764,14 C9.07763979,13.8047379 9.39422228,13.8047379 9.58948443,14 L9.58948443,14 L11.999,16.41 L12,6.5 C12,6.22385763 12.2238576,6 12.5,6 Z M17.937,1.148 L17.9371948,5.5 C17.9371948,5.77614237 18.1610524,6 18.4371948,6 L21.746,6 L17.937,1.148 Z"})})})},HelpSupportIcon:function(){return(0,s.jsx)("svg",{className:"help-support",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M12.5,0.3C5.8,0.3,0.3,5.8,0.3,12.5s5.5,12.2,12.2,12.2s12.2-5.5,12.2-12.2S19.2,0.3,12.5,0.3z M12.5,23.8 c-6.2,0-11.3-5.1-11.3-11.3S6.3,1.2,12.5,1.2s11.3,5.1,11.3,11.3S18.7,23.8,12.5,23.8z"}),(0,s.jsx)("path",{d:"M12.5,10.7h-0.4c-0.1,0-0.3,0-0.3,0.1c-0.1,0.1-0.1,0.2-0.1,0.3v8c0,0.1,0,0.3,0.1,0.3 c0.1,0.1,0.2,0.1,0.3,0.1h0.4c0.1,0,0.3,0,0.3-0.1c0.1-0.1,0.1-0.2,0.1-0.3v-8c0-0.1,0-0.3-0.1-0.3C12.8,10.7,12.7,10.7,12.5,10.7z"}),(0,s.jsx)("path",{d:"M12.6,6.7h-0.5c-0.1,0-0.3,0-0.4,0.1c-0.1,0.1-0.1,0.3-0.1,0.4v0.5c0,0.1,0,0.3,0.1,0.3 c0.1,0.1,0.2,0.1,0.3,0.1h0.5c0.1,0,0.3,0,0.4-0.1C13,7.9,13,7.8,13,7.6V7.2c0-0.1,0-0.3-0.1-0.4C12.8,6.7,12.7,6.7,12.6,6.7z"})]})})},DashboardIcon:function(){return(0,s.jsx)("svg",{className:"dashboard-icon",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M22.2,12.8H12.1V2.8c0-0.3-0.2-0.5-0.5-0.5h-0.1c-6.2,0-11.2,5-11.2,11.2c0,6.2,5,11.2,11.2,11.2 c6.2,0,11.2-5,11.2-11.2v-0.1C22.7,13.1,22.5,12.8,22.2,12.8z M11.6,13.9h10c-0.2,5.4-4.7,9.7-10.1,9.7c-5.6,0-10.2-4.6-10.2-10.2 c0-5.4,4.3-9.9,9.7-10.1v10C11.1,13.7,11.3,13.9,11.6,13.9z"}),(0,s.jsx)("path",{d:"M24.7,9.9l0-0.1C24,4.9,20.1,1,15.2,0.3l-0.1,0l0,0c-0.1,0-0.3,0-0.4,0.1c-0.1,0.1-0.2,0.2-0.2,0.4V10 c0,0.3,0.2,0.5,0.5,0.5h9.2c0.2,0,0.3-0.1,0.4-0.2C24.7,10.2,24.7,10.1,24.7,9.9z M23.5,9.5h-8v-8C19.5,2.2,22.8,5.5,23.5,9.5z"})]})})},AccountSettings:function(){return(0,s.jsx)("svg",{className:"account-settings",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M12.5,6.5c-3.3,0-6,2.7-6,6s2.7,6,6,6s6-2.7,6-6S15.8,6.5,12.5,6.5z M12.5,17.5c-2.8,0-5-2.3-5-5s2.3-5,5-5 s5,2.3,5,5S15.3,17.5,12.5,17.5z"}),(0,s.jsx)("path",{d:"M24.5,9.8l-3-0.7c-0.1-0.2-0.2-0.4-0.2-0.6l1.6-2.6c0.1-0.2,0.1-0.4-0.1-0.6l-3.1-3.1 c-0.1-0.2-0.4-0.2-0.6-0.1l-2.6,1.6c-0.2-0.1-0.4-0.2-0.6-0.3l-0.7-3c-0.1-0.2-0.2-0.3-0.5-0.3h-4.4c-0.2,0-0.4,0.1-0.5,0.4l-0.7,3 C9,3.6,8.8,3.7,8.6,3.8L5.9,2.2C5.7,2,5.5,2.1,5.3,2.2L2.2,5.3C2.1,5.5,2.1,5.8,2.2,5.9l1.6,2.6C3.7,8.7,3.6,8.9,3.6,9.1l-3,0.7 c-0.2,0-0.4,0.2-0.4,0.5v4.4c0,0.2,0.2,0.4,0.4,0.5l3,0.7c0.1,0.2,0.2,0.4,0.2,0.6l-1.6,2.6c-0.1,0.2-0.1,0.4,0.1,0.6l3.1,3.1 c0.2,0.2,0.4,0.2,0.6,0.1l2.6-1.6c0.2,0.1,0.4,0.2,0.6,0.3l0.7,3c0,0.2,0.2,0.4,0.5,0.4h4.4c0.2,0,0.4-0.2,0.5-0.4l0.7-3 c0.2-0.1,0.4-0.2,0.6-0.3l2.6,1.6c0.2,0.1,0.4,0.1,0.6-0.1l3.1-3.1c0.1-0.2,0.2-0.4,0.1-0.6l-1.6-2.6c0.1-0.2,0.2-0.4,0.2-0.6 l3-0.7c0.2,0,0.4-0.2,0.4-0.5v-4.4C24.8,10.1,24.7,9.9,24.5,9.8z M20.7,15.3c-0.1,0.3-0.3,0.7-0.4,1c-0.1,0.1-0.1,0.3,0,0.5 l1.6,2.5l-2.6,2.6l-2.5-1.6c-0.1-0.1-0.3-0.1-0.4,0c-0.3,0.1-0.6,0.3-1,0.4c-0.2,0-0.3,0.2-0.3,0.3l-0.7,2.9h-3.7L10,21 c0-0.2-0.2-0.3-0.3-0.3c-0.4-0.1-0.7-0.3-1-0.4c-0.1-0.1-0.3-0.1-0.5,0l-2.5,1.6l-2.6-2.6l1.6-2.5c0.1-0.1,0.1-0.3,0-0.5 c-0.2-0.3-0.3-0.7-0.4-1C4.3,15.1,4.2,15,4,15l-2.9-0.7v-3.7L4,10c0.2,0,0.3-0.2,0.3-0.3c0.1-0.3,0.2-0.6,0.4-1 c0.1-0.1,0.1-0.3,0-0.5L3.1,5.8l2.6-2.6l2.5,1.6c0.1,0.1,0.3,0.1,0.4,0c0.3-0.1,0.6-0.3,1-0.4C9.8,4.3,10,4.2,10,4l0.7-2.9h3.7 L15,4c0,0.2,0.2,0.3,0.3,0.3c0.4,0.1,0.7,0.3,1,0.4c0.1,0.1,0.3,0.1,0.5,0l2.5-1.6l2.6,2.6l-1.6,2.5c-0.1,0.1-0.1,0.3,0,0.5 c0.2,0.3,0.3,0.7,0.4,1C20.7,9.8,20.8,10,21,10l2.9,0.7v3.7L21,15C20.8,15,20.7,15.1,20.7,15.3z"})]})})},DetailsIcon:function(){return(0,s.jsx)("svg",{className:"details-icon",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M21.8,0.4H3.2c-1.2,0-2.1,1-2.1,2.1v20c0,1.2,1,2.1,2.1,2.1h18.6c1.2,0,2.1-1,2.1-2.1v-20 C23.9,1.3,23,0.4,21.8,0.4z M22.9,22.5c0,0.6-0.5,1.1-1.1,1.1H3.2c-0.6,0-1.1-0.5-1.1-1.1v-20c0-0.6,0.5-1.1,1.1-1.1h18.6 c0.6,0,1.1,0.5,1.1,1.1V22.5z"}),(0,s.jsx)("rect",{x:"6.2",y:"17.3",width:"1.6",height:"1"}),(0,s.jsx)("rect",{x:"6.2",y:"12.4",width:"1.6",height:"1"}),(0,s.jsx)("rect",{x:"6.2",y:"7.4",width:"1.6",height:"1"}),(0,s.jsx)("rect",{x:"9.3",y:"17.3",width:"6.1",height:"1"}),(0,s.jsx)("rect",{x:"9.3",y:"12.4",width:"9.3",height:"1"}),(0,s.jsx)("rect",{x:"9.3",y:"7.4",width:"6.5",height:"1"})]})})},StarIcon:function(){return(0,s.jsx)("svg",{className:"star-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("path",{d:"M24.7,9.4c-0.1-0.1-0.2-0.1-0.3-0.2L16.6,8L13,0.9c-0.1-0.1-0.2-0.2-0.3-0.3c-0.1,0-0.3,0-0.4,0 c0,0-0.2,0.1-0.2,0.2L8.4,8L0.6,9.2c-0.3,0-0.5,0.3-0.5,0.6c0,0.1,0.1,0.2,0.2,0.3L6,15.7l-1.3,7.9c-0.1,0.3,0.1,0.6,0.4,0.7h0.1 c0.1,0,0.2,0,0.3-0.1l7-3.7l7,3.7c0.1,0,0.2,0.1,0.3,0.1c0.3,0,0.6-0.3,0.6-0.6v-0.1l-1.3-7.9l5.6-5.6C24.9,10,24.9,9.6,24.7,9.4z M7.1,15.8c0-0.2,0-0.4-0.2-0.5l-5.1-5.1l7-1.1C9,9.1,9.1,9,9.2,8.8l3.2-6.4l3.2,6.4C15.7,9,15.8,9.1,16,9.1l7,1.1l-4.9,5 c-0.1,0.1-0.3,0.4-0.3,0.6l1.4,7l-6.7-3.2c-0.2-0.1-0.4-0.1-0.5,0l-6.3,3.3L7.1,15.8z"})})},CliniciansIcon:function(){return(0,s.jsx)("svg",{className:"clinicians-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M24.7,18.8 L24.7,18.8 C24,17.4 22.7,16.3 21.1,15.9 L19.5,15.4 C19.5,15.4 19.4,15.4 19.4,15.3 L19.4,15.2 L19.4,15.2 L20.5,13.9 C21.4,12.9 21.8,11.5 21.7,10.2 L21.5,8.7 C21.3,7.3 20.6,6.1 19.4,5.4 L19.3,5.3 C18.6,4.8 17.7,4.6 16.8,4.6 C15.9,4.6 15,4.9 14.1,5.4 C13.9,5.5 13.8,5.6 13.6,5.8 L13.5,5.9 L13.5,5.9 C13.1,5.1 12.7,4.4 11.9,3.9 L11.9,3.9 C11.1,3.3 10,3 9.1,3 C8,3 7,3.3 6.2,3.9 C5,4.7 4.2,5.9 4,7.3 L3.7,9.1 C3.5,10.6 3.9,12.1 4.9,13.3 L6.1,14.6 C6.1,14.6 6.1,14.6 6.2,14.7 C6.2,14.8 6.2,14.9 6.2,14.9 C6.2,15 6.1,15.1 6,15.1 L4.3,15.6 C2.6,16.1 1.2,17.3 0.4,18.8 C-3.46944695e-16,19.5 -3.46944695e-16,20.3 0.4,21 C0.8,21.6 1.5,22 2.3,22 L10.8,22 L15.7,22 C16,22 16.2,21.9 16.4,21.9 L22.8,21.9 C23.5,21.9 24.2,21.5 24.6,20.9 C25,20.2 25,19.5 24.7,18.8 Z M15.7,21.3 L10.4,21.2 L9,21.2 L2.3,21.3 C1.2,21.3 0.5,20.1 1.1,19.2 C1.8,17.8 3.1,16.8 4.5,16.4 L6.2,15.9 C6.8,15.7 7.1,15.1 6.9,14.5 C6.8,14.4 6.8,14.3 6.7,14.2 L5.5,12.9 C4.6,11.9 4.2,10.6 4.4,9.3 L4.7,7.5 C5,6.3 5.6,5.2 6.6,4.5 C7.4,4 8.2,3.8 9.1,3.8 C9.9,3.8 10.7,4 11.4,4.5 L11.4,4.5 C12.2,5 12.8,5.8 13.2,6.7 C13.3,7 13.4,7.3 13.4,7.7 L13.4,7.7 L13.6,9.4 C13.7,10.5 13.4,11.5 12.8,12.4 C12.7,12.5 12.6,12.7 12.5,12.8 L12.3,13 L11.2,14.2 C11.1,14.3 11,14.4 11,14.5 C10.8,15.1 11.1,15.6 11.7,15.8 L12.8,16.2 L13.5,16.4 C13.8,16.5 13.8,16.5 14,16.6 C15.3,17.1 16.3,18 17,19.2 C17.5,20.1 16.8,21.3 15.7,21.3 Z M13.1,14.2 L14.2,15.4 L14.2,15.4 L14.2,15.5 L14.1,15.6 L14,15.6 C13.9,15.6 13.8,15.6 13.8,15.6 L12.2,15 C12.1,15 12,14.9 11.9,14.8 C11.8,14.7 11.8,14.6 11.9,14.5 L12,14.4 L12.8,13.5 C12.9,13.9 13,14 13.1,14.2 Z M23.8,20.4 C23.6,20.7 23.2,21 22.8,21 L17.5,21 L17.5,21 C17.9,20.3 17.9,19.5 17.6,18.8 C17,17.7 16,16.7 14.9,16.1 C15.1,15.8 15.1,15.5 15,15.2 C15,15.1 14.9,15 14.8,14.9 L13.7,13.7 C13.5,13.5 13.4,13.3 13.2,13.1 L13.2,13.1 C14,12 14.4,10.7 14.3,9.3 L14.1,7.6 C14.1,7.4 14,7.1 14,6.9 C14,6.9 14,6.9 14,6.8 L14.1,6.7 C14.3,6.5 14.5,6.3 14.7,6.2 C15.4,5.8 16.1,5.5 16.8,5.5 C17.5,5.5 18.2,5.6 18.8,6 L18.9,6.1 L18.9,6.1 C19.8,6.7 20.5,7.7 20.6,8.9 L20.8,10.4 C20.9,11.5 20.6,12.5 19.9,13.4 L18.8,14.7 C18.7,14.8 18.6,14.9 18.6,15 C18.5,15.3 18.5,15.6 18.7,15.9 C18.8,16.2 19.3,16.3 19.6,16.4 L21.2,16.9 C22.5,17.3 23.4,18.3 24,19.5 C24.1,19.6 24.1,20.1 23.8,20.4 Z"})})})},GroupReporting:function(){return(0,s.jsx)("svg",{className:"group-reporting",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M16.9,9C12.5,9,9,12.6,9,16.9s3.6,7.9,7.9,7.9c4.4,0,7.9-3.6,7.9-7.9S21.2,9,16.9,9z M16.9,23.8 c-3.8,0-6.9-3.1-6.9-6.9s3.1-6.9,6.9-6.9s6.9,3.1,6.9,6.9S20.6,23.8,16.9,23.8z"}),(0,s.jsx)("polygon",{points:"13.5,17.2 14.3,17.9 16.5,15.5 16.5,20.6 17.4,20.6 17.4,15.5 19.6,17.9 20.4,17.2 17,13.5 \t"}),(0,s.jsx)("rect",{x:"8.5",y:"4",width:"2",height:"2.2"}),(0,s.jsx)("rect",{x:"12.9",y:"4",width:"2",height:"2.2"}),(0,s.jsx)("rect",{x:"8.5",y:"8.8",width:"2",height:"2.2"}),(0,s.jsx)("path",{d:"M7.2,21.9h-2V1h13v5.2l0,0v0.6c0,0.1,0,0.3,0.1,0.3c0.2,0,0.1,0,0.2,0h0.3c0.1,0,0.3,0,0.3-0.1 c0,0,0-0.1,0-0.2V1.5c0,0,0,0,0-0.1V0.6c0-0.2-0.1-0.4-0.3-0.4l0,0l0,0l0,0h-0.1c0,0,0,0,0.1,0H7.6l0,0H4.8c-0.2,0-0.4,0.2-0.4,0.4 v21.3H0.6c-0.1,0-0.2,0-0.3,0.1s-0.1,0.2-0.1,0.3v0.3c0,0.1,0,0.2,0.1,0.3C0.4,23,0.5,23,0.6,23h6.6c0.1,0,0.2,0,0.3-0.1 c0.1-0.1,0.1-0.2,0.1-0.3v-0.3c0-0.1,0-0.2-0.1-0.3C7.4,21.9,7.3,21.9,7.2,21.9z"})]})})},IndividualReporting:function(){return(0,s.jsx)("svg",{className:"individual-reporting",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M5.1,5.6C5.3,4.3,6.6,3,7.7,2.3c0.9-0.6,1.8-0.9,2.8-0.9c0.9,0,1.9,0.3,2.7,0.8l0,0c1.2,0.8,2,2,2.3,3.4l0,0 l0,0c0,0.1,0,0.4,0.1,0.4c0.1,0,0.2,0,0.2,0h0.3c0.1,0,0.2,0,0.2-0.1V5.8l0,0c0,0,0,0,0-0.1l0,0l0,0c-0.2-1.7-1.2-3.2-2.6-4.1l0,0 c-0.9-0.6-2-0.9-3.2-0.9s-2.3,0.4-3.3,1c-1.4,0.9-2.8,2.4-3,4l-0.3,2C3.6,9.3,3.6,11,4.8,12.3l1.3,1.5c0,0,0,0,0.1,0.1 c0,0.1,0,0.2,0,0.3S6.1,14.3,6,14.4L4,15c-1.9,0.6-2.6,1.9-3.5,3.7c-0.4,0.8-0.4,1.7,0.1,2.5s1.3,1.2,2.2,1.2h3.8l0,0h0.1 c0.1,0,0.3,0,0.3-0.1s0-0.2,0-0.3v-0.2c0-0.1,0-0.3-0.1-0.3c-0.1-0.1-0.1,0-0.2,0H5.2l0,0H2.8c-1.2,0-2-1.3-1.4-2.4 c0.8-1.6,1.3-2.7,3-3.2l2-0.6c0.7-0.2,1-0.9,0.8-1.6c-0.1-0.2-0.2-0.3-0.3-0.4l-1.4-1.5c-1-1.1-1-2.6-0.7-4.1L5.1,5.6z"}),(0,s.jsx)("path",{d:"M16.9,8.6c-4.4,0-7.9,3.6-7.9,7.9s3.6,7.9,7.9,7.9s7.9-3.6,7.9-7.9S21.3,8.6,16.9,8.6z M16.9,23.4 c-3.8,0-6.9-3.1-6.9-6.9s3.1-6.9,6.9-6.9s6.9,3.1,6.9,6.9S20.7,23.4,16.9,23.4z"}),(0,s.jsx)("polygon",{points:"13.6,16.8 14.3,17.5 16.6,15.1 16.6,20.2 17.4,20.2 17.4,15.1 19.7,17.5 20.4,16.8 17,13.1 \t"})]})})},ChevronLeft:function(){return(0,s.jsxs)("svg",{className:"chevron-left",viewBox:"0 0 1792 1792",children:[(0,s.jsx)("title",{children:"chevron-left"}),(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M1427 301l-531 531 531 531q19 19 19 45t-19 45l-166 166q-19 19-45 19t-45-19l-742-742q-19-19-19-45t19-45l742-742q19-19 45-19t45 19l166 166q19 19 19 45t-19 45z"})})]})},ChevronRight:function(){return(0,s.jsxs)("svg",{className:"chevron-right",viewBox:"0 0 1792 1792",children:[(0,s.jsx)("title",{children:"chevron-right"}),(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M1363 877l-742 742q-19 19-45 19t-45-19l-166-166q-19-19-19-45t19-45l531-531-531-531q-19-19-19-45t19-45l166-166q19-19 45-19t45 19l742 742q19 19 19 45t-19 45z"})})]})},ChevronDown:function(){return(0,s.jsxs)("svg",{className:"chevron-down",viewBox:"0 0 1792 1792",children:[(0,s.jsx)("title",{children:"chevron-down"}),(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M1683 808l-742 741q-19 19-45 19t-45-19l-742-741q-19-19-19-45.5t19-45.5l166-165q19-19 45-19t45 19l531 531 531-531q19-19 45-19t45 19l166 165q19 19 19 45.5t-19 45.5z"})})]})},SwitchPractice:function(){return(0,s.jsxs)("svg",{className:"switch-practice",viewBox:"0 0 15 15",children:[(0,s.jsx)("title",{children:"switch-practice"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M14,8.7h-1.8c-0.1,0-0.2,0.1-0.3,0.2c-0.2,0.4-0.3,0.7-0.5,1.1c-0.9,1.4-2.4,2.2-4,2.2c-1.2,0-2.3-0.5-3.2-1.3l1.3-1.3 c0.1-0.1,0.2-0.3,0.2-0.4c0-0.3-0.3-0.6-0.6-0.6H1c-0.3,0-0.6,0.3-0.6,0.6v4.1C0.4,13.7,0.7,14,1,14c0.2,0,0.3-0.1,0.4-0.2l1.2-1.2 c1.3,1.2,3,2,4.8,2c3.4,0,6.1-2.3,6.9-5.5c0,0,0,0,0-0.1C14.3,8.8,14.2,8.7,14,8.7z"}),(0,s.jsx)("path",{d:"M14,1c-0.2,0-0.3,0.1-0.4,0.2l-1.2,1.2c-1.3-1.2-3.1-2-4.9-2C4.1,0.4,1.4,2.7,0.6,6c0,0,0,0,0,0.1c0,0.2,0.1,0.3,0.3,0.3 h1.8C2.9,6.3,3,6.2,3,6.1C3.2,5.7,3.3,5.4,3.5,5c0.9-1.4,2.4-2.2,4-2.2c1.2,0,2.3,0.5,3.2,1.3L9.4,5.3C9.3,5.4,9.3,5.6,9.3,5.7 c0,0.3,0.3,0.6,0.6,0.6H14c0.3,0,0.6-0.3,0.6-0.6V1.6C14.6,1.3,14.3,1,14,1z"})]})]})},ScoreIncrease:function(){return(0,s.jsx)("svg",{className:"score-increase",viewBox:"0 0 15 15",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M9.7,4c0,0.4,0.3,0.7,0.7,0.7h2.2l-4.1,4L5.8,6.4C5.4,6,5.1,6,4.8,6.3l-4.5,4.3c-0.3,0.2-0.3,0.7-0.1,1 s0.6,0.3,0.9,0.1l4.1-3.9L7.9,10c0.2,0.4,0.7,0.5,1,0.1l4.8-4.6v2.7c0,0.4,0.3,0.7,0.6,0.7c0.4,0,0.6-0.4,0.6-0.7V3.9 c0-0.4-0.3-0.7-0.6-0.7h-3.9C10,3.2,9.7,3.6,9.7,4z"})})})},TooltipIcon:function(){return(0,s.jsx)("svg",{className:"tooltip-icon",viewBox:"0 0 15 15",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M7.5,0.2c-4,0-7.3,3.3-7.3,7.3s3.3,7.3,7.3,7.3s7.3-3.3,7.3-7.3S11.5,0.2,7.5,0.2z M7.5,13.6c-3.4,0-6.1-2.7-6.1-6.1 s2.7-6.1,6.1-6.1s6.1,2.7,6.1,6.1S10.9,13.6,7.5,13.6z"}),(0,s.jsx)("path",{d:"M8,9.9H6.9c-0.1,0-0.1,0-0.2,0.1s-0.1,0.1-0.1,0.2v1c0,0.1,0,0.1,0.1,0.2c0.1,0.1,0.1,0.1,0.2,0.1H8c0.1,0,0.1,0,0.2-0.1 c0.1-0.1,0.1-0.1,0.1-0.2v-1c0-0.1,0-0.1-0.1-0.2C8.2,10,8.1,9.9,8,9.9z"}),(0,s.jsx)("path",{d:"M9.1,3.9C8.7,3.7,8.2,3.6,7.6,3.6S6.5,3.7,6,3.9C5.6,4.1,5.3,4.4,5,4.8C4.8,5.1,4.7,5.5,4.7,5.9c0,0.1,0,0.1,0.1,0.2 c0,0.1,0.1,0.1,0.2,0.1h1c0.2,0,0.3-0.1,0.3-0.3c0.1-0.7,0.6-1.1,1.3-1.1c0.3,0,0.6,0.1,0.8,0.3c0.2,0.2,0.3,0.4,0.3,0.7 c0,0.2-0.1,0.3-0.2,0.5C8.3,6.5,8.1,6.7,7.8,7S7.3,7.6,7.1,7.9C6.9,8.1,6.8,8.4,6.7,8.8c0,0.1,0,0.2,0,0.4c0,0.1,0,0.1,0.1,0.2 c0,0,0.1,0.1,0.2,0.1h1.1c0.1,0,0.1,0,0.2-0.1s0.1-0.1,0.1-0.2c0-0.1,0-0.2,0.1-0.4c0-0.2,0.1-0.4,0.3-0.6C8.9,7.8,9,7.7,9.2,7.5 c0.4-0.4,0.6-0.7,0.8-1s0.3-0.6,0.3-1c0-0.3-0.1-0.6-0.3-0.9C9.8,4.3,9.5,4.1,9.1,3.9z"})]})})},NavCollapse:function(){return(0,s.jsxs)("svg",{className:"nav-collapse",viewBox:"0 0 25 25",children:[(0,s.jsx)("title",{children:"nav-collapse"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("polygon",{points:"6.8,9.1 10,12.1 0.1,12.1 0.1,12.9 10,12.9 6.8,15.9 7.5,16.6 12,12.5 7.5,8.4 \t"}),(0,s.jsx)("polygon",{points:"24.9,12.1 15,12.1 18.2,9.1 17.5,8.4 13,12.5 17.5,16.6 18.2,15.9 15,12.9 24.9,12.9 "})]})]})},NavExpand:function(){return(0,s.jsxs)("svg",{className:"nav-expand",viewBox:"0 0 25 25",children:[(0,s.jsx)("title",{children:"nav-expand"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("polygon",{points:"5.2,9.1 4.5,8.4 0.1,12.5 4.5,16.6 5.2,15.9 2,12.9 11,12.9 11,12.1 2,12.1 "}),(0,s.jsx)("polygon",{points:"20.5,8.4 19.8,9.1 23,12.1 14,12.1 14,12.9 23,12.9 19.8,15.9 20.5,16.6 24.9,12.5 "})]})]})},CloseXIcon:function(){return(0,s.jsx)("svg",{className:"closex",viewBox:"0 0 15 15",focusable:"false",children:(0,s.jsx)("g",{strokeWidth:"1",transform:"translate(-968.000000, -236.000000)",children:(0,s.jsx)("path",{d:"M982.725141,249.399456 L976.82556,243.499875 L982.725141,237.600294 C983.091286,237.234148 983.091286,236.640905 982.725141,236.274609 C982.359295,235.908464 981.765752,235.908464 981.399456,236.274609 L975.499875,242.17419 L969.600294,236.274609 C969.234448,235.908464 968.640905,235.908464 968.274609,236.274609 C967.908464,236.640155 967.908464,237.233998 968.274609,237.600294 L974.17419,243.499875 L968.274609,249.399456 C967.908464,249.765602 967.908464,250.358845 968.274609,250.725141 C968.640755,251.091286 969.233998,251.091286 969.600294,250.725141 L975.499875,244.82556 L981.399456,250.725141 C981.765602,251.091286 982.359295,251.091286 982.725141,250.725141 C983.091286,250.358995 983.091286,249.765752 982.725141,249.399456 Z"})})})},CloseXIcon2:ZC,BellOutline:function(){return(0,s.jsx)("svg",{className:"bell-outline",viewBox:"0 0 448 512",children:(0,s.jsx)("path",{d:"M433.884 366.059C411.634 343.809 384 316.118 384 208c0-79.394-57.831-145.269-133.663-157.83A31.845 31.845 0 0 0 256 32c0-17.673-14.327-32-32-32s-32 14.327-32 32c0 6.75 2.095 13.008 5.663 18.17C121.831 62.731 64 128.606 64 208c0 108.118-27.643 135.809-49.893 158.059C-16.042 396.208 5.325 448 48.048 448H160c0 35.29 28.71 64 64 64s64-28.71 64-64h111.943c42.638 0 64.151-51.731 33.941-81.941zM224 480c-17.645 0-32-14.355-32-32h64c0 17.645-14.355 32-32 32zm175.943-64H48.048c-14.223 0-21.331-17.296-11.314-27.314C71.585 353.836 96 314.825 96 208c0-70.741 57.249-128 128-128 70.74 0 128 57.249 128 128 0 106.419 24.206 145.635 59.257 180.686C421.314 398.744 414.11 416 399.943 416z"})})},EarlyClaims:function(){return(0,s.jsx)("svg",{className:"early-claims-icon",viewBox:"0 0 25 25",children:(0,s.jsx)("g",{id:"Claims-Icon-list",children:(0,s.jsxs)("g",{id:"Claims-Icon",transform:"translate(2.000000, 0.000000)",children:[(0,s.jsxs)("g",{id:"Lines",transform:"translate(3.000000, 8.000000)",children:[(0,s.jsx)("polygon",{points:"0 1 15 1 15 0 0 0"}),(0,s.jsx)("polygon",{points:"0 4 15 4 15 3 0 3"}),(0,s.jsx)("polygon",{points:"0 7 15 7 15 6 0 6"}),(0,s.jsx)("polygon",{points:"0 10 15 10 15 9 0 9"}),(0,s.jsx)("polygon",{points:"0 13 15 13 15 12 0 12"})]}),(0,s.jsx)("path",{d:"M1,24 L1,1 L16,1 L16,5.5 C16,5.776 16.224,6 16.5,6 L20,6 L20,24 L1,24 Z M17,1.851 L19.446,5 L17,5 L17,1.851 Z M20.895,5.235 L16.979,0.193 C16.884,0.071 16.738,0 16.583,0 L0.5,0 C0.224,0 0,0.224 0,0.5 L0,24.5 C0,24.776 0.224,25 0.5,25 L20.5,25 C20.776,25 21,24.776 21,24.5 L21,5.542 C21,5.43 20.963,5.322 20.895,5.235 Z"})]})})})},CliniciansList:function(){return(0,s.jsx)("svg",{className:"clinicians-list-icon",viewBox:"0 0 25 25",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{className:"st0",d:"M21.8,0.4H3.2c-1.2,0-2.1,1-2.1,2.1v20c0,1.2,1,2.1,2.1,2.1h18.6c1.2,0,2.1-1,2.1-2.1v-20 C23.9,1.3,23,0.4,21.8,0.4z M22.9,22.5c0,0.6-0.5,1.1-1.1,1.1H3.2c-0.6,0-1.1-0.5-1.1-1.1v-20c0-0.6,0.5-1.1,1.1-1.1h18.6 c0.6,0,1.1,0.5,1.1,1.1V22.5z"}),(0,s.jsx)("rect",{x:"6.2",y:"17.3",className:"st0",width:"1.6",height:"1"}),(0,s.jsx)("rect",{x:"6.2",y:"12.4",className:"st0",width:"1.6",height:"1"}),(0,s.jsx)("rect",{x:"6.2",y:"7.4",className:"st0",width:"1.6",height:"1"}),(0,s.jsx)("rect",{x:"9.3",y:"17.3",className:"st0",width:"6.1",height:"1"}),(0,s.jsx)("rect",{x:"9.3",y:"12.4",className:"st0",width:"9.3",height:"1"}),(0,s.jsx)("rect",{x:"9.3",y:"7.4",className:"st0",width:"6.5",height:"1"})]})})},YoutubeIcon:function(){return(0,s.jsx)("svg",{className:"youtube-icon",width:"19px",height:"14px",viewBox:"0 0 19 14",children:(0,s.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,s.jsx)("g",{transform:"translate(-801.000000, -179.000000)",fill:"#242424",fillRule:"nonzero",children:(0,s.jsx)("g",{transform:"translate(763.000000, 140.000000)",children:(0,s.jsx)("g",{transform:"translate(38.000000, 39.000000)",children:(0,s.jsx)("path",{d:"M17.7486957,2.84298208 C17.551087,2.10010036 16.9670652,1.51515412 16.2265217,1.3162724 C14.8843478,0.955555556 9.5,0.955555556 9.5,0.955555556 C9.5,0.955555556 4.11565217,0.955555556 2.77347826,1.3162724 C2.03293478,1.51515412 1.44891304,2.10010036 1.25130435,2.84298208 C0.891304348,4.19030824 0.891304348,7 0.891304348,7 C0.891304348,7 0.891304348,9.80969176 1.25130435,11.1570179 C1.44891304,11.8998996 2.03293478,12.4848459 2.77347826,12.6837276 C4.11565217,13.0444444 9.5,13.0444444 9.5,13.0444444 C9.5,13.0444444 14.8843478,13.0444444 16.2265217,12.6837276 C16.9670652,12.4848459 17.551087,11.8998996 17.7486957,11.1570179 C18.1086957,9.80969176 18.1086957,7 18.1086957,7 C18.1086957,7 18.1086957,4.19030824 17.7486957,2.84298208 Z M7.73913043,9.5513405 L7.73913043,4.4486595 L12.2391304,7 L7.73913043,9.5513405 Z",id:"Youtube-icon"})})})})})})},TwitterIcon:function(){return(0,s.jsx)("svg",{className:"twitter-icon",width:"19px",height:"16px",viewBox:"0 0 19 16",children:(0,s.jsx)("g",{stroke:"none","stroke-Width":"1",fill:"none",fillRule:"evenodd",children:(0,s.jsx)("g",{transform:"translate(-763.000000, -177.000000)",fill:"#242424",fillRule:"nonzero",children:(0,s.jsx)("g",{transform:"translate(763.000000, 140.000000)",children:(0,s.jsx)("g",{transform:"translate(0.000000, 37.000000)",children:(0,s.jsx)("path",{d:"M16.9243259,4.73901817 C16.9243259,4.57725788 16.9243259,4.41549759 16.916868,4.25373729 C17.6626567,3.71698723 18.3114928,3.05524058 18.826087,2.30526104 C18.1250456,2.6067234 17.3867149,2.81260014 16.6260105,2.90083303 C17.4240043,2.43025763 18.0206352,1.68763083 18.3040349,0.812654705 C17.5507884,1.25381914 16.7304209,1.56263424 15.8727639,1.72439454 C14.425934,0.202377237 12.0021209,0.128849832 10.4583384,1.56263424 C9.46643951,2.48172682 9.04133999,3.8566893 9.35457121,5.16547712 C6.28192201,5.01106957 3.41063575,3.5846379 1.47158528,1.22440818 C0.457312727,2.94494947 0.971906889,5.15077164 2.65738922,6.26103547 C2.04584253,6.24632999 1.45666951,6.0845697 0.919701685,5.79046007 C0.919701685,5.80516555 0.919701685,5.81987104 0.919701685,5.83457652 C0.919701685,7.62864522 2.20245815,9.17272074 3.99235089,9.53300502 C3.42555152,9.68741258 2.83637849,9.7094708 2.26212124,9.59917969 C2.76179963,11.1359025 4.20117171,12.1873444 5.83444883,12.2167553 C4.4771135,13.2681972 2.80654695,13.8343583 1.08377519,13.8343583 C0.778001843,13.8343583 0.4722285,13.8123 0.173913043,13.7828891 C1.93397424,14.8784474 3.96251934,15.4666667 6.04326965,15.4666667 C13.0760565,15.4666667 16.9243259,9.71682354 16.9243259,4.73901817 Z",id:"twitter-icon"})})})})})})},WiViewReportsIcon:function(){return(0,s.jsxs)("svg",{className:"wi-view-reports",viewBox:"0 0 25 25",children:[(0,s.jsx)("title",{children:"WI View Reports"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M20.8680556,0.0569444444 L3.37638889,0.0569444444 C3.11944444,0.0569444444 2.9125,0.265277778 2.9125,0.520833333 L2.9125,2.07777778 L1.35555556,2.07777778 C1.09861111,2.07777778 0.891666667,2.28472222 0.891666667,2.54027778 L0.891666667,24.4763889 C0.891666667,24.7333333 1.09861111,24.9402778 1.35555556,24.9402778 L18.8472222,24.9402778 C19.1027778,24.9402778 19.3097222,24.7319444 19.3097222,24.4763889 L19.3097222,22.9208333 L20.8680556,22.9208333 C21.1236111,22.9208333 21.3305556,22.7125 21.3305556,22.4583333 L21.3305556,0.522222222 C21.3305556,0.265277778 21.1236111,0.0569444444 20.8680556,0.0569444444 Z M1.82222222,24.0111111 L1.82222222,3.00833333 L18.3861111,3.00833333 L18.3861111,24.0125 L1.82222222,24.0125 L1.82222222,24.0111111 Z M18.8472222,2.07777778 L3.84305556,2.07777778 L3.84305556,0.986111111 L20.4027778,0.986111111 L20.4027778,21.9930556 L19.3097222,21.9930556 L19.3097222,2.54166667 C19.3097222,2.28611111 19.1027778,2.07777778 18.8472222,2.07777778 Z"}),(0,s.jsx)("path",{d:"M14.8069444,7.05138889 L5.4,7.05138889 C5.14305556,7.05138889 4.93611111,7.25972222 4.93611111,7.51666667 C4.93611111,7.77222222 5.14305556,7.97916667 5.4,7.97916667 L14.8069444,7.97916667 C15.0638889,7.97916667 15.2708333,7.77083333 15.2708333,7.51666667 C15.2708333,7.25972222 15.0638889,7.05138889 14.8069444,7.05138889 Z"}),(0,s.jsx)("path",{d:"M14.8069444,11.0472222 L5.4,11.0472222 C5.14305556,11.0472222 4.93611111,11.2569444 4.93611111,11.5138889 C4.93611111,11.7694444 5.14305556,11.9763889 5.4,11.9763889 L14.8069444,11.9763889 C15.0638889,11.9763889 15.2708333,11.7680556 15.2708333,11.5138889 C15.2708333,11.2569444 15.0638889,11.0472222 14.8069444,11.0472222 Z"}),(0,s.jsx)("path",{d:"M14.8069444,15.0416667 L5.4,15.0416667 C5.14305556,15.0416667 4.93611111,15.25 4.93611111,15.5069444 C4.93611111,15.7638889 5.14305556,15.9722222 5.4,15.9722222 L14.8069444,15.9722222 C15.0638889,15.9722222 15.2708333,15.7638889 15.2708333,15.5069444 C15.2708333,15.25 15.0638889,15.0416667 14.8069444,15.0416667 Z"}),(0,s.jsx)("path",{d:"M14.8069444,18.5819444 L5.4,18.5819444 C5.14305556,18.5819444 4.93611111,18.7902778 4.93611111,19.0472222 C4.93611111,19.3041667 5.14305556,19.5125 5.4,19.5125 L14.8069444,19.5125 C15.0638889,19.5125 15.2708333,19.3041667 15.2708333,19.0472222 C15.2708333,18.7902778 15.0638889,18.5819444 14.8069444,18.5819444 Z"})]})]})},WiViewProgressIcon:function(){return(0,s.jsxs)("svg",{className:"wi-view-progress",viewBox:"0 0 25 25",children:[(0,s.jsx)("title",{children:"WI View Progress"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M22.2,25.5H2.8c-1.8,0-3.3-1.5-3.3-3.3V2.8C-0.5,1,1-0.5,2.8-0.5h19.4c1.8,0,3.3,1.5,3.3,3.3v19.4C25.5,24,24,25.5,22.2,25.5z M2.8,0.5c-1.3,0-2.3,1-2.3,2.3v19.4c0,1.3,1,2.3,2.3,2.3h19.4c1.3,0,2.3-1,2.3-2.3V2.8c0-1.3-1-2.3-2.3-2.3H2.8z"}),(0,s.jsx)("path",{d:"M7.8,18.8c0.5,0,0.9-0.4,0.9-0.9v-4.6c0-0.5-0.4-0.9-0.9-0.9s-0.9,0.4-0.9,0.9v4.6C6.9,18.3,7.3,18.8,7.8,18.8z"}),(0,s.jsx)("path",{d:"M17.4,18.8c0.5,0,0.9-0.4,0.9-0.9V7.4c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9v10.5C16.5,18.3,16.9,18.8,17.4,18.8z"}),(0,s.jsx)("path",{d:"M12.6,18.8c0.5,0,0.9-0.4,0.9-0.9v-7.5c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9v7.5C11.7,18.3,12.1,18.8,12.6,18.8z"})]})]})},WiManageGroupIcon:function(){return(0,s.jsxs)("svg",{className:"wi-manage-group",viewBox:"0 0 25 25",children:[(0,s.jsx)("title",{children:"WI Manage Group"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M12.7775,0.110555556 C12.6219444,-0.0366666667 12.3783333,-0.0366666667 12.2227778,0.110555556 L0.125833333,11.5741667 C0.0455555556,11.6502778 0,11.7561111 0,11.8669444 L0,24.5969444 C0,24.7030556 0.0430555556,24.8069444 0.118055556,24.8819444 C0.193055556,24.9569444 0.296944444,25 0.403333333,25 L24.5969444,25 C24.7030556,25 24.8069444,24.9569444 24.8819444,24.8819444 C24.9569444,24.8066667 25,24.7027778 25,24.5966667 L25,11.8669444 C25,11.7561111 24.9544444,11.6505556 24.8741667,11.5741667 L12.7775,0.110555556 Z M0.806388889,12.0402778 L12.5,0.958611111 L24.1936111,12.0402778 L24.1936111,24.1936111 L0.806388889,24.1936111 L0.806388889,12.0402778 Z"}),(0,s.jsx)("path",{d:"M18.1452778,12.2311111 L14.785,12.2311111 L14.785,8.87083333 C14.785,8.76472222 14.7419444,8.66083333 14.6669444,8.58583333 C14.5919444,8.51083333 14.4880556,8.46777778 14.3819444,8.46777778 L10.6183333,8.46777778 C10.5122222,8.46777778 10.4083333,8.51083333 10.3333333,8.58583333 C10.2583333,8.66083333 10.2152778,8.76472222 10.2152778,8.87083333 L10.2152778,12.2311111 L6.855,12.2311111 C6.74888889,12.2311111 6.645,12.2741667 6.57,12.3491667 C6.495,12.4241667 6.45194444,12.5280556 6.45194444,12.6341667 L6.45194444,16.3975 C6.45194444,16.5036111 6.495,16.6075 6.57,16.6825 C6.645,16.7575 6.74888889,16.8005556 6.855,16.8005556 L10.2152778,16.8005556 L10.2152778,20.1608333 C10.2152778,20.2669444 10.2583333,20.3708333 10.3333333,20.4458333 C10.4083333,20.5208333 10.5122222,20.5638889 10.6183333,20.5638889 L14.3816667,20.5638889 C14.4877778,20.5638889 14.5916667,20.5208333 14.6666667,20.4458333 C14.7416667,20.3708333 14.7847222,20.2669444 14.7847222,20.1608333 L14.7847222,16.8011111 L18.145,16.8011111 C18.2511111,16.8011111 18.355,16.7580556 18.43,16.6830556 C18.505,16.6080556 18.5480556,16.5041667 18.5480556,16.3980556 L18.5480556,12.6344444 C18.5480556,12.5283333 18.505,12.4244444 18.43,12.3494444 C18.3552778,12.2741667 18.2513889,12.2311111 18.1452778,12.2311111 Z M17.7419444,15.9947222 L14.3816667,15.9947222 C14.2755556,15.9947222 14.1716667,16.0377778 14.0966667,16.1127778 C14.0216667,16.1877778 13.9786111,16.2916667 13.9786111,16.3977778 L13.9786111,19.7580556 L11.0213889,19.7580556 L11.0213889,16.3977778 C11.0213889,16.2916667 10.9783333,16.1877778 10.9033333,16.1127778 C10.8283333,16.0377778 10.7244444,15.9947222 10.6183333,15.9947222 L7.25805556,15.9947222 L7.25805556,13.0375 L10.6183333,13.0375 C10.7244444,13.0375 10.8283333,12.9944444 10.9033333,12.9194444 C10.9783333,12.8444444 11.0213889,12.7405556 11.0213889,12.6344444 L11.0213889,9.27416667 L13.9783333,9.27416667 L13.9783333,12.6344444 C13.9783333,12.7405556 14.0213889,12.8444444 14.0963889,12.9194444 C14.1713889,12.9944444 14.2752778,13.0375 14.3813889,13.0375 L17.7416667,13.0375 L17.7416667,15.9947222 L17.7419444,15.9947222 Z"})]})]})}};export{m as Accordion,Ud as AutoComplete,rp as Button,eS as DSLink,yv as DateField,Yw as DateTimeField,vS as FormControlLabel,VF as Icons,Od as InputLabel,uS as Instant,gC as MadieAlert,UC as MadieConfirmDialog,WC as MadieDeleteDialog,$C as MadieDialog,FC as MadieDiscardDialog,GC as MadieSpinner,pp as MadieTooltip,cp as MadieTooltipIcon,pk as Modal,$F as NumberInput,Fk as Pagination,CC as Popover,uM as RadioButton,Ld as ReadOnlyTextField,M$ as RichTextEditor,jF as Search,A$ as Select,eF as Tab,R$ as TabPanel,U$ as Tabs,DF as TextArea,np as TextButton,bp as TextField,CF as TimeField,oC as Toast,_F as TruncateText,BF as theme};
|
|
103
|
+
//# sourceMappingURL=index.mjs.map
|