"use strict"; (self["webpackChunkelementorFrontend"] = self["webpackChunkelementorFrontend"] || []).push([["floating-bars"],{ /***/ "../modules/floating-buttons/assets/js/floating-bars/frontend/classes/floatin-bar-dom.js": /*!***********************************************************************************************!*\ !*** ../modules/floating-buttons/assets/js/floating-bars/frontend/classes/floatin-bar-dom.js ***! \***********************************************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; class FloatingBarDomHelper { constructor($element) { this.$element = $element; } maybeMoveToTop() { const el = this.$element[0]; const widget = el.querySelector('.e-floating-bars'); if (elementorFrontend.isEditMode()) { widget.classList.add('is-sticky'); return; } if (el.dataset.widget_type.startsWith('floating-bars') && widget.classList.contains('has-vertical-position-top') && !widget.classList.contains('is-sticky')) { const wpAdminBar = document.getElementById('wpadminbar'); const elementToInsert = el.closest('.elementor'); if (wpAdminBar) { wpAdminBar.after(elementToInsert); } else { document.body.prepend(elementToInsert); } } } } exports["default"] = FloatingBarDomHelper; /***/ }), /***/ "../modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars.js": /*!**********************************************************************************************!*\ !*** ../modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars.js ***! \**********************************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; __webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); __webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); var _base = _interopRequireDefault(__webpack_require__(/*! elementor-frontend/handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); var _floatinBarDom = _interopRequireDefault(__webpack_require__(/*! ../classes/floatin-bar-dom */ "../modules/floating-buttons/assets/js/floating-bars/frontend/classes/floatin-bar-dom.js")); var _clickTracking = _interopRequireDefault(__webpack_require__(/*! ../../../shared/frontend/handlers/click-tracking */ "../modules/floating-buttons/assets/js/shared/frontend/handlers/click-tracking.js")); class FloatingBarsHandler extends _base.default { getDefaultSettings() { return { selectors: { main: '.e-floating-bars', closeButton: '.e-floating-bars__close-button', ctaButton: '.e-floating-bars__cta-button' }, constants: { ctaEntranceAnimation: 'style_cta_button_animation', ctaEntranceAnimationDelay: 'style_cta_button_animation_delay', hasEntranceAnimation: 'has-entrance-animation', visible: 'visible', isSticky: 'is-sticky', hasVerticalPositionTop: 'has-vertical-position-top', hasVerticalPositionBottom: 'has-vertical-position-bottom', isHidden: 'is-hidden', animated: 'animated' } }; } getDefaultElements() { const selectors = this.getSettings('selectors'); return { main: this.$element[0].querySelector(selectors.main), mainAll: this.$element[0].querySelectorAll(selectors.main), closeButton: this.$element[0].querySelector(selectors.closeButton), ctaButton: this.$element[0].querySelector(selectors.ctaButton) }; } onElementChange(property) { const changedProperties = ['advanced_vertical_position']; if (changedProperties.includes(property)) { this.initDefaultState(); } } getResponsiveSetting(controlName) { const currentDevice = elementorFrontend.getCurrentDeviceMode(); return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), controlName, '', currentDevice); } bindEvents() { if (this.elements.closeButton) { this.elements.closeButton.addEventListener('click', this.closeFloatingBar.bind(this)); } if (this.elements.ctaButton) { this.elements.ctaButton.addEventListener('animationend', this.handleAnimationEnd.bind(this)); } if (this.elements.main) { window.addEventListener('keyup', this.onDocumentKeyup.bind(this)); } if (this.hasStickyElements()) { window.addEventListener('resize', this.handleStickyElements.bind(this)); } } isStickyTop() { const { isSticky, hasVerticalPositionTop } = this.getSettings('constants'); return this.elements.main.classList.contains(isSticky) && this.elements.main.classList.contains(hasVerticalPositionTop); } isStickyBottom() { const { isSticky, hasVerticalPositionBottom } = this.getSettings('constants'); return this.elements.main.classList.contains(isSticky) && this.elements.main.classList.contains(hasVerticalPositionBottom); } hasStickyElements() { const stickyElements = document.querySelectorAll('.elementor-sticky'); return stickyElements.length > 0; } focusOnLoad() { this.elements.main.setAttribute('tabindex', '0'); this.elements.main.focus({ focusVisible: true }); } applyBodyPadding() { const mainHeight = this.elements.main.offsetHeight; document.body.style.paddingTop = `${mainHeight}px`; } removeBodyPadding() { document.body.style.paddingTop = '0'; } handleWPAdminBar() { const wpAdminBar = elementorFrontend.elements.$wpAdminBar; if (wpAdminBar.length) { this.elements.main.style.top = `${wpAdminBar.height()}px`; } } handleStickyElements() { const mainHeight = this.elements.main.offsetHeight; const wpAdminBar = elementorFrontend.elements.$wpAdminBar; const stickyElements = document.querySelectorAll('.elementor-sticky:not(.elementor-sticky__spacer)'); if (0 === stickyElements.length) { return; } stickyElements.forEach(stickyElement => { const dataSettings = stickyElement.getAttribute('data-settings'); const stickyPosition = JSON.parse(dataSettings)?.sticky; const isTop = '0px' === stickyElement.style.top || 'top' === stickyPosition; const isBottom = '0px' === stickyElement.style.bottom || 'bottom' === stickyPosition; if (this.isStickyTop() && isTop) { if (wpAdminBar.length) { stickyElement.style.top = `${mainHeight + wpAdminBar.height()}px`; } else { stickyElement.style.top = `${mainHeight}px`; } } else if (this.isStickyBottom() && isBottom) { stickyElement.style.bottom = `${mainHeight}px`; } if (elementorFrontend.isEditMode()) { if (isTop) { stickyElement.style.top = this.isStickyTop() ? `${mainHeight}px` : '0px'; } else if (isBottom) { stickyElement.style.bottom = this.isStickyBottom() ? `${mainHeight}px` : '0px'; } } }); document.querySelectorAll('.elementor-sticky__spacer').forEach(stickySpacer => { const dataSettings = stickySpacer.getAttribute('data-settings'); const stickyPosition = JSON.parse(dataSettings)?.sticky; const isTop = '0px' === stickySpacer.style.top || 'top' === stickyPosition; if (this.isStickyTop() && isTop) { stickySpacer.style.marginBottom = `${mainHeight}px`; } }); } closeFloatingBar() { const { isHidden } = this.getSettings('constants'); if (!elementorFrontend.isEditMode()) { this.elements.main.classList.add(isHidden); if (this.hasStickyElements()) { this.handleStickyElements(); } else if (this.isStickyTop()) { this.removeBodyPadding(); } } } initEntranceAnimation() { const { animated, ctaEntranceAnimation, ctaEntranceAnimationDelay, hasEntranceAnimation } = this.getSettings('constants'); const entranceAnimationClass = this.getResponsiveSetting(ctaEntranceAnimation); const entranceAnimationDelay = this.getResponsiveSetting(ctaEntranceAnimationDelay) || 0; const setTimeoutDelay = entranceAnimationDelay + 500; this.elements.ctaButton.classList.add(animated); this.elements.ctaButton.classList.add(entranceAnimationClass); setTimeout(() => { this.elements.ctaButton.classList.remove(hasEntranceAnimation); }, setTimeoutDelay); } handleAnimationEnd() { this.removeEntranceAnimationClasses(); this.focusOnLoad(); } removeEntranceAnimationClasses() { if (!this.elements.ctaButton) { return; } const { animated, ctaEntranceAnimation, visible } = this.getSettings('constants'); const entranceAnimationClass = this.getResponsiveSetting(ctaEntranceAnimation); this.elements.ctaButton.classList.remove(animated); this.elements.ctaButton.classList.remove(entranceAnimationClass); this.elements.ctaButton.classList.add(visible); } onDocumentKeyup(event) { // Bail if not ESC key if (event.keyCode !== 27 || !this.elements.main) { return; } /* eslint-disable @wordpress/no-global-active-element */ if (this.elements.main.contains(document.activeElement)) { this.closeFloatingBar(); } /* eslint-enable @wordpress/no-global-active-element */ } initDefaultState() { const { hasEntranceAnimation } = this.getSettings('constants'); if (this.isStickyTop()) { this.handleWPAdminBar(); } if (this.hasStickyElements()) { this.handleStickyElements(); } else if (this.isStickyTop()) { this.applyBodyPadding(); } if (this.elements.main && !this.elements.ctaButton.classList.contains(hasEntranceAnimation) && !elementorFrontend.isEditMode()) { this.focusOnLoad(); } } setupInnerContainer() { this.elements.main.closest('.e-con-inner').classList.add('e-con-inner--floating-bars'); this.elements.main.closest('.e-con').classList.add('e-con--floating-bars'); } onInit(...args) { const { hasEntranceAnimation } = this.getSettings('constants'); super.onInit(...args); this.clickTrackingHandler = new _clickTracking.default({ $element: this.$element }); const domHelper = new _floatinBarDom.default(this.$element); domHelper.maybeMoveToTop(); if (this.elements.ctaButton && this.elements.ctaButton.classList.contains(hasEntranceAnimation)) { this.initEntranceAnimation(); } this.initDefaultState(); this.setupInnerContainer(); } } exports["default"] = FloatingBarsHandler; /***/ }), /***/ "../modules/floating-buttons/assets/js/shared/frontend/handlers/click-tracking.js": /*!****************************************************************************************!*\ !*** ../modules/floating-buttons/assets/js/shared/frontend/handlers/click-tracking.js ***! \****************************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; __webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); __webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); __webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); var _base = _interopRequireDefault(__webpack_require__(/*! elementor-frontend/handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); class ClickTrackingHandler extends _base.default { clicks = []; getDefaultSettings() { return { selectors: { contentWrapper: '.e-contact-buttons__content-wrapper', contactButtonCore: '.e-contact-buttons__send-button', contentWrapperFloatingBars: '.e-floating-bars', floatingBarCTAButton: '.e-floating-bars__cta-button', elementorWrapper: '[data-elementor-type="floating-buttons"]' } }; } getDefaultElements() { const selectors = this.getSettings('selectors'); return { contentWrapper: this.$element[0].querySelector(selectors.contentWrapper), contentWrapperFloatingBars: this.$element[0].querySelector(selectors.contentWrapperFloatingBars) }; } bindEvents() { if (this.elements.contentWrapper) { this.elements.contentWrapper.addEventListener('click', this.onChatButtonTrackClick.bind(this)); } if (this.elements.contentWrapperFloatingBars) { this.elements.contentWrapperFloatingBars.addEventListener('click', this.onChatButtonTrackClick.bind(this)); } window.addEventListener('beforeunload', () => { if (this.clicks.length > 0) { this.sendClicks(); } }); } onChatButtonTrackClick(event) { const targetElement = event.target || event.srcElement; const selectors = this.getSettings('selectors'); if (targetElement.matches(selectors.contactButtonCore) || targetElement.closest(selectors.contactButtonCore) || targetElement.matches(selectors.floatingBarCTAButton) || targetElement.closest(selectors.floatingBarCTAButton)) { this.getDocumentIdAndTrack(targetElement, selectors); } } getDocumentIdAndTrack(targetElement, selectors) { const documentId = targetElement.closest(selectors.elementorWrapper).dataset.elementorId; this.trackClick(documentId); } trackClick(documentId) { if (!documentId) { return; } this.clicks.push(documentId); if (this.clicks.length >= 10) { this.sendClicks(); } } sendClicks() { const formData = new FormData(); formData.append('action', 'elementor_send_clicks'); formData.append('_nonce', elementorFrontendConfig?.nonces?.floatingButtonsClickTracking); this.clicks.forEach(documentId => formData.append('clicks[]', documentId)); fetch(elementorFrontendConfig?.urls?.ajaxurl, { method: 'POST', body: formData }).then(() => { this.clicks = []; }); } } exports["default"] = ClickTrackingHandler; /***/ }) }]); //# sourceMappingURL=floating-bars.a6e6a043444b62f64f82.bundle.js.map"use strict";(globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[]).push([[4654],{75618(e,t,r){r.d(t,{A6:()=>t$,js:()=>DZ});var n=r(10790),o=r(51609),i=r.n(o),s=r(75795),a=r.n(s);function l(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}var _,S={},k={exports:{}};function C(){return _||(_=1,(e=k).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),k.exports;var e}var O,E,R={exports:{}},M={exports:{}};function I(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var A=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,T=I(function(e){return A.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),P=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?G(ne,--te):0,Q--,10===re&&(Q=1,J--),re}function ae(){return re=te2||pe(re)>3?"":" "}function ge(e,t){for(;--t&&ae()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return ue(e,ce()+(t<6&&32==le()&&32==ae()))}function ve(e){for(;ae();)switch(re){case e:return te;case 34:case 39:34!==e&&39!==e&&ve(re);break;case 40:41===e&&ve(e);break;case 92:ae()}return te}function ye(e,t){for(;ae()&&e+re!==57&&(e+re!==84||47!==le()););return"/*"+ue(t,te-1)+"*"+U(47===e?e:ae())}function be(e){for(;!pe(le());)ae();return ue(e,te)}function we(e){return he(xe("",null,null,null,[""],e=de(e),0,[0],e))}function xe(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,p=s,d=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,_=n,S=b;g;)switch(f=y,y=ae()){case 40:if(108!=f&&58==G(S,p-1)){-1!=H(S+=q(fe(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=fe(y);break;case 9:case 10:case 13:case 32:S+=me(f);break;case 92:S+=ge(ce()-1,7);continue;case 47:switch(le()){case 42:case 47:Y(Se(ye(ae(),ce()),t,r),l);break;default:S+="/"}break;case 123*m:a[c++]=Z(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=q(S,/\f/g,"")),h>0&&Z(S)-p&&Y(h>32?ke(S+";",n,r,p-1):ke(q(S," ","")+";",n,r,p-2),l);break;case 59:S+=";";default:if(Y(_=_e(S,t,r,c,u,o,a,b,w=[],x=[],p),i),123===y)if(0===u)xe(S,t,_,_,w,i,p,a,x);else switch(99===d&&110===G(S,3)?100:d){case 100:case 108:case 109:case 115:xe(e,_,_,n&&Y(_e(e,_,_,0,0,o,a,b,o,w=[],p),x),o,x,p,a,n?w:x);break;default:xe(S,_,_,_,[""],x,0,a,x)}}c=u=h=0,m=v=1,b=S="",p=s;break;case 58:p=1+Z(S),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==se())continue;switch(S+=U(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(Z(S)-1)*v,v=1;break;case 64:45===le()&&(S+=fe(ae())),d=le(),u=p=Z(b=S+=be(ce())),y++;break;case 45:45===f&&2==Z(S)&&(m=0)}}return i}function _e(e,t,r,n,o,i,s,a,l,c,u){for(var p=o-1,d=0===o?i:[""],h=X(d),f=0,m=0,g=0;f0?d[v]+" "+y:q(y,/&\f/g,d[v])))&&(l[g++]=b);return oe(e,t,r,0===o?D:a,l,c,u)}function Se(e,t,r){return oe(e,t,r,F,U(re),K(e,2,-2),0)}function ke(e,t,r,n){return oe(e,t,r,$,K(e,0,n),K(e,n+1,-1),n)}function Ce(e,t){for(var r="",n=X(e),o=0;o6)switch(G(e,t+1)){case 109:if(45!==G(e,t+4))break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+j+(108==G(e,t+3)?"$3":"$2-$3"))+e;case 115:return~H(e,"stretch")?Ae(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==G(e,t+1))break;case 6444:switch(G(e,Z(e)-3-(~H(e,"!important")&&10))){case 107:return q(e,":",":"+N)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(45===G(e,14)?"inline-":"")+"box$3$1"+N+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(G(e,t+11)){case 114:return N+e+L+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+L+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+L+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+L+e+e}return e}var Te=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=Ae(e.value,e.length);break;case B:return Ce([ie(e,{value:q(e.value,"@","@"+N)})],n);case D:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ce([ie(e,{props:[q(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ce([ie(e,{props:[q(t,/:(plac\w+)/,":"+N+"input-$1")]}),ie(e,{props:[q(t,/:(plac\w+)/,":-moz-$1")]}),ie(e,{props:[q(t,/:(plac\w+)/,L+"input-$1")]})],n)}return""})}}],Pe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,i=e.stylisPlugins||Te,s={},a=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:We}}var Ge=!!o.useInsertionEffect&&o.useInsertionEffect,Ke=Ge||function(e){return e()},Ze=Ge||o.useLayoutEffect,Xe=o.createContext("undefined"!=typeof HTMLElement?Pe({key:"css"}):null),Ye=Xe.Provider,Je=function(e){return(0,o.forwardRef)(function(t,r){var n=(0,o.useContext)(Xe);return e(t,n,r)})},Qe=o.createContext({}),et=Je(function(e,t){var r=He([e.styles],void 0,o.useContext(Qe)),n=o.useRef();return Ze(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+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==s&&(i=!0,s.setAttribute("data-emotion",e),o.hydrate([s])),n.current=[o,i],function(){o.flush()}},[t]),Ze(function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&je(t,r.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",r,o,!1)}},[t,r.name]),null});function tt(){for(var e=arguments.length,t=new Array(e),r=0;r96?nt:ot},st=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},at=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Le(t,r,n),Ke(function(){return je(t,r,n)}),null},lt=function e(t,r){var n,i,s=t.__emotion_real===t,a=s&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var l=st(t,r,s),u=l||it(a),p=!u("as");return function(){var d=arguments,h=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&h.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{h.push(d[0][0]);for(var f=d.length,m=1;m0?_t(Tt,--It):0,Rt--,10===At&&(Rt=1,Et--),At}function Nt(){return At=It2||Bt(At)>3?"":" "}function qt(e,t){for(;--t&&Nt()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return $t(e,Dt()+(t<6&&32==Ft()&&32==Nt()))}function Ht(e){for(;Nt();)switch(At){case e:return It;case 34:case 39:34!==e&&39!==e&&Ht(At);break;case 40:41===e&&Ht(e);break;case 92:Nt()}return It}function Gt(e,t){for(;Nt()&&e+At!==57&&(e+At!==84||47!==Ft()););return"/*"+$t(t,It-1)+"*"+vt(47===e?e:Nt())}function Kt(e){for(;!Bt(Ft());)Nt();return $t(e,It)}function Zt(e){return Ut(Xt("",null,null,null,[""],e=zt(e),0,[0],e))}function Xt(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,p=s,d=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,_=n,S=b;g;)switch(f=y,y=Nt()){case 40:if(108!=f&&58==_t(S,p-1)){-1!=xt(S+=wt(Vt(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Vt(y);break;case 9:case 10:case 13:case 32:S+=Wt(f);break;case 92:S+=qt(Dt()-1,7);continue;case 47:switch(Ft()){case 42:case 47:Ot(Jt(Gt(Nt(),Dt()),t,r),l);break;default:S+="/"}break;case 123*m:a[c++]=kt(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=wt(S,/\f/g,"")),h>0&&kt(S)-p&&Ot(h>32?Qt(S+";",n,r,p-1):Qt(wt(S," ","")+";",n,r,p-2),l);break;case 59:S+=";";default:if(Ot(_=Yt(S,t,r,c,u,o,a,b,w=[],x=[],p),i),123===y)if(0===u)Xt(S,t,_,_,w,i,p,a,x);else switch(99===d&&110===_t(S,3)?100:d){case 100:case 108:case 109:case 115:Xt(e,_,_,n&&Ot(Yt(e,_,_,0,0,o,a,b,o,w=[],p),x),o,x,p,a,n?w:x);break;default:Xt(S,_,_,_,[""],x,0,a,x)}}c=u=h=0,m=v=1,b=S="",p=s;break;case 58:p=1+kt(S),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==jt())continue;switch(S+=vt(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(kt(S)-1)*v,v=1;break;case 64:45===Ft()&&(S+=Vt(Nt())),d=Ft(),u=p=kt(b=S+=Kt(Dt())),y++;break;case 45:45===f&&2==kt(S)&&(m=0)}}return i}function Yt(e,t,r,n,o,i,s,a,l,c,u){for(var p=o-1,d=0===o?i:[""],h=Ct(d),f=0,m=0,g=0;f0?d[v]+" "+y:wt(y,/&\f/g,d[v])))&&(l[g++]=b);return Pt(e,t,r,0===o?ht:a,l,c,u)}function Jt(e,t,r){return Pt(e,t,r,dt,vt(At),St(e,2,-2),0)}function Qt(e,t,r,n){return Pt(e,t,r,ft,St(e,0,n),St(e,n+1,-1),n)}function er(e,t){for(var r="",n=Ct(e),o=0;o6)switch(_t(e,t+1)){case 109:if(45!==_t(e,t+4))break;case 102:return wt(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+ut+(108==_t(e,t+3)?"$3":"$2-$3"))+e;case 115:return~xt(e,"stretch")?sr(wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_t(e,t+1))break;case 6444:switch(_t(e,kt(e)-3-(~xt(e,"!important")&&10))){case 107:return wt(e,":",":"+pt)+e;case 101:return wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(45===_t(e,14)?"inline-":"")+"box$3$1"+pt+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return pt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+ct+e+e}return e}var ar=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ft:e.return=sr(e.value,e.length);break;case mt:return er([Lt(e,{value:wt(e.value,"@","@"+pt)})],n);case ht:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return er([Lt(e,{props:[wt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return er([Lt(e,{props:[wt(t,/:(plac\w+)/,":"+pt+"input-$1")]}),Lt(e,{props:[wt(t,/:(plac\w+)/,":-moz-$1")]}),Lt(e,{props:[wt(t,/:(plac\w+)/,ct+"input-$1")]})],n)}return""})}}];const lr=new Map;function cr(e){const{styles:t,defaultTheme:r={}}=e;return(0,n.jsx)(et,{styles:"function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t})}function ur(e,t){return lt(e,t)}const pr=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},dr=[],hr=p(Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:cr,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:i}=e,s=o.useMemo(()=>{const e=`${t}-${r}`;if("object"==typeof document&&lr.has(e))return lr.get(e);const n=function(e,t){const r=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,i=e.stylisPlugins||ar,s={},a=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}(t,r);return lr.set(e,n),n},[t,r]);return t||r?(0,n.jsx)(Ye,{value:s,children:i}):i},ThemeContext:Qe,css:tt,default:ur,internal_processStyles:pr,internal_serializeStyles:function(e){return dr[0]=e,He(dr)},keyframes:rt},Symbol.toStringTag,{value:"Module"})));function fr(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 mr(e){if(o.isValidElement(e)||!fr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=mr(e[r])}),t}function gr(e,t,r={clone:!0}){const n=r.clone?c({},e):e;return fr(e)&&fr(t)&&Object.keys(t).forEach(i=>{o.isValidElement(t[i])?n[i]=t[i]:fr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&fr(e[i])?n[i]=gr(e[i],t[i],r):r.clone?n[i]=fr(t[i])?mr(t[i]):t[i]:n[i]=t[i]}),n}const vr=p(Object.freeze(Object.defineProperty({__proto__:null,default:gr,isPlainObject:fr},Symbol.toStringTag,{value:"Module"})));function yr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;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)=>c({},e,{[t.key]:t.val}),{})})(t),s=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function u(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function p(e,o){const i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-n/100}${r})`}return c({keys:s,values:i,up:a,down:u,between:p,only:function(e){return s.indexOf(e)+1`@media (min-width:${jr[e]}px)`};function Fr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Nr;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||Nr;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||jr).indexOf(o))n[e.up(o)]=r(t[o],o);else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function Dr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}function $r(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function Br({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n{null!=e[t]&&(r[t]=!0)}),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let i;return o.reduce((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[i],i=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[i],i=r):t[r]=e,t),{})}function zr(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Ur(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:zr(e,r)||n,t&&(o=t(o,n,e)),o}function Vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],s=zr(e.theme,n)||{};return Fr(e,i,e=>{let n=Ur(s,o,e);return e===n&&"string"==typeof e&&(n=Ur(s,o,`${t}${"default"===e?"":wr(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const Wr={m:"margin",p:"padding"},qr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gr=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!Hr[e])return[e];e=Hr[e]}const[t,r]=e.split(""),n=Wr[t],o=qr[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]})(t)),e[t])}(),Kr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Xr(e,t,r,n){var o;const i=null!=(o=zr(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Yr(e){return Xr(e,"spacing",8)}function Jr(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Qr(e,t){const r=Yr(e.theme);return Object.keys(e).map(n=>function(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Jr(t,r),e),{})}(Gr(r),n);return Fr(e,e[r],o)}(e,t,n,r)).reduce(Lr,{})}function en(e){return Qr(e,Kr)}function tn(e){return Qr(e,Zr)}function rn(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?Lr(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function nn(e){return"number"!=typeof e?e:`${e}px solid`}function on(e,t){return Vr({prop:e,themeKey:"borders",transform:t})}en.propTypes={},en.filterProps=Kr,tn.propTypes={},tn.filterProps=Zr;const sn=on("border",nn),an=on("borderTop",nn),ln=on("borderRight",nn),cn=on("borderBottom",nn),un=on("borderLeft",nn),pn=on("borderColor"),dn=on("borderTopColor"),hn=on("borderRightColor"),fn=on("borderBottomColor"),mn=on("borderLeftColor"),gn=on("outline",nn),vn=on("outlineColor"),yn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Xr(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Jr(t,e)});return Fr(e,e.borderRadius,r)}return null};yn.propTypes={},yn.filterProps=["borderRadius"],rn(sn,an,ln,cn,un,pn,dn,hn,fn,mn,yn,gn,vn);const bn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Xr(e.theme,"spacing",8),r=e=>({gap:Jr(t,e)});return Fr(e,e.gap,r)}return null};bn.propTypes={},bn.filterProps=["gap"];const wn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Xr(e.theme,"spacing",8),r=e=>({columnGap:Jr(t,e)});return Fr(e,e.columnGap,r)}return null};wn.propTypes={},wn.filterProps=["columnGap"];const xn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Xr(e.theme,"spacing",8),r=e=>({rowGap:Jr(t,e)});return Fr(e,e.rowGap,r)}return null};function Sn(e,t){return"grey"===t?t:e}function kn(e){return e<=1&&0!==e?100*e+"%":e}xn.propTypes={},xn.filterProps=["rowGap"],rn(bn,wn,xn,Vr({prop:"gridColumn"}),Vr({prop:"gridRow"}),Vr({prop:"gridAutoFlow"}),Vr({prop:"gridAutoColumns"}),Vr({prop:"gridAutoRows"}),Vr({prop:"gridTemplateColumns"}),Vr({prop:"gridTemplateRows"}),Vr({prop:"gridTemplateAreas"}),Vr({prop:"gridArea"})),rn(Vr({prop:"color",themeKey:"palette",transform:Sn}),Vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sn}),Vr({prop:"backgroundColor",themeKey:"palette",transform:Sn}));const Cn=Vr({prop:"width",transform:kn}),On=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||jr[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:kn(t)}};return Fr(e,e.maxWidth,t)}return null};On.filterProps=["maxWidth"];const En=Vr({prop:"minWidth",transform:kn}),Rn=Vr({prop:"height",transform:kn}),Mn=Vr({prop:"maxHeight",transform:kn}),In=Vr({prop:"minHeight",transform:kn});Vr({prop:"size",cssProperty:"width",transform:kn}),Vr({prop:"size",cssProperty:"height",transform:kn}),rn(Cn,On,En,Rn,Mn,In,Vr({prop:"boxSizing"}));const An={border:{themeKey:"borders",transform:nn},borderTop:{themeKey:"borders",transform:nn},borderRight:{themeKey:"borders",transform:nn},borderBottom:{themeKey:"borders",transform:nn},borderLeft:{themeKey:"borders",transform:nn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yn},color:{themeKey:"palette",transform:Sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sn},backgroundColor:{themeKey:"palette",transform:Sn},p:{style:tn},pt:{style:tn},pr:{style:tn},pb:{style:tn},pl:{style:tn},px:{style:tn},py:{style:tn},padding:{style:tn},paddingTop:{style:tn},paddingRight:{style:tn},paddingBottom:{style:tn},paddingLeft:{style:tn},paddingX:{style:tn},paddingY:{style:tn},paddingInline:{style:tn},paddingInlineStart:{style:tn},paddingInlineEnd:{style:tn},paddingBlock:{style:tn},paddingBlockStart:{style:tn},paddingBlockEnd:{style:tn},m:{style:en},mt:{style:en},mr:{style:en},mb:{style:en},ml:{style:en},mx:{style:en},my:{style:en},margin:{style:en},marginTop:{style:en},marginRight:{style:en},marginBottom:{style:en},marginLeft:{style:en},marginX:{style:en},marginY:{style:en},marginInline:{style:en},marginInlineStart:{style:en},marginInlineEnd:{style:en},marginBlock:{style:en},marginBlockStart:{style:en},marginBlockEnd:{style:en},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:bn},rowGap:{style:xn},columnGap:{style:wn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kn},maxWidth:{style:On},minWidth:{transform:kn},height:{transform:kn},maxHeight:{transform:kn},minHeight:{transform:kn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Tn(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[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=zr(r,a)||{};return c?c(o):Fr(o,t,t=>{let r=Ur(u,l,t);return t===r&&"string"==typeof t&&(r=Ur(u,l,`${e}${"default"===t?"":wr(t)}`,t)),!1===s?r:{[s]:r}})}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:An;function a(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=Dr(i.breakpoints),a=Object.keys(o);let l=o;return Object.keys(n).forEach(r=>{const o="function"==typeof(a=n[r])?a(i):a;var a;if(null!=o)if("object"==typeof o)if(s[r])l=Lr(l,e(r,o,i,s));else{const e=Fr({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?l=Lr(l,e):l[r]=t({sx:o,theme:i})}else l=Lr(l,e(r,o,i,s))}),$r(a,l)}return Array.isArray(o)?o.map(a):a(o)}}const Pn=Tn();function Ln(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Pn.filterProps=["sx"];const jn=["breakpoints","palette","spacing","shape"];function Nn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=l(e,jn),a=Tr(r),u=function(e=8){if(e.mui)return e;const t=Yr({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let p=gr({breakpoints:a,direction:"ltr",components:{},palette:c({mode:"light"},n),spacing:u,shape:c({},Pr,i)},s);return p.applyStyles=Ln,p=t.reduce((e,t)=>gr(e,t),p),p.unstable_sxConfig=c({},An,null==s?void 0:s.unstable_sxConfig),p.unstable_sx=function(e){return Pn({sx:e,theme:this})},p}const Fn=p(Object.freeze(Object.defineProperty({__proto__:null,default:Nn,private_createBreakpoints:Tr,unstable_applyStyles:Ln},Symbol.toStringTag,{value:"Module"}))),Dn=["sx"];function $n(e){const{sx:t}=e,r=l(e,Dn),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:An;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return fr(r)?c({},n,r):n}:c({},n,t),c({},o,{sx:i})}const Bn=p(Object.freeze(Object.defineProperty({__proto__:null,default:Pn,extendSxProp:$n,unstable_createStyleFunctionSx:Tn,unstable_defaultSxConfig:An},Symbol.toStringTag,{value:"Module"})));var zn;const Un=u(function(){if(zn)return S;zn=1;var e=C();Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(e={}){const{themeId:i,defaultTheme:a=d,rootShouldForwardProp:l=p,slotShouldForwardProp:u=p}=e,v=e=>(0,s.default)((0,t.default)({},e,{theme:f((0,t.default)({},e,{defaultTheme:a,themeId:i}))}));return v.__mui_systemSx=!0,(e,s={})=>{(0,n.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:d,slot:y,skipVariantsResolver:b,skipSx:w,overridesResolver:x=m(h(y))}=s,_=(0,r.default)(s,c),S=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,k=w||!1;let C=p;"Root"===y||"root"===y?C=l:y?C=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const O=(0,n.default)(e,(0,t.default)({shouldForwardProp:C,label:void 0},_)),E=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?r=>g(e,(0,t.default)({},r,{theme:f({theme:r.theme,defaultTheme:a,themeId:i})})):e,R=(r,...n)=>{let o=E(r);const s=n?n.map(E):[];d&&x&&s.push(e=>{const r=f((0,t.default)({},e,{defaultTheme:a,themeId:i}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const n=r.components[d].styleOverrides,o={};return Object.entries(n).forEach(([n,i])=>{o[n]=g(i,(0,t.default)({},e,{theme:r}))}),x(e,o)}),d&&!S&&s.push(e=>{var r;const n=f((0,t.default)({},e,{defaultTheme:a,themeId:i}));return g({variants:null==n||null==(r=n.components)||null==(r=r[d])?void 0:r.variants},(0,t.default)({},e,{theme:n}))}),k||s.push(v);const l=s.length-n.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const c=O(o,...s);return e.muiName&&(c.muiName=e.muiName),c};return O.withConfig&&(R.withConfig=O.withConfig),R}},S.shouldForwardProp=p,S.systemDefaultTheme=void 0;var t=e((O||(O=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;te?e.charAt(0).toLowerCase()+e.slice(1):e;function f({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function m(e){return e?(t,r)=>r[e]:null}function g(e,n){let{ownerState:o}=n,i=(0,r.default)(n,a);const s="function"==typeof e?e((0,t.default)({ownerState:o},i)):e;if(Array.isArray(s))return s.flatMap(e=>g(e,(0,t.default)({ownerState:o},i)));if(s&&"object"==typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let n=(0,r.default)(s,l);return e.forEach(e=>{let r=!0;"function"==typeof e.props?r=e.props((0,t.default)({ownerState:o},i,o)):Object.keys(e.props).forEach(t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)}),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,t.default)({ownerState:o},i,o)):e.style))}),n}return s}return S}());function Vn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{t[r]=qn(e[r])}),t}function Hn(e,t,r={clone:!0}){const n=r.clone?c({},e):e;return Wn(e)&&Wn(t)&&Object.keys(t).forEach(i=>{o.isValidElement(t[i])?n[i]=t[i]:Wn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Wn(e[i])?n[i]=Hn(e[i],t[i],r):r.clone?n[i]=Wn(t[i])?qn(t[i]):t[i]:n[i]=t[i]}),n}const Gn=e=>e,Kn=(()=>{let e=Gn;return{configure(t){e=t},generate:t=>e(t),reset(){e=Gn}}})(),Zn={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 Xn(e,t,r="Mui"){const n=Zn[t];return n?`${r}-${n}`:`${Kn.generate(e)}-${t}`}var Yn={};const Jn=p(br);function Qn(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const eo=p(Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})));var to,ro=function(){if(to)return Yn;to=1;var e=C();Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.alpha=u,Yn.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),s=i(e),l=i(t);return a({type:"rgb",values:[o(s.values[0],l.values[0]),o(s.values[1],l.values[1]),o(s.values[2],l.values[2])]})},Yn.colorChannel=void 0,Yn.darken=p,Yn.decomposeColor=i,Yn.emphasize=h,Yn.getContrastRatio=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Yn.getLuminance=c,Yn.hexToRgb=o,Yn.hslToRgb=l,Yn.lighten=d,Yn.private_safeAlpha=function(e,t,r){try{return u(e,t)}catch(t){return e}},Yn.private_safeColorChannel=void 0,Yn.private_safeDarken=function(e,t,r){try{return p(e,t)}catch(t){return e}},Yn.private_safeEmphasize=function(e,t,r){try{return h(e,t)}catch(t){return e}},Yn.private_safeLighten=function(e,t,r){try{return d(e,t)}catch(t){return e}},Yn.recomposeColor=a,Yn.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(Jn),r=e(eo);function n(e,t=0,n=1){return(0,r.default)(e,t,n)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,t.default)(9,e));let s,a=e.substring(r+1,e.length-1);if("color"===n){if(a=a.split(" "),s=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s))throw new Error((0,t.default)(10,s))}else a=a.split(",");return a=a.map(e=>parseFloat(e)),{type:n,values:a,colorSpace:s}}const s=e=>{const t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};function a(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,s=n*Math.min(o,1-o),l=(e,t=(e+r/30)%12)=>o-s*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(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 u(e,t){return e=i(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function p(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}function h(e,t=.15){return c(e)>.5?p(e,t):d(e,t)}return Yn.colorChannel=s,Yn.private_safeColorChannel=(e,t)=>{try{return s(e)}catch(t){return e}},Yn}();const no={black:"#000",white:"#fff"},oo={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"},io="#d32f2f",so="#42a5f5",ao="#0288d1",lo=["mode","contrastThreshold","tonalOffset"],co={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:no.white,default:no.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}},uo={text:{primary:no.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:no.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function po(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=ro.lighten(e.main,o):"dark"===t&&(e.dark=ro.darken(e.main,i)))}const ho=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],fo={textTransform:"uppercase"},mo='"Roboto", "Helvetica", "Arial", sans-serif';function go(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=mo,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:u=700,htmlFontSize:p=16,allVariants:d,pxToRem:h}=r,f=l(r,ho),m=o/14,g=h||(e=>e/p*m+"rem"),v=(e,t,r,o,i)=>{return c({fontFamily:n,fontWeight:e,fontSize:g(t),lineHeight:r},n===mo?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5+"em")}:{},i,d);var s},y={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,fo),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,fo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hn(c({htmlFontSize:p,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:u},y),f,{clone:!1})}function vo(...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 yo=["none",vo(0,2,1,-1,0,1,1,0,0,1,3,0),vo(0,3,1,-2,0,2,2,0,0,1,5,0),vo(0,3,3,-2,0,3,4,0,0,1,8,0),vo(0,2,4,-1,0,4,5,0,0,1,10,0),vo(0,3,5,-1,0,5,8,0,0,1,14,0),vo(0,3,5,-1,0,6,10,0,0,1,18,0),vo(0,4,5,-2,0,7,10,1,0,2,16,1),vo(0,5,5,-3,0,8,10,1,0,3,14,2),vo(0,5,6,-3,0,9,12,1,0,3,16,2),vo(0,6,6,-3,0,10,14,1,0,4,18,3),vo(0,6,7,-4,0,11,15,1,0,4,20,3),vo(0,7,8,-4,0,12,17,2,0,5,22,4),vo(0,7,8,-4,0,13,19,2,0,5,24,4),vo(0,7,9,-4,0,14,21,2,0,5,26,4),vo(0,8,9,-5,0,15,22,2,0,6,28,5),vo(0,8,10,-5,0,16,24,2,0,6,30,5),vo(0,8,11,-5,0,17,26,2,0,6,32,5),vo(0,9,11,-5,0,18,28,2,0,7,34,6),vo(0,9,12,-6,0,19,29,2,0,7,36,6),vo(0,10,13,-6,0,20,31,3,0,8,38,7),vo(0,10,13,-6,0,21,33,3,0,8,40,7),vo(0,10,14,-6,0,22,35,3,0,8,42,7),vo(0,11,14,-7,0,23,36,3,0,9,44,8),vo(0,11,15,-7,0,24,38,3,0,9,46,8)],bo=["duration","easing","delay"],wo={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)"},xo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _o(e){return`${Math.round(e)}ms`}function So(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ko(e){const t=c({},wo,e.easing),r=c({},xo,e.duration);return c({getAutoHeightDuration:So,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:s=0}=n;return l(n,bo),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:_o(o)} ${i} ${"string"==typeof s?s:_o(s)}`).join(",")}},e,{easing:t,duration:r})}const Co={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Oo=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Eo(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=l(e,Oo);if(e.vars)throw new Error(Vn(18));const a=function(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=l(e,lo),i=e.primary||function(e="light"){return"dark"===e?{main:"#90caf9",light:"#e3f2fd",dark:so}:{main:"#1976d2",light:so,dark:"#1565c0"}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),a=e.error||function(e="light"){return"dark"===e?{main:"#f44336",light:"#e57373",dark:io}:{main:io,light:"#ef5350",dark:"#c62828"}}(t),u=e.info||function(e="light"){return"dark"===e?{main:"#29b6f6",light:"#4fc3f7",dark:ao}:{main:ao,light:"#03a9f4",dark:"#01579b"}}(t),p=e.success||function(e="light"){return"dark"===e?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function h(e){return ro.getContrastRatio(e,uo.text.primary)>=r?uo.text.primary:co.text.primary}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=c({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Vn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Vn(12,t?` (${t})`:"",JSON.stringify(e.main)));return po(e,"light",o,n),po(e,"dark",i,n),e.contrastText||(e.contrastText=h(e.main)),e},m={dark:uo,light:co};return Hn(c({common:c({},no),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:p,name:"success"}),grey:oo,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},m[t]),o)}(n),u=Nn(e);let p=Hn(u,{mixins:(d=u.breakpoints,h=r,c({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},h)),palette:a,shadows:yo.slice(),typography:go(a,i),transitions:ko(o),zIndex:c({},Co)});var d,h;return p=Hn(p,s),p=t.reduce((e,t)=>Hn(e,t),p),p.unstable_sxConfig=c({},An,null==s?void 0:s.unstable_sxConfig),p.unstable_sx=function(e){return Pn({sx:e,theme:this})},p}const Ro=Eo(),Mo="$$material";function Io(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ao=e=>Io(e)&&"classes"!==e,To=Un({themeId:Mo,defaultTheme:Ro,rootShouldForwardProp:Ao});function Po(e,t){const r=c({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=c({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=c({},i),Object.keys(o).forEach(e=>{r[n][e]=Po(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}function Lo(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Po(t.components[r].defaultProps,n):n}function jo(e=null){const t=o.useContext(Qe);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const No=Nn();function Fo(e=No){return jo(e)}function Do({props:e,name:t,defaultTheme:r,themeId:n}){let o=Fo(r);return n&&(o=o[n]||o),Lo({theme:o,name:t,props:e})}function $o({props:e,name:t}){return Do({props:e,name:t,defaultTheme:Ro,themeId:Mo})}function Bo(e){if("string"!=typeof e)throw new Error(Vn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zo(){return null}Number.isInteger,zo.isRequired=zo;const Uo=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Vo({styles:e,themeId:t,defaultTheme:r={}}){const o=Fo(r),i="function"==typeof e?e(t&&o[t]||o):e;return(0,n.jsx)(cr,{styles:i})}const Wo=e=>e,qo=(()=>{let e=Wo;return{configure(t){e=t},generate:t=>e(t),reset(){e=Wo}}})();function Ho(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;te?e.charAt(0).toLowerCase()+e.slice(1):e;function ri({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ni(e){return e?(t,r)=>r[e]:null}function oi(e,t){let{ownerState:r}=t,n=l(t,Xo);const o="function"==typeof e?e(c({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(e=>oi(e,c({ownerState:r},n)));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=l(o,Yo);return e.forEach(e=>{let o=!0;"function"==typeof e.props?o=e.props(c({ownerState:r},n,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)}),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(c({ownerState:r},n,r)):e.style))}),t}return o}const ii=function(e={}){const{themeId:t,defaultTheme:r=ei,rootShouldForwardProp:n=Qo,slotShouldForwardProp:o=Qo}=e,i=e=>Pn(c({},e,{theme:ri(c({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,s={})=>{pr(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:p,skipSx:d,overridesResolver:h=ni(ti(u))}=s,f=l(s,Jo),m=void 0!==p?p:u&&"Root"!==u&&"root"!==u||!1,g=d||!1;let v=Qo;"Root"===u||"root"===u?v=n:u?v=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const y=ur(e,c({shouldForwardProp:v,label:void 0},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||fr(e)?n=>oi(e,c({},n,{theme:ri({theme:n.theme,defaultTheme:r,themeId:t})})):e,w=(n,...o)=>{let s=b(n);const l=o?o.map(b):[];a&&h&&l.push(e=>{const n=ri(c({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[a]||!n.components[a].styleOverrides)return null;const o=n.components[a].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=oi(r,c({},e,{theme:n}))}),h(e,i)}),a&&!m&&l.push(e=>{var n;const o=ri(c({},e,{defaultTheme:r,themeId:t}));return oi({variants:null==o||null==(n=o.components)||null==(n=n[a])?void 0:n.variants},c({},e,{theme:o}))}),g||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const p=y(s,...l);return e.muiName&&(p.muiName=e.muiName),p};return y.withConfig&&(w.withConfig=y.withConfig),w}}(),si="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function ai(e,t,r,n,i){const[s,a]=o.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return si(()=>{let t=!0;if(!r)return;const n=r(e),o=()=>{t&&a(n.matches)};return o(),n.addListener(o),()=>{t=!1,n.removeListener(o)}},[e,r]),s}const li=o.useSyncExternalStore;function ci(e,t,r,n,i){const s=o.useCallback(()=>t,[t]),a=o.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(null!==n){const{matches:t}=n(e);return()=>t}return s},[s,e,n,i,r]),[l,c]=o.useMemo(()=>{if(null===r)return[s,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[s,r,e]);return li(c,l,a)}function ui(e,t={}){const r=jo(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:i=(n?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:a=!1}=Lo({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"==typeof e?e(r):e;return l=l.replace(/^@media( ?)/m,""),(void 0!==li?ci:ai)(l,o,i,s,a)}function pi(e,t=0,r=1){return Qn(e,t,r)}function di(e){if(e.type)return e;if("#"===e.charAt(0))return di(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(yr(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(yr(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function hi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function fi(e,t){return e=di(e),t=pi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,hi(e)}function mi(e,t){if(e=di(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return hi(e)}function gi(e,t){if(e=di(e),t=pi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return hi(e)}const vi=o.createContext(null);function yi(){return o.useContext(vi)}const bi="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wi(e){const{children:t,theme:r}=e,i=yi(),s=o.useMemo(()=>{const e=null===i?r:function(e,t){return"function"==typeof t?t(e):c({},e,t)}(i,r);return null!=e&&(e[bi]=null!==i),e},[r,i]);return(0,n.jsx)(vi.Provider,{value:s,children:t})}const xi=["value"],_i=o.createContext();function Si(e){let{value:t}=e,r=l(e,xi);return(0,n.jsx)(_i.Provider,c({value:null==t||t},r))}const ki=()=>{const e=o.useContext(_i);return null!=e&&e},Ci=o.createContext(void 0);function Oi({value:e,children:t}){return(0,n.jsx)(Ci.Provider,{value:e,children:t})}const Ei={};function Ri(e,t,r,n=!1){return o.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),s=e?c({},t,{[e]:i}):i;return n?()=>s:s}return c({},t,e?{[e]:r}:r)},[e,t,r,n])}function Mi(e){const{children:t,theme:r,themeId:o}=e,i=jo(Ei),s=yi()||Ei,a=Ri(o,i,r),l=Ri(o,s,r,!0),c="rtl"===a.direction;return(0,n.jsx)(wi,{theme:l,children:(0,n.jsx)(Qe.Provider,{value:a,children:(0,n.jsx)(Si,{value:c,children:(0,n.jsx)(Oi,{value:null==a?void 0:a.components,children:t})})})})}const Ii=["component","direction","spacing","divider","children","className","useFlexGap"],Ai=Nn(),Ti=ii("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Pi(e){return Do({props:e,name:"MuiStack",defaultTheme:Ai})}function Li(e,t){const r=o.Children.toArray(e).filter(Boolean);return r.reduce((e,n,i)=>(e.push(n),i{let r=c({display:"flex",flexDirection:"column"},Fr({theme:t},Br({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const n=Yr(t),o=Object.keys(t.breakpoints.values).reduce((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t),{}),i=Br({values:e.direction,base:o}),s=Br({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}),r=gr(r,Fr({theme:t},s,(t,r)=>{return e.useFlexGap?{gap:Jr(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?i[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Jr(n,t)}};var o}))}return r=function(e,...t){const r=Dr(e),n=[r,...t].reduce((e,t)=>gr(e,t),{});return $r(Object.keys(r),n)}(t.breakpoints,r),r};function Ni(){const e=Fo(Ro);return e[Mo]||e}function Fi(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Xn(e,t,r)}),n}function Di(e){return Xn("MuiPaper",e)}Fi("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 $i=["className","component","elevation","square","variant"],Bi=To("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return c({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&c({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ro.alpha("#fff",Uo(t.elevation))}, ${ro.alpha("#fff",Uo(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),zi=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:u="elevation"}=r,p=l(r,$i),d=c({},r,{component:i,elevation:s,square:a,variant:u}),h=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return x({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Di,o)})(d);return(0,n.jsx)(Bi,c({as:i,ownerState:d,className:w(h.root,o),ref:t},p))}),Ui=zi;function Vi(e){return Xn("MuiAppBar",e)}Fi("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Wi=["className","color","enableColorOnDark","position"],qi=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,Hi=To(Ui,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Bo(r.position)}`],t[`color${Bo(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return c({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&c({},"default"===t.color&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&c({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&c({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:qi(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:qi(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:qi(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:qi(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Gi=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,u=l(r,Wi),p=c({},r,{color:i,position:a,enableColorOnDark:s}),d=(e=>{const{color:t,position:r,classes:n}=e;return x({root:["root",`color${Bo(t)}`,`position${Bo(r)}`]},Vi,n)})(p);return(0,n.jsx)(Hi,c({square:!0,component:"header",ownerState:p,elevation:4,className:w(d.root,o,"fixed"===a&&"mui-fixed"),ref:t},u))}),Ki=Gi,Zi={elevation:0,color:"default"},Xi=i().forwardRef((e,t)=>i().createElement(Ki,{...Zi,...e,ref:t}));Xi.defaultProps=Zi;var Yi=Xi;const Ji=function(e={}){const{createStyledComponent:t=Ti,useThemeProps:r=Pi,componentName:i="MuiStack"}=e,s=()=>function(e,t,r){const n={};return Object.keys(e).forEach(t=>{n[t]=e[t].reduce((e,t)=>{if(t){const n=(e=>function(e,t,r="Mui"){const n=Zo[t];return n?`${r}-${n}`:`${qo.generate(e)}-${t}`}(i,e))(t);""!==n&&e.push(n),r&&r[t]&&e.push(r[t])}return e},[]).join(" ")}),n}({root:["root"]},0,{}),a=t(ji),u=o.forwardRef(function(e,t){const o=$n(r(e)),{component:i="div",direction:u="column",spacing:p=0,divider:d,children:h,className:f,useFlexGap:m=!1}=o,g=l(o,Ii),v={direction:u,spacing:p,useFlexGap:m},y=s();return(0,n.jsx)(a,c({as:i,ownerState:v,ref:t,className:Go(y.root,f)},g,{children:d?Li(h,d):h}))});return u}({createStyledComponent:To("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$o({props:e,name:"MuiStack"})}),Qi=Ji;var es=i().forwardRef((e,t)=>i().createElement(Qi,{...e,ref:t}));function ts(e){return Xn("MuiToolbar",e)}Fi("MuiToolbar",["root","gutters","regular","dense"]);const rs=["className","component","disableGutters","variant"],ns=To("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>c({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48}),({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar),os=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,u=l(r,rs),p=c({},r,{component:i,disableGutters:s,variant:a}),d=(e=>{const{classes:t,disableGutters:r,variant:n}=e;return x({root:["root",!r&&"gutters",n]},ts,t)})(p);return(0,n.jsx)(ns,c({as:i,className:w(d.root,o),ref:t,ownerState:p},u))}),is=os;var ss=i().forwardRef((e,t)=>i().createElement(is,{...e,ref:t}));function as(e){return Xn("MuiTypography",e)}Fi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ls=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cs=To("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Bo(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>c({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),us={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ps={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ds=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiTypography"}),o=(_=r.color,ps[_]||_),i=$n(c({},r,{color:o})),{align:s="inherit",className:a,component:u,gutterBottom:p=!1,noWrap:d=!1,paragraph:h=!1,variant:f="body1",variantMapping:m=us}=i,g=l(i,ls),v=c({},i,{align:s,color:o,className:a,component:u,gutterBottom:p,noWrap:d,paragraph:h,variant:f,variantMapping:m}),y=u||(h?"p":m[f]||us[f])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:s}=e;return x({root:["root",i,"inherit"!==e.align&&`align${Bo(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},as,s)})(v);var _;return(0,n.jsx)(cs,c({as:y,ref:t,ownerState:v,className:w(b.root,a)},g))}),hs=ds,fs={variantMapping:{display1:"h1",display2:"h2",display3:"h3",display4:"h4",display5:"h5",display6:"h6"}},ms=i().forwardRef((e,t)=>{const r={...fs,...e,variantMapping:{...fs.variantMapping,...e.variantMapping}};return i().createElement(hs,{...r,ref:t})});ms.defaultProps=fs;var gs=ms;const vs=["theme"];function ys(e){let{theme:t}=e,r=l(e,vs);const o=t[Mo];return(0,n.jsx)(Mi,c({},r,{themeId:o?Mo:void 0,theme:o||t}))}function bs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function ws(...e){return o.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{bs(e,t)})},e)}y.oneOfType([y.func,y.object]),y.elementType;const xs="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function _s(e){const t=o.useRef(e);return xs(()=>{t.current=e}),o.useRef((...e)=>(0,t.current)(...e)).current}const Ss={},ks=[];class Cs{static create(){return new Cs}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}}function Os(){const e=function(e){const t=o.useRef(Ss);return t.current===Ss&&(t.current=e(void 0)),t}(Cs.create).current;var t;return t=e.disposeEffect,o.useEffect(t,ks),e}let Es=!0,Rs=!1;const Ms=new Cs,Is={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function As(e){e.metaKey||e.altKey||e.ctrlKey||(Es=!0)}function Ts(){Es=!1}function Ps(){"hidden"===this.visibilityState&&Rs&&(Es=!0)}function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ls(e,t)}function js(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ls(e,t)}const Ns=i().createContext(null);var Fs="unmounted",Ds="exited",$s="entering",Bs="entered",zs="exiting",Us=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Ds,n.appearStatus=$s):o=Bs:o=t.unmountOnExit||t.mountOnEnter?Fs:Ds,n.state={status:o},n.nextCallback=null,n}js(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Fs?{status:Ds}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==$s&&r!==Bs&&(t=$s):r!==$s&&r!==Bs||(t=zs)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===$s?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:a().findDOMNode(this)),this.performEnter(e)):this.performExit()):this.props.unmountOnExit&&this.state.status===Ds&&this.setState({status:Fs})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[a().findDOMNode(this),n],i=o[0],s=o[1],l=this.getTimeouts(),c=n?l.appear:l.enter;e||r?(this.props.onEnter(i,s),this.safeSetState({status:$s},function(){t.props.onEntering(i,s),t.onTransitionEnd(c,function(){t.safeSetState({status:Bs},function(){t.props.onEntered(i,s)})})})):this.safeSetState({status:Bs},function(){t.props.onEntered(i)})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:a().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:zs},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Ds},function(){e.props.onExited(n)})})})):this.safeSetState({status:Ds},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:a().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Fs)return null;var t=this.props,r=t.children,n=l(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i().createElement(Ns.Provider,{value:null},"function"==typeof r?r(e,n):i().cloneElement(i().Children.only(r),n))},t}(i().Component);function Vs(){}Us.contextType=Ns,Us.propTypes={},Us.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vs,onEntering:Vs,onEntered:Vs,onExit:Vs,onExiting:Vs,onExited:Vs},Us.UNMOUNTED=Fs,Us.EXITED=Ds,Us.ENTERING=$s,Us.ENTERED=Bs,Us.EXITING=zs;const Ws=Us;function qs(e,t){var r=Object.create(null);return e&&o.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)}),r}function Hs(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Gs(e,t,r){var n=qs(e.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,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(n=0;ne;const oa=rt(Qs||(Qs=na` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),ia=rt(ea||(ea=na` 0% { opacity: 1; } 100% { opacity: 0; } `)),sa=rt(ta||(ta=na` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),aa=To("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),la=To(function(e){const{className:t,classes:r,pulsate:i=!1,rippleX:s,rippleY:a,rippleSize:l,in:c,onExited:u,timeout:p}=e,[d,h]=o.useState(!1),f=w(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+s},g=w(r.child,d&&r.childLeaving,i&&r.childPulsate);return c||d||h(!0),o.useEffect(()=>{if(!c&&null!=u){const e=setTimeout(u,p);return()=>{clearTimeout(e)}}},[u,c,p]),(0,n.jsx)("span",{className:f,style:m,children:(0,n.jsx)("span",{className:g})})},{name:"MuiTouchRipple",slot:"Ripple"})(ra||(ra=na` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Ys.rippleVisible,oa,550,({theme:e})=>e.transitions.easing.easeInOut,Ys.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ys.child,Ys.childLeaving,ia,550,({theme:e})=>e.transitions.easing.easeInOut,Ys.childPulsate,sa,({theme:e})=>e.transitions.easing.easeInOut),ca=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a}=r,u=l(r,Js),[p,d]=o.useState([]),h=o.useRef(0),f=o.useRef(null);o.useEffect(()=>{f.current&&(f.current(),f.current=null)},[p]);const m=o.useRef(!1),g=Os(),v=o.useRef(null),y=o.useRef(null),b=o.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:o,rippleSize:i,cb:a}=e;d(e=>[...e,(0,n.jsx)(la,{classes:{ripple:w(s.ripple,Ys.ripple),rippleVisible:w(s.rippleVisible,Ys.rippleVisible),ripplePulsate:w(s.ripplePulsate,Ys.ripplePulsate),child:w(s.child,Ys.child),childLeaving:w(s.childLeaving,Ys.childLeaving),childPulsate:w(s.childPulsate,Ys.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:o,rippleSize:i},h.current)]),h.current+=1,f.current=a},[s]),x=o.useCallback((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:o=i||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const a=s?null:y.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,p;if(o||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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(o)p=Math.sqrt((2*l.width**2+l.height**2)/3),p%2==0&&(p+=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;p=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:n,rippleX:c,rippleY:u,rippleSize:p,cb:r})},g.start(80,()=>{v.current&&(v.current(),v.current=null)})):b({pulsate:n,rippleX:c,rippleY:u,rippleSize:p,cb:r})},[i,b,g]),_=o.useCallback(()=>{x({},{pulsate:!0})},[x]),S=o.useCallback((e,t)=>{if(g.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void g.start(0,()=>{S(e,t)});v.current=null,d(e=>e.length>0?e.slice(1):e),f.current=t},[g]);return o.useImperativeHandle(t,()=>({pulsate:_,start:x,stop:S}),[_,x,S]),(0,n.jsx)(aa,c({className:w(Ys.root,s.root,a),ref:y},u,{children:(0,n.jsx)(Xs,{component:null,exit:!0,children:p})}))}),ua=ca;function pa(e){return Xn("MuiButtonBase",e)}const da=Fi("MuiButtonBase",["root","disabled","focusVisible"]),ha=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],fa=To("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${da.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ma=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:u,component:p="button",disabled:d=!1,disableRipple:h=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:_,onFocus:S,onFocusVisible:k,onKeyDown:C,onKeyUp:O,onMouseDown:E,onMouseLeave:R,onMouseUp:M,onTouchEnd:I,onTouchMove:A,onTouchStart:T,tabIndex:P=0,TouchRippleProps:L,touchRippleRef:j,type:N}=r,F=l(r,ha),D=o.useRef(null),$=o.useRef(null),B=ws($,j),{isFocusVisibleRef:z,onFocus:U,onBlur:V,ref:W}=function(){const e=o.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",As,!0),t.addEventListener("mousedown",Ts,!0),t.addEventListener("pointerdown",Ts,!0),t.addEventListener("touchstart",Ts,!0),t.addEventListener("visibilitychange",Ps,!0))},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Es||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Is[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rs=!0,Ms.start(100,()=>{Rs=!1}),t.current=!1,!0)},ref:e}}(),[q,H]=o.useState(!1);d&&q&&H(!1),o.useImperativeHandle(i,()=>({focusVisible:()=>{H(!0),D.current.focus()}}),[]);const[G,K]=o.useState(!1);o.useEffect(()=>{K(!0)},[]);const Z=G&&!h&&!d;function X(e,t,r=f){return _s(n=>(t&&t(n),!r&&$.current&&$.current[e](n),!0))}o.useEffect(()=>{q&&m&&!h&&G&&$.current.pulsate()},[h,m,q,G]);const Y=X("start",E),J=X("stop",b),Q=X("stop",_),ee=X("stop",M),te=X("stop",e=>{q&&e.preventDefault(),R&&R(e)}),re=X("start",T),ne=X("stop",I),oe=X("stop",A),ie=X("stop",e=>{V(e),!1===z.current&&H(!1),v&&v(e)},!1),se=_s(e=>{D.current||(D.current=e.currentTarget),U(e),!0===z.current&&(H(!0),k&&k(e)),S&&S(e)}),ae=()=>{const e=D.current;return p&&"button"!==p&&!("A"===e.tagName&&e.href)},le=o.useRef(!1),ce=_s(e=>{m&&!le.current&&q&&$.current&&" "===e.key&&(le.current=!0,$.current.stop(e,()=>{$.current.start(e)})),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!d&&(e.preventDefault(),y&&y(e))}),ue=_s(e=>{m&&" "===e.key&&$.current&&q&&!e.defaultPrevented&&(le.current=!1,$.current.stop(e,()=>{$.current.pulsate(e)})),O&&O(e),y&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&y(e)});let pe=p;"button"===pe&&(F.href||F.to)&&(pe=g);const de={};"button"===pe?(de.type=void 0===N?"button":N,de.disabled=d):(F.href||F.to||(de.role="button"),d&&(de["aria-disabled"]=d));const he=ws(t,W,D),fe=c({},r,{centerRipple:s,component:p,disabled:d,disableRipple:h,disableTouchRipple:f,focusRipple:m,tabIndex:P,focusVisible:q}),me=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=x({root:["root",t&&"disabled",r&&"focusVisible"]},pa,o);return r&&n&&(i.root+=` ${n}`),i})(fe);return(0,n.jsxs)(fa,c({as:pe,className:w(me.root,u),ownerState:fe,onBlur:ie,onClick:y,onContextMenu:J,onFocus:se,onKeyDown:ce,onKeyUp:ue,onMouseDown:Y,onMouseLeave:te,onMouseUp:ee,onDragLeave:Q,onTouchEnd:ne,onTouchMove:oe,onTouchStart:re,ref:he,tabIndex:d?-1:P,type:N},de,F,{children:[a,Z?(0,n.jsx)(ua,c({ref:B,center:s},L)):null]}))}),ga=ma;function va(e){return Xn("MuiIconButton",e)}const ya=Fi("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ba=["edge","children","className","color","disabled","disableFocusRipple","size"],wa=To(ga,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Bo(r.color)}`],r.edge&&t[`edge${Bo(r.edge)}`],t[`size${Bo(r.size)}`]]}})(({theme:e,ownerState:t})=>c({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ro.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return c({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&c({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":c({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ro.alpha(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ya.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),xa=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:u=!1,disableFocusRipple:p=!1,size:d="medium"}=r,h=l(r,ba),f=c({},r,{edge:o,color:a,disabled:u,disableFocusRipple:p,size:d}),m=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return x({root:["root",r&&"disabled","default"!==n&&`color${Bo(n)}`,o&&`edge${Bo(o)}`,`size${Bo(i)}`]},va,t)})(f);return(0,n.jsx)(wa,c({className:w(m.root,s),centerRipple:!0,focusRipple:!p,disabled:u,ref:t},h,{ownerState:f,children:i}))}),_a=xa,Sa="&:hover,&:focus,&:active,&:visited",ka="__unstableAccessibleMain",Ca="__unstableAccessibleLight",Oa="__unstableStates",Ea="0.75rem",Ra="1.25em",Ma="1.25em",Ia="1.25em",Aa="eui-rtl",Ta=[0,1,1,1,1],Pa=(e,t)=>{const r={},n={};return t.forEach(t=>{n[t]=`Mui${e}-${t}`,r[t]={slot:t,name:`Mui${e}`}}),{slots:r,classNames:n}},La=(e,...t)=>{const r={...e};return r.shape={borderRadius:4,__unstableBorderRadiusMultipliers:Ta,...r.shape},Eo(r,...t)},ja=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Na=La({}),Fa=Un({themeId:Mo,defaultTheme:Na,rootShouldForwardProp:ja}),Da=(e,t)=>{if(!t?.shouldForwardProp)return Fa(e,t);const r=t.shouldForwardProp,n={...t};return n.shouldForwardProp=e=>ja(e)&&r(e),Fa(e,n)},$a="#FFFFFF",Ba="#f1f3f3",za="#d5d8dc",Ua="#babfc5",Va="#9da5ae",Wa="#818a96",qa="#69727d",Ha="#515962",Ga="#3f444b",Ka="#1f2124",Za="#0c0d0e",Xa="#f3bafd",Ya="#f0abfc",Ja="#eb8efb",Qa="#ef4444",el="#dc2626",tl="#b91c1c",rl="#f59e0b",nl="#bb5b1d",ol="#b15211",il="#3b82f6",sl="#2563eb",al="#1d4ed8",ll="#10b981",cl="#0a875a",ul="#047857",pl="#99f6e4",dl="#5eead4",hl="#2adfcd",fl="#b51243",ml="#93003f",gl="#7e013b",vl={styleOverrides:{listbox:({theme:e})=>({"&.MuiAutocomplete-listboxSizeTiny":{fontSize:"0.875rem"},'&.MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected="true"]':{"&,&.Mui-Mui-focused":{backgroundColor:e.palette.action.selected}}})},variants:[{props:{size:"tiny"},style:()=>({"& .MuiOutlinedInput-root":{padding:"2.5px 0","& .MuiAutocomplete-input":{lineHeight:Ma,height:Ma,padding:"4px 2px 4px 8px"}},"& .MuiFilledInput-root":{padding:0,"& .MuiAutocomplete-input":{padding:"15px 8px 6px"}},"& .MuiInput-root":{paddingBottom:0,"& .MuiAutocomplete-input":{padding:"2px 0"}},"& .MuiAutocomplete-popupIndicator":{fontSize:"1.5em"},"& .MuiAutocomplete-clearIndicator":{fontSize:"1.2em"},"& .MuiAutocomplete-popupIndicator .MuiSvgIcon-root, & .MuiAutocomplete-clearIndicator .MuiSvgIcon-root":{fontSize:"1em"},"& .MuiInputAdornment-root .MuiIconButton-root":{padding:"2px"},"& .MuiAutocomplete-tagSizeTiny":{fontSize:Ea},"&.MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root .MuiAutocomplete-input":{paddingRight:"48px"}})},{props:{size:"tiny",multiple:!0},style:()=>({"& .MuiAutocomplete-tag":{margin:"1.5px 3px"}})}]},yl=["primary","secondary","error","warning","info","success","accent","global","promotion","decorative","neutral"],bl=["primary","global"],wl=yl.filter(e=>!bl.includes(e)),xl={styleOverrides:{root:()=>({boxShadow:"none","&:hover":{boxShadow:"none"}})},variants:yl.map(e=>({props:{variant:"contained",color:e},style:({theme:t})=>({"& .MuiButtonGroup-grouped:not(:last-of-type), & .MuiButtonGroup-grouped:not(:last-of-type).Mui-disabled":{borderRight:0},"& .MuiButtonGroup-grouped:not(:last-child), & > *:not(:last-child) .MuiButtonGroup-grouped":{borderRight:`1px solid ${t.palette[e].dark}`},"& .MuiButtonGroup-grouped:not(:last-child).Mui-disabled, & > *:not(:last-child) .MuiButtonGroup-grouped.Mui-disabled":{borderRight:`1px solid ${t.palette.action.disabled}`}})}))},_l={variants:[{props:{color:"primary",variant:"outlined"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain,borderColor:e.palette.primary.__unstableAccessibleMain,"& .MuiChip-deleteIcon":{color:e.palette.primary.__unstableAccessibleLight,"&:hover":{color:e.palette.primary.__unstableAccessibleMain}}})},{props:{color:"global",variant:"outlined"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain,borderColor:e.palette.global.__unstableAccessibleMain,"& .MuiChip-deleteIcon":{color:e.palette.global.__unstableAccessibleLight,"&:hover":{color:e.palette.global.__unstableAccessibleMain}}})},{props:{color:"default",variant:"filled"},style:({theme:e})=>({backgroundColor:"light"===e.palette.mode?"#EBEBEB":"#434547","&.Mui-focusVisible, &.MuiChip-clickable:hover":{backgroundColor:e.palette.action.focus},"& .MuiChip-icon":{color:"inherit"}})},...Sl(["default"],function(e){return{backgroundColor:{light:"#EBEBEB",dark:"#434547"},backgroundColorHover:{light:e.palette.action.focus,dark:e.palette.action.focus},color:{light:e.palette.text.primary,dark:e.palette.text.primary},deleteIconOpacity:.26,deleteIconOpacityHover:.7}}),...Sl(["primary","global"],function(e,t){const r=e.palette[t];return{backgroundColor:{light:gi(r.light,.8),dark:mi(r.__unstableAccessibleMain,.8)},backgroundColorHover:{light:gi(r.light,.6),dark:mi(r.__unstableAccessibleMain,.9)},color:{light:mi(r.__unstableAccessibleMain,.3),dark:gi(r.light,.3)},deleteIconOpacity:.7,deleteIconOpacityHover:1}}),...Sl(wl,function(e,t){return{backgroundColor:{light:gi(e.palette[t].light,.9),dark:mi(e.palette[t].light,.8)},backgroundColorHover:{light:gi(e.palette[t].light,.8),dark:mi(e.palette[t].light,.9)},color:{light:mi(e.palette[t].main,.3),dark:gi(e.palette[t].main,.5)},deleteIconOpacity:.7,deleteIconOpacityHover:1}}),{props:{size:"tiny"},style:()=>({fontSize:Ea,height:"20px",paddingInline:"5px","& .MuiChip-avatar":{width:"1rem",height:"1rem",fontSize:"9px",marginLeft:0,marginRight:"1px"},"& .MuiChip-icon":{fontSize:"1rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"3px",paddingLeft:"3px"},"& .MuiChip-deleteIcon":{fontSize:"0.875rem",marginLeft:0,marginRight:0}})},{props:{size:"small"},style:()=>({height:"24px",paddingInline:"5px","& .MuiChip-avatar":{width:"1.125rem",height:"1.125rem",fontSize:"9px",marginLeft:0,marginRight:"2px"},"& .MuiChip-icon":{fontSize:"1.125rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"3px",paddingLeft:"3px"},"& .MuiChip-deleteIcon":{fontSize:"1rem",marginLeft:0,marginRight:0}})},{props:{size:"medium"},style:()=>({height:"32px",paddingInline:"6px","& .MuiChip-avatar":{width:"1.25rem",height:"1.25rem",fontSize:"0.75rem",marginLeft:0,marginRight:"2px"},"& .MuiChip-icon":{fontSize:"1.25rem",marginLeft:0,marginRight:0},"& .MuiChip-label":{paddingRight:"4px",paddingLeft:"4px"},"& .MuiChip-deleteIcon":{fontSize:"1.125rem",marginLeft:0,marginRight:0}})}]};function Sl(e,t){return e.map(e=>({props:{color:e,variant:"standard"},style:({theme:r})=>{const n=t(r,e),{mode:o}=r.palette;return{backgroundColor:n.backgroundColor[o],color:n.color[o],"&.Mui-focusVisible, &.MuiChip-clickable:hover":{backgroundColor:n.backgroundColorHover[o]},"& .MuiChip-icon":{color:"inherit"},"& .MuiChip-deleteIcon":{color:n.color[o],opacity:n.deleteIconOpacity,"&:hover,&:focus":{color:n.color[o],opacity:n.deleteIconOpacityHover}}}}}))}const kl="1rem",Cl="0.75rem";var Ol={MuiAccordion:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.default,"&:before":{content:"none"},"&.Mui-expanded":{margin:0},"&.MuiAccordion-gutters + .MuiAccordion-root.MuiAccordion-gutters":{marginTop:e.spacing(1),marginBottom:e.spacing(0)},"&:not(.MuiAccordion-gutters) + .MuiAccordion-root:not(.MuiAccordion-gutters)":{borderTop:0},"&.Mui-disabled":{backgroundColor:e.palette.background.default}})},variants:[{props:{square:!1},style:({theme:e})=>{const t=e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[3];return{"&:first-of-type":{borderTopLeftRadius:t,borderTopRightRadius:t},"&:last-of-type":{borderBottomLeftRadius:t,borderBottomRightRadius:t}}}}]},MuiAccordionActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2)})}},MuiAccordionSummary:{styleOverrides:{root:()=>({minHeight:"64px"}),content:({theme:e})=>({margin:e.spacing(1,0),"&.MuiAccordionSummary-content.Mui-expanded":{margin:e.spacing(1,0)}})}},MuiAccordionSummaryIcon:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(1,0)})}},MuiAccordionSummaryText:{styleOverrides:{root:({theme:e})=>({marginTop:0,marginBottom:0,padding:e.spacing(1,0)})}},MuiAutocomplete:vl,MuiAvatar:{variants:[{props:{variant:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiButton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],boxShadow:"none",whiteSpace:"nowrap","&:hover":{boxShadow:"none"},"& .MuiSvgIcon-root":{fill:"currentColor"}})},variants:[{props:{color:"primary",variant:"outlined"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain,borderColor:e.palette.primary.__unstableAccessibleMain,"&:hover":{borderColor:e.palette.primary.__unstableAccessibleMain}})},{props:{color:"primary",variant:"text"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain})},{props:{color:"global",variant:"outlined"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain,borderColor:e.palette.global.__unstableAccessibleMain,"&:hover":{borderColor:e.palette.global.__unstableAccessibleMain}})},{props:{color:"global",variant:"text"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain})}]},MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:()=>({"&.MuiButtonBase-root.Mui-focusVisible":{boxShadow:"0 0 0 1px inset"},".MuiCircularProgress-root":{fontSize:"inherit"}})}},MuiButtonGroup:xl,MuiCard:{defaultProps:{},styleOverrides:{root:()=>({position:"relative"})}},MuiCardActions:{styleOverrides:{root:({theme:e})=>({justifyContent:"flex-end",padding:e.spacing(1.5,2)})}},MuiCardGroup:{styleOverrides:{root:()=>({"& .MuiCard-root.MuiPaper-outlined:not(:last-child)":{borderBottom:0},"& .MuiCard-root.MuiPaper-rounded":{"&:first-child:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},"&:last-child:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0}}})}},MuiCardHeader:{styleOverrides:{action:()=>({alignSelf:"center"})}},MuiChip:_l,MuiCircularProgress:{styleOverrides:{root:({theme:e})=>({fontSize:e.spacing(5)})}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[4]})}},MuiDialogActions:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,3)})}},MuiDialogContent:{styleOverrides:{dividers:()=>({"&:last-child":{borderBottom:"none"}})}},MuiFilledInput:{styleOverrides:{root:({theme:e})=>({borderTopLeftRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],borderTopRightRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})},variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:Ea,lineHeight:Ia,"& .MuiInputBase-input":{fontSize:Ea,lineHeight:Ia,height:Ia,padding:"15px 8px 6px"},"&.MuiInputBase-adornedStart":{paddingLeft:e.spacing(1)},"&.MuiInputBase-adornedEnd":{paddingRight:e.spacing(1)},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart:not(.MuiInputAdornment-hiddenLabel)":{marginTop:e.spacing(1)},"& .MuiInputAdornment-root:not(.MuiInputAdornment-positionEnd)":{marginRight:0},"& .MuiInputAdornment-root.MuiInputAdornment-positionEnd":{marginLeft:0}})},{props:{size:"tiny",multiline:!0},style:()=>({padding:0})}]},MuiFormHelperText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.tertiary,margin:e.spacing(.5,0,0)})}},MuiFormLabel:{variants:[{props:{size:"tiny"},style:()=>({fontSize:"0.75rem",lineHeight:"1.6",fontWeight:"400",letterSpacing:"0.19px"})},{props:{size:"small"},style:({theme:e})=>({...e.typography.body2})}]},MuiIconButton:{variants:[{props:{color:"primary"},style:({theme:e})=>({color:e.palette.primary.__unstableAccessibleMain})},{props:{color:"global"},style:({theme:e})=>({color:e.palette.global.__unstableAccessibleMain})},{props:{edge:"start",size:"small"},style:({theme:e})=>({marginLeft:e.spacing(-1.5)})},{props:{edge:"end",size:"small"},style:({theme:e})=>({marginRight:e.spacing(-1.5)})},{props:{edge:"start",size:"large"},style:({theme:e})=>({marginLeft:e.spacing(-2)})},{props:{edge:"end",size:"large"},style:({theme:e})=>({marginRight:e.spacing(-2)})},{props:{size:"tiny"},style:({theme:e})=>({padding:e.spacing(.75)})},{props:{size:"tiny",edge:"start"},style:({theme:e})=>({marginLeft:e.spacing(-1)})},{props:{size:"tiny",edge:"end"},style:({theme:e})=>({marginRight:e.spacing(-1)})},{props:{size:"xsmall"},style:({theme:e})=>({padding:e.spacing(.75)})},{props:{size:"xsmall",edge:"start"},style:({theme:e})=>({marginLeft:e.spacing(-1)})},{props:{size:"xsmall",edge:"end"},style:({theme:e})=>({marginRight:e.spacing(-1)})},{props:{size:"unstableTiny"},style:({theme:e})=>({padding:e.spacing(.5)})},{props:{size:"unstableTiny",edge:"start"},style:({theme:e})=>({marginLeft:e.spacing(-.5)})},{props:{size:"unstableTiny",edge:"end"},style:({theme:e})=>({marginRight:e.spacing(-.5)})}]},MuiInput:{variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:Ea,lineHeight:Ra,"&.MuiInput-root":{marginTop:e.spacing(1.5)},"& .MuiInputBase-input":{fontSize:Ea,lineHeight:Ra,height:Ra,padding:"6.5px 0"}})}]},MuiInputAdornment:{styleOverrides:{root:({theme:e})=>({"&.MuiInputAdornment-sizeTiny":{"&.MuiInputAdornment-positionStart":{marginRight:e.spacing(.5)},"&.MuiInputAdornment-positionEnd":{marginLeft:e.spacing(.5)}}})}},MuiInputBase:{styleOverrides:{input:()=>({".MuiInputBase-root.Mui-disabled &":{backgroundColor:"initial"}})}},MuiInputLabel:{variants:[{props:{size:"tiny",shrink:!1},style:()=>({"&.MuiInputLabel-outlined":{transform:"translate(7.5px, 5.5px) scale(1)"},"&.MuiInputLabel-standard":{transform:"translate(0px, 18px) scale(1)"},"&.MuiInputLabel-filled":{transform:"translate(8px, 11px) scale(1)"}})},{props:{size:"tiny",shrink:!0},style:()=>({"&.MuiInputLabel-filled":{transform:"translate(8px, 2px) scale(0.75)"}})}]},MuiListItem:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,"a&":{[Sa]:{color:e.palette.text.primary}}})}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:e.palette.action.focus}},"a&":{[Sa]:{color:e.palette.text.primary}}})}},MuiListItemIcon:{styleOverrides:{root:({theme:e})=>({minWidth:"initial","&:not(:last-child)":{marginRight:e.spacing(1)}})}},MuiListItemText:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiListSubheader:{styleOverrides:{root:({theme:e})=>({backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12))",lineHeight:"36px",color:e.palette.text.secondary})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:e.palette.action.focus}},"a&":{[Sa]:{color:e.palette.text.primary}},"& .MuiListItemIcon-root":{minWidth:"initial"}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],"&.Mui-focused .MuiInputAdornment-root .MuiOutlinedInput-notchedOutline":{borderColor:"dark"===e.palette.mode?"rgba(255, 255, 255, 0.23)":"rgba(0, 0, 0, 0.23)",borderWidth:"1px"}})},variants:[{props:{size:"tiny"},style:({theme:e})=>({fontSize:Ea,lineHeight:Ma,"&.MuiInputBase-adornedStart":{paddingLeft:e.spacing(1)},"&.MuiInputBase-adornedEnd":{paddingRight:e.spacing(1)},"& .MuiInputBase-input":{fontSize:Ea,lineHeight:Ma,height:Ma,padding:"6.5px 8px"},"& .MuiInputAdornment-root + .MuiInputBase-input":{paddingLeft:0},"&:has(.MuiInputBase-input + .MuiInputAdornment-root) .MuiInputBase-input":{paddingRight:0}})},{props:{size:"tiny",multiline:!0},style:()=>({padding:0})},{props:e=>!!e.endAdornment&&"tiny"===e.size,style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{"&.MuiSelect-standard":{paddingTop:0,paddingBottom:0},"&.MuiSelect-outlined,&.MuiSelect-filled":{paddingTop:"4px",paddingBottom:"4px"}}})},{props:e=>!!e.endAdornment&&"small"===e.size,style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{paddingTop:"2.5px",paddingBottom:"2.5px"}})},{props:e=>!(!e.endAdornment||"medium"!==e.size&&e.size),style:()=>({"& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select":{paddingTop:"8.5px",paddingBottom:"8.5px"}})}]},MuiPagination:{variants:[{props:{shape:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiPaper:{variants:[{props:{square:!1},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[3]})}]},MuiSelect:{styleOverrides:{nativeInput:()=>({".MuiInputBase-root.Mui-disabled &":{backgroundColor:"initial",opacity:0}})},variants:[{props:{size:"tiny"},style:()=>({"& .MuiSelect-icon":{fontSize:kl,right:"9px"},"& .MuiSelect-select.MuiSelect-outlined, & .MuiSelect-select.MuiSelect-filled":{minHeight:Ma},"& .MuiSelect-select.MuiSelect-standard":{lineHeight:Ra,minHeight:Ra}})}]},MuiSkeleton:{variants:[{props:{variant:"rounded"},style:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}]},MuiSnackbarContent:{defaultProps:{},styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})}},MuiStepConnector:{styleOverrides:{root:({theme:e})=>({"& .MuiStepConnector-line":{borderColor:e.palette.divider}})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({"&:not(.Mui-active) .MuiStepIcon-text":{fill:e.palette.common.white}})}},MuiStepLabel:{styleOverrides:{root:()=>({alignItems:"flex-start"})}},MuiStepper:{styleOverrides:{root:()=>({"& .MuiStepLabel-root":{alignItems:"center"}})}},MuiSvgIcon:{variants:[{props:{fontSize:"tiny"},style:()=>({fontSize:"1rem"})}]},MuiTab:{styleOverrides:{root:{"&:not(.Mui-selected)":{fontWeight:400},"&.Mui-selected":{fontWeight:700}}},variants:[{props:{size:"small"},style:({theme:e})=>({fontSize:Cl,lineHeight:1.6,padding:e.spacing(.75,1),minWidth:72,"&:not(.MuiTab-labelIcon)":{minHeight:32},"&.MuiTab-labelIcon":{minHeight:32}})}]},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.selected}}})},variants:[{props:e=>"onClick"in e,style:()=>({cursor:"pointer"})}]},MuiTabPanel:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiTabs:{styleOverrides:{indicator:{height:"3px"}},variants:[{props:{size:"small"},style:({theme:e})=>({minHeight:32,"& .MuiTab-root":{fontSize:Cl,lineHeight:1.6,padding:e.spacing(.75,1),minWidth:72,"&:not(.MuiTab-labelIcon)":{minHeight:32},"&.MuiTab-labelIcon":{minHeight:32}}})}]},MuiTextField:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],"& legend":{transition:"unset"}})},variants:[{props:{size:"tiny",select:!0},style:()=>({"& .MuiSelect-icon":{fontSize:kl,right:"9px"},"& .MuiInputBase-root .MuiSelect-select":{minHeight:"auto"}})}]},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2]})},variants:[{props:{color:"primary"},style:({theme:e})=>({"&.MuiToggleButton-root.Mui-selected":{color:e.palette.primary.__unstableAccessibleMain}})},{props:{color:"global"},style:({theme:e})=>({"&.MuiToggleButton-root.Mui-selected":{color:e.palette.global.__unstableAccessibleMain}})},{props:{size:"tiny"},style:({theme:e})=>({fontSize:Ea,lineHeight:1.3334,padding:e.spacing(.625)})}]},MuiTooltip:{styleOverrides:{arrow:({theme:e})=>({color:e.palette.grey[700]}),tooltip:({theme:e})=>({backgroundColor:e.palette.grey[700],borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]})}}};const El={components:Ol,shape:{borderRadius:4,__unstableBorderRadiusMultipliers:Ta},typography:{display1:{fontSize:"0rem"},display2:{fontSize:"0rem"},display3:{fontSize:"0rem"},display4:{fontSize:"0rem"},display5:{fontSize:"0rem"},display6:{fontSize:"0rem"},button:{textTransform:"none"},h1:{fontWeight:700},h2:{fontWeight:700},h3:{fontSize:"2.75rem",fontWeight:700},h4:{fontSize:"2rem",fontWeight:700},h5:{fontWeight:700},subtitle1:{fontWeight:500,lineHeight:1.3},subtitle2:{lineHeight:1.3}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},Rl={...El,palette:{mode:"light",primary:{main:Ya,light:Xa,dark:Ja,contrastText:Za,[ka]:"#C00BB9",[Ca]:"#D355CE",[Oa]:{disabled:fi(Ya,.38)}},secondary:{main:Ha,light:qa,dark:Ga,contrastText:$a,[Oa]:{disabled:fi(Ha,.38)}},grey:{50:Ba,100:za,200:Ua,300:Va,400:Wa,500:qa,600:Ha,700:Ga,800:Ka,900:Za},text:{primary:Za,secondary:Ga,tertiary:qa,disabled:Va},background:{paper:$a,default:$a},success:{main:cl,light:ll,dark:ul,contrastText:$a,[Oa]:{disabled:fi(cl,.38)}},error:{main:el,light:Qa,dark:tl,contrastText:$a,[Oa]:{disabled:fi(el,.38)}},warning:{main:nl,light:"#d97706",dark:ol,contrastText:$a,[Oa]:{disabled:fi(nl,.38)}},info:{main:sl,light:il,dark:al,contrastText:$a,[Oa]:{disabled:fi(sl,.38)}},global:{main:dl,light:pl,dark:hl,contrastText:Za,[ka]:"#17929B",[Ca]:"#5DB3B9",[Oa]:{disabled:fi(dl,.38)}},accent:{main:ml,light:fl,dark:gl,contrastText:$a},promotion:{main:ml,light:fl,dark:gl,contrastText:$a,[Oa]:{disabled:fi(ml,.38)}},decorative:{main:dl,light:pl,dark:hl,contrastText:Za,[Oa]:{disabled:fi(dl,.38)}},neutral:{main:"#ffffff",light:"#ffffff",dark:"#ffffff",contrastText:"#ffffff"}}},Ml={...El,palette:{mode:"dark",primary:{main:Ya,light:Xa,dark:Ja,contrastText:Za,[ka]:"#C00BB9",[Ca]:"#D355CE",[Oa]:{disabled:fi(Ya,.38)}},secondary:{main:Va,light:Ua,dark:Wa,contrastText:Za,[Oa]:{disabled:fi(Va,.38)}},grey:{50:Ba,100:za,200:Ua,300:Va,400:Wa,500:qa,600:Ha,700:Ga,800:Ka,900:Za},text:{primary:$a,secondary:Ua,tertiary:Va,disabled:Ha},background:{paper:Za,default:Ka},success:{main:cl,light:ll,dark:ul,contrastText:$a,[Oa]:{disabled:fi(cl,.38)}},error:{main:el,light:Qa,dark:tl,contrastText:$a,[Oa]:{disabled:fi(el,.38)}},warning:{main:rl,light:"#fbbf24",dark:ol,contrastText:"#000000",[Oa]:{disabled:fi(rl,.38)}},info:{main:sl,light:il,dark:al,contrastText:$a,[Oa]:{disabled:fi(sl,.38)}},global:{main:dl,light:pl,dark:hl,contrastText:Za,[ka]:"#17929B",[Ca]:"#5DB3B9",[Oa]:{disabled:fi(dl,.38)}},accent:{main:ml,light:fl,dark:gl,contrastText:$a},promotion:{main:ml,light:fl,dark:gl,contrastText:$a,[Oa]:{disabled:fi(ml,.38)}},decorative:{main:dl,light:pl,dark:hl,contrastText:Za,[Oa]:{disabled:fi(dl,.38)}},neutral:{main:"#ffffff",light:"#ffffff",dark:"#ffffff",contrastText:"#ffffff"}}},Il="#524CFF";var Al={primary:{main:Il,light:"#6B65FF",dark:"#4C43E5",contrastText:"#FFFFFF",[ka]:"#524CFF",[Ca]:"#6B65FF",[Oa]:{disabled:fi(Il,.38)}},action:{selected:fi(Il,.08)}};const Tl=Ka,Pl=Ga;var Ll={primary:{main:Tl,light:Pl,dark:Za,contrastText:"#FFFFFF",[ka]:Tl,[Ca]:Pl,[Oa]:{disabled:fi(Tl,.38)}},accent:{main:Ya,light:Xa,dark:Ja,contrastText:Za}};const jl=Ba,Nl="#FFFFFF";var Fl={primary:{main:jl,light:Nl,dark:za,contrastText:Za,[ka]:jl,[Ca]:Nl,[Oa]:{disabled:fi(jl,.38)}},accent:{main:Ya,light:Xa,dark:Ja,contrastText:Za}};const Dl=Ka,$l=Ga;var Bl={primary:{main:Dl,light:$l,dark:Za,contrastText:"#FFFFFF",[ka]:Dl,[Ca]:$l,[Oa]:{disabled:fi(Dl,.38)}},accent:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},decorative:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},neutral:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"}};const zl=Ba,Ul="#FFFFFF";var Vl={primary:{main:zl,light:Ul,dark:za,contrastText:Za,[ka]:zl,[Ca]:Ul,[Oa]:{disabled:fi(zl,.38)}},accent:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},decorative:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"},neutral:{main:"#f00",light:"#f00",dark:"#f00",contrastText:"#f00"}};const Wl=(0,o.createContext)(null),ql=({value:e,children:t})=>o.createElement(Wl.Provider,{value:e},t),Hl={zIndex:El.zIndex},Gl=["variants"];function Kl(e,t,r){const n=Hn(e,t,{clone:!0});if("replace"===r)return n;const o=t,i=e,s=n;for(const e of Object.keys(o)){const t=o[e],r=i[e],n=s[e];if(t&&n)for(const e of Gl){const o=t[e];if(!Array.isArray(o))continue;const i=r?.[e],s=Array.isArray(i)?i:[];n[e]=[...s,...o]}}return n}const Zl=!0;function Xl(e){return e?Yl(e,{primary:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],secondary:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],success:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],info:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],warning:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],error:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],background:["default","paper","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent"],decorative:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],accent:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],neutral:["main","light","dark","contrastText","__unstableAccessibleMain","__unstableAccessibleLight","__unstableTonalMain","__unstableTonalDark","__unstableSurface","__unstableSurfaceMain","__unstableSurfaceLight","__unstableSurfaceDark","__unstableSurfaceTranslucent","__unstableStates"],text:["primary","secondary","tertiary","disabled"],action:["active","focus","hover","disabled","disabledBackground","selected","__unstableGradientAngle"],divider:Zl}):{}}function Yl(e,t){if(!e||!t)return{};const r={};return Object.entries(t).forEach(([t,n])=>{if(e[t])if("boolean"!=typeof n){if(Array.isArray(n)){const o=e[t];n.forEach(e=>{void 0!==o?.[e]&&(r[t]={...r[t],[e]:o[e]})})}}else r[t]=e[t]}),r}const Jl=new Map,Ql=Je(({colorScheme:e,palette:t,children:r,overrides:n,unstableThemeV0:s},a)=>{const l=(0,o.useContext)(Wl),c=a.key===Aa,u=e||l?.colorScheme||"auto",p=ui("(prefers-color-scheme: dark)"),d="auto"===u&&p||"dark"===u,h=function(e,t){if(!e)return t;if("function"!=typeof e)return console.error("overrides must be a function"),t;const r=e(structuredClone(t||Hl));return r&&"object"==typeof r?r:(console.error("overrides function must return an object"),t)}(n,l?.overrides),f=s?.name||t||l?.themeName,m=s||l?.customTheme;let g=m?((e,t=!1,r=!1)=>{if(!e.name)throw new Error("Custom theme must have a name");const n=`${e.name}-${t}-${r}`;if(Jl.has(n))return Jl.get(n);const o={typography:{subtitle1:{fontWeight:500,lineHeight:1.3},subtitle2:{lineHeight:1.3}}};r&&(o.direction="rtl");const i=function(e,t){const{options:r,components:n,palette:o,shadows:i,shape:s,typography:a,zIndex:l}=e,c={components:n?Kl(Ol,n,r?.componentVariantsMerge??"concat"):Ol};return t&&o?.dark?c.palette={...Ml.palette,...Xl(o.dark),mode:"dark"}:o?.light&&(c.palette={...Rl.palette,...Xl(o.light)}),i&&(c.shadows=i),s&&(c.shape=s),a&&(c.typography=function(e={}){return e?Yl(e,{fontFamily:Zl,display1:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display2:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display3:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display4:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display5:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],display6:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h1:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h2:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h3:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h4:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h5:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],h6:["fontFamily","fontSize","fontWeight","lineHeight","letterSpacing"],subtitle1:["fontFamily"],subtitle2:["fontFamily"],body1:["fontFamily"],body2:["fontFamily"],caption:["fontFamily"],overline:["fontFamily"],button:["fontFamily","textTransform"]}):{}}(a)),l&&(c.zIndex=l),c}(e,t),s=La(i,o);return Jl.set(n,s),s})(m,d,c):(({palette:e="default",rtl:t=!1,isDarkMode:r=!1}={})=>{const n=`${e}-${r}-${t}`;if(Jl.has(n))return Jl.get(n);const o=r?Ml:Rl,i={};"marketing-suite"===e&&(i.palette=Al),"unstable"===e&&(i.palette=r?Fl:Ll,i.shape={borderRadius:8,__unstableBorderRadiusMultipliers:[0,.5,1,1.5,2.5]}),"argon-beta"===e&&(i.palette=r?Vl:Bl,i.shape={borderRadius:8,__unstableBorderRadiusMultipliers:[0,.5,1,1.5,2.5]}),t&&(i.direction="rtl");const s=La(o,i);return Jl.set(n,s),s})({rtl:c,isDarkMode:d,palette:t||l?.themeName});return h&&(g=((e,t)=>{if(!t)return e;const r={};return["zIndex"].forEach(e=>{e in t&&(r[e]=t[e])}),Hn(e,r,{clone:!0})})(g,h)),i().createElement(ql,{value:{colorScheme:e,themeName:f,overrides:h,customTheme:m}},i().createElement(ys,{theme:g},r))}),ec=["primary","secondary"],tc=Da(_a)(({theme:e,ownerState:t})=>{const{color:r}=t,n=((e,t)=>{if(!t||"default"===t)return e.palette.action.active;if("inherit"===t)return e.palette.text.primary;const r=e.palette[t];return r?.main??e.palette.action.active})(e,r),o=fi(n,.04),i=((e,t)=>{if(!t||"default"===t||"inherit"===t)return e.palette.action.disabled;const r=e.palette[t];return r?.[Oa]?.disabled??e.palette.action.disabled})(e,r);return{variants:[{props:e=>!e.ownerState?.variant||"ghost"===e.ownerState.variant,style:{"&:hover":{backgroundColor:o},"&.Mui-disabled":{color:i}}},{props:e=>((e,t)=>"outlined"===e||"filled"===e&&ec.some(e=>e===t))(e.ownerState?.variant,e.ownerState?.color),style:{"&& .MuiTouchRipple-root .MuiTouchRipple-ripple .MuiTouchRipple-child":{borderRadius:`${e.shape.borderRadius}px`}}},{props:e=>"outlined"===e.ownerState?.variant,style:{borderRadius:`${e.shape.borderRadius}px`,border:"1px solid",borderColor:e.palette.divider,"&:hover":{backgroundColor:o},"&.Mui-disabled":{color:i}}},{props:e=>"filled"===e.ownerState?.variant&&"primary"===e.ownerState?.color,style:{borderRadius:`${e.shape.borderRadius}px`,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark},"&.Mui-disabled":{backgroundColor:i,color:fi(e.palette.primary.contrastText,.38)}}},{props:e=>"filled"===e.ownerState?.variant&&"secondary"===e.ownerState?.color,style:{borderRadius:`${e.shape.borderRadius}px`,backgroundColor:fi(e.palette.secondary.main,.08),"&:hover":{backgroundColor:fi(e.palette.secondary.main,.12)},"&.Mui-disabled":{backgroundColor:fi(e.palette.secondary.main,.04),color:i}}}]}}),rc=i().forwardRef((e,t)=>{const{sx:r={},color:n,variant:o="ghost",...s}=e,a="filled"===o&&!ec.some(e=>e===n),l=a?"ghost":o,c=s.href?Sa:"&:hover,&:focus,&:active",u="filled"===l&&"primary"===n?"primary.contrastText":((e="default")=>"inherit"===e?"inherit":"default"===e?"action.active":bl.includes(e)?`${e}.${ka}`:`${e}.main`)(n),p={color:u,[c]:{color:u}},d={...e,variant:l,color:n};return i().createElement(tc,{...s,ownerState:d,sx:{...p,...r},ref:t})});rc.displayName="IconButton";var nc=rc;function oc(e){return Xn("MuiSvgIcon",e)}Fi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ic=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],sc=To("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Bo(r.color)}`],t[`fontSize${Bo(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,a,l,c,u,p,d,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?p:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}}),ac=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:u="svg",fontSize:p="medium",htmlColor:d,inheritViewBox:h=!1,titleAccess:f,viewBox:m="0 0 24 24"}=r,g=l(r,ic),v=o.isValidElement(i)&&"svg"===i.type,y=c({},r,{color:a,component:u,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:v}),b={};h||(b.viewBox=m);const _=(e=>{const{color:t,fontSize:r,classes:n}=e;return x({root:["root","inherit"!==t&&`color${Bo(t)}`,`fontSize${Bo(r)}`]},oc,n)})(y);return(0,n.jsxs)(sc,c({as:u,className:w(_.root,s),focusable:"false",color:d,"aria-hidden":!f||void 0,role:f?"img":void 0,ref:t},b,g,v&&i.props,{ownerState:y,children:[v?i.props.children:i,f?(0,n.jsx)("title",{children:f}):null]}))});ac.muiName="SvgIcon";const lc=ac;var cc=i().forwardRef((e,t)=>i().createElement(lc,{...e,ref:t})),uc=o.forwardRef((e,t)=>o.createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V4C12.75 4.41421 12.4142 4.75 12 4.75C11.5858 4.75 11.25 4.41421 11.25 4V3C11.25 2.58579 11.5858 2.25 12 2.25ZM5.06967 5.06967C5.36256 4.77678 5.83744 4.77678 6.13033 5.06967L6.83033 5.76967C7.12322 6.06256 7.12322 6.53744 6.83033 6.83033C6.53744 7.12322 6.06256 7.12322 5.76967 6.83033L5.06967 6.13033C4.77678 5.83744 4.77678 5.36256 5.06967 5.06967ZM18.9303 5.06967C19.2232 5.36256 19.2232 5.83744 18.9303 6.13033L18.2303 6.83033C17.9374 7.12322 17.4626 7.12322 17.1697 6.83033C16.8768 6.53744 16.8768 6.06256 17.1697 5.76967L17.8697 5.06967C18.1626 4.77678 18.6374 4.77678 18.9303 5.06967ZM12 7.75C11.108 7.75 10.2386 8.03066 9.51498 8.55222C8.79135 9.07378 8.25017 9.80981 7.9681 10.656C7.68602 11.5023 7.67735 12.4158 7.94332 13.2672C8.20928 14.1186 8.7364 14.8648 9.45 15.4C9.47737 15.4205 9.50331 15.4429 9.52763 15.467C9.76639 15.7033 9.97545 15.9663 10.1511 16.25H13.8489C14.0246 15.9663 14.2336 15.7033 14.4724 15.467C14.4967 15.4429 14.5226 15.4205 14.55 15.4C15.2636 14.8648 15.7907 14.1186 16.0567 13.2672C16.3226 12.4158 16.314 11.5023 16.0319 10.656C15.7498 9.80981 15.2086 9.07378 14.485 8.55222C13.7614 8.03066 12.892 7.75 12 7.75ZM14.9408 17.3899C14.9685 17.3444 14.9916 17.2956 15.0092 17.2444C15.1354 16.9955 15.2989 16.7666 15.4949 16.566C16.4376 15.8445 17.1342 14.8485 17.4885 13.7145C17.8483 12.5625 17.8366 11.3266 17.4549 10.1817C17.0733 9.0368 16.3411 8.041 15.3621 7.33536C14.3831 6.62971 13.2068 6.25 12 6.25C10.7932 6.25 9.61694 6.62971 8.63792 7.33536C7.65889 8.041 6.9267 9.0368 6.54507 10.1817C6.16344 11.3266 6.15171 12.5625 6.51155 13.7145C6.86579 14.8485 7.56245 15.8445 8.50515 16.566C8.7009 16.7665 8.86438 16.9951 8.99046 17.2438C9.00821 17.2954 9.03145 17.3446 9.05947 17.3905C9.0918 17.4648 9.12088 17.5406 9.14662 17.6178C9.28311 18.0273 9.3213 18.4632 9.25809 18.8902C9.2527 18.9265 9.25 18.9632 9.25 19C9.25 19.7293 9.53973 20.4288 10.0555 20.9445C10.5712 21.4603 11.2707 21.75 12 21.75C12.7293 21.75 13.4288 21.4603 13.9445 20.9445C14.4603 20.4288 14.75 19.7293 14.75 19C14.75 18.9632 14.7473 18.9265 14.7419 18.8902C14.6787 18.4632 14.7169 18.0273 14.8534 17.6178C14.8792 17.5404 14.9083 17.4644 14.9408 17.3899ZM13.2767 17.75H10.7233C10.7985 18.177 10.8081 18.6141 10.7509 19.0461C10.7625 19.3609 10.8926 19.6604 11.1161 19.8839C11.3505 20.1183 11.6685 20.25 12 20.25C12.3315 20.25 12.6495 20.1183 12.8839 19.8839C13.1074 19.6604 13.2375 19.3609 13.2491 19.0461C13.1919 18.6141 13.2015 18.177 13.2767 17.75ZM2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H4C4.41421 11.25 4.75 11.5858 4.75 12C4.75 12.4142 4.41421 12.75 4 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12ZM19.25 12C19.25 11.5858 19.5858 11.25 20 11.25H21C21.4142 11.25 21.75 11.5858 21.75 12C21.75 12.4142 21.4142 12.75 21 12.75H20C19.5858 12.75 19.25 12.4142 19.25 12Z"}))),pc=o.forwardRef((e,t)=>o.createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{d:"M11.75 15.75C12.3023 15.75 12.75 16.1977 12.75 16.75V16.7598C12.75 17.3121 12.3023 17.7598 11.75 17.7598C11.1977 17.7598 10.75 17.3121 10.75 16.7598V16.75C10.75 16.1977 11.1977 15.75 11.75 15.75Z"}),o.createElement("path",{d:"M11.1846 5.80957C11.8554 5.67269 12.5519 5.7716 13.1592 6.08887L13.1611 6.09082C13.7668 6.41042 14.2478 6.92595 14.5283 7.55273C14.8087 8.17938 14.8742 8.88338 14.7158 9.55176C14.5574 10.2202 14.1831 10.8182 13.6494 11.248C13.3136 11.5185 12.9265 11.7121 12.5156 11.8193V13.5C12.5156 13.9142 12.1798 14.25 11.7656 14.25C11.3516 14.2498 11.0156 13.9141 11.0156 13.5V11.167C11.0156 10.7537 11.3504 10.4183 11.7637 10.417C12.1047 10.4159 12.4371 10.2973 12.708 10.0791C12.9791 9.86074 13.1733 9.55417 13.2559 9.20605C13.3384 8.85764 13.3036 8.49103 13.1582 8.16602C13.0131 7.84167 12.7675 7.57909 12.4629 7.41797C12.1603 7.26033 11.8157 7.21168 11.4844 7.2793C11.1523 7.34706 10.8495 7.52873 10.627 7.79688C10.3624 8.11534 9.88993 8.15896 9.57129 7.89453C9.25265 7.63007 9.20839 7.1576 9.47266 6.83887C9.91082 6.31093 10.5138 5.94644 11.1846 5.80957Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM11.75 3.5C7.19365 3.5 3.5 7.19365 3.5 11.75C3.5 16.3063 7.19365 20 11.75 20C16.3063 20 20 16.3063 20 11.75C20 7.19365 16.3063 3.5 11.75 3.5Z"})));function dc(e){return Xn("MuiDivider",e)}const hc=Fi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mc=To("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>c({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ro.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>c({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>c({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>c({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>c({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),gc=To("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>c({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),vc=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=(i?"div":"hr"),flexItem:u=!1,light:p=!1,orientation:d="horizontal",role:h=("hr"!==a?"separator":void 0),textAlign:f="center",variant:m="fullWidth"}=r,g=l(r,fc),v=c({},r,{absolute:o,component:a,flexItem:u,light:p,orientation:d,role:h,textAlign:f,variant:m}),y=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return x({root:["root",t&&"absolute",l,i&&"light","vertical"===s&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},dc,n)})(v);return(0,n.jsx)(mc,c({as:a,className:w(y.root,s),role:h,ref:t,ownerState:v},g,{children:i?(0,n.jsx)(gc,{className:y.wrapper,ownerState:v,children:i}):null}))});vc.muiSkipListHighlight=!0;const yc=vc;var bc=i().forwardRef((e,t)=>i().createElement(yc,{...e,ref:t})),wc=o.forwardRef((e,t)=>o.createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.75C10.2051 3.75 8.75 5.20507 8.75 7C8.75 8.79493 10.2051 10.25 12 10.25C13.7949 10.25 15.25 8.79493 15.25 7C15.25 5.20507 13.7949 3.75 12 3.75ZM7.25 7C7.25 4.37665 9.37665 2.25 12 2.25C14.6234 2.25 16.75 4.37665 16.75 7C16.75 9.62335 14.6234 11.75 12 11.75C9.37665 11.75 7.25 9.62335 7.25 7ZM10 15.75C9.13805 15.75 8.3114 16.0924 7.7019 16.7019C7.09241 17.3114 6.75 18.138 6.75 19V21C6.75 21.4142 6.41421 21.75 6 21.75C5.58579 21.75 5.25 21.4142 5.25 21V19C5.25 17.7402 5.75044 16.532 6.64124 15.6412C7.53204 14.7504 8.74022 14.25 10 14.25H14C15.2598 14.25 16.468 14.7504 17.3588 15.6412C18.2496 16.532 18.75 17.7402 18.75 19V21C18.75 21.4142 18.4142 21.75 18 21.75C17.5858 21.75 17.25 21.4142 17.25 21V19C17.25 18.138 16.9076 17.3114 16.2981 16.7019C15.6886 16.0924 14.862 15.75 14 15.75H10Z"})));function xc(e,t){const r=c({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=c({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=c({},i),Object.keys(o).forEach(e=>{r[n][e]=xc(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}function _c(e){return Xn("MuiButton",e)}const Sc=Fi("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"]),kc=o.createContext({}),Cc=o.createContext(void 0),Oc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ec=e=>c({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Rc=To(ga,{shouldForwardProp:e=>Ao(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Bo(r.color)}`],t[`size${Bo(r.size)}`],t[`${r.variant}Size${Bo(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return c({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":c({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ro.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ro.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ro.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":c({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sc.focusVisible}`]:c({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sc.disabled}`]:c({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ro.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sc.disabled}`]:{boxShadow:"none"}}),Mc=To("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Bo(r.size)}`]]}})(({ownerState:e})=>c({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ec(e))),Ic=To("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Bo(r.size)}`]]}})(({ownerState:e})=>c({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ec(e))),Ac=o.forwardRef(function(e,t){const r=o.useContext(kc),i=o.useContext(Cc),s=$o({props:xc(r,e),name:"MuiButton"}),{children:a,color:u="primary",component:p="button",className:d,disabled:h=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:v,fullWidth:y=!1,size:b="medium",startIcon:_,type:S,variant:k="text"}=s,C=l(s,Oc),O=c({},s,{color:u,component:p,disabled:h,disableElevation:f,disableFocusRipple:m,fullWidth:y,size:b,type:S,variant:k}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:s}=e;return c({},s,x({root:["root",i,`${i}${Bo(t)}`,`size${Bo(o)}`,`${i}Size${Bo(o)}`,`color${Bo(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Bo(o)}`],endIcon:["icon","endIcon",`iconSize${Bo(o)}`]},_c,s))})(O),R=_&&(0,n.jsx)(Mc,{className:E.startIcon,ownerState:O,children:_}),M=g&&(0,n.jsx)(Ic,{className:E.endIcon,ownerState:O,children:g}),I=i||"";return(0,n.jsxs)(Rc,c({ownerState:O,className:w(r.className,E.root,d,I),component:p,disabled:h,focusRipple:!m,focusVisibleClassName:w(E.focusVisible,v),ref:t,type:S},C,{classes:E,children:[R,a,M]}))}),Tc=Ac;function Pc(e){return Xn("MuiCircularProgress",e)}Fi("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Lc=["className","color","disableShrink","size","style","thickness","value","variant"];let jc,Nc,Fc,Dc,$c=e=>e;const Bc=rt(jc||(jc=$c` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `)),zc=rt(Nc||(Nc=$c` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `)),Uc=To("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Bo(r.color)}`]]}})(({ownerState:e,theme:t})=>c({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>"indeterminate"===e.variant&&tt(Fc||(Fc=$c` animation: ${0} 1.4s linear infinite; `),Bc)),Vc=To("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Wc=To("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Bo(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>c({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&tt(Dc||(Dc=$c` animation: ${0} 1.4s ease-in-out infinite; `),zc)),qc=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:u,thickness:p=3.6,value:d=0,variant:h="indeterminate"}=r,f=l(r,Lc),m=c({},r,{color:i,disableShrink:s,size:a,thickness:p,value:d,variant:h}),g=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e;return x({root:["root",r,`color${Bo(n)}`],svg:["svg"],circle:["circle",`circle${Bo(r)}`,o&&"circleDisableShrink"]},Pc,t)})(m),v={},y={},b={};if("determinate"===h){const e=2*Math.PI*((44-p)/2);v.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return(0,n.jsx)(Uc,c({className:w(g.root,o),style:c({width:a,height:a},y,u),ownerState:m,ref:t,role:"progressbar"},b,f,{children:(0,n.jsx)(Vc,{className:g.svg,ownerState:m,viewBox:"22 22 44 44",children:(0,n.jsx)(Wc,{className:g.circle,style:v,ownerState:m,cx:44,cy:44,r:(44-p)/2,fill:"none",strokeWidth:p})})}))}),Hc=qc,Gc={color:"inherit",size:"1em"},Kc=i().forwardRef((e,t)=>i().createElement(Hc,{...Gc,...e,ref:t}));Kc.defaultProps=Gc;var Zc=Kc;const Xc="rgba(0, 0, 0, 0.04)",Yc="rgba(0, 0, 0, 0.08)",Jc=Da(Tc)(({theme:e,ownerState:t})=>{const{color:r,unstableToColor:n,unstableGradientAngle:o}=t,i=r&&"inherit"!==r?r:"primary",s=!!e.palette[i]?.__unstableTonalMain,a=({variant:e})=>"unstableTonal"===e&&s,l=({variant:e})=>!!e&&!["contained","outlined","text"].includes(e);return{variants:[{props:()=>t.loading&&"center"===t.loadingPosition,style:{"&.MuiButtonBase-root":{"&, &:hover, &:focus, &:active":{color:"transparent"}},"& .MuiButton-loadingWrapper":{display:"contents","& .MuiButton-loadingIndicator":{display:"flex",position:"absolute",left:"50%",transform:"translateX(-50%)",color:e.palette.action.disabled}}}},{props:e=>a(e)&&"inherit"!==e.color&&!e.disabled,style:{background:e.palette[i]?.__unstableTonalMain,color:e.palette[i].main,"&:hover":{backgroundColor:e.palette[i]?.__unstableTonalDark}}},{props:e=>e.disabled&&l(e),style:{background:e.palette.action.disabledBackground,color:e.palette.action.disabled}},{props:e=>a(e)&&"inherit"===e.color,style:{background:Xc,color:"inherit","&:hover":{backgroundColor:Yc}}},{props:e=>"unstableTonal"===e.variant&&!s,style:{background:"#ff0000",color:"#ff0000"}},{props:e=>"small"===e.size&&l(e),style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:e=>"large"===e.size&&l(e),style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:e=>(({variant:e})=>"unstableGradient"===e&&s)(e)&&!e.disabled,style:ou(e,o,r,n)},{props:e=>"unstableGradient"===e.variant&&!s,style:{background:"#ff0000",color:"#ff0000"}}]}}),Qc=(e="primary",t="text",r)=>{if(e)return"inherit"===e?"inherit":"contained"===t?`${e}.contrastText`:"unstableTonal"===t?`${e}.main`:r.palette.primary.__unstableAccessibleMain&&bl.includes(e)?`${e}.${ka}`:`${e}.main`},eu={loading:!1,loadingIndicator:i().createElement(Zc,{color:"inherit",size:16}),loadingPosition:"center"},tu=i().forwardRef((e,t)=>{const r={...eu,...e},n=i().useContext(kc),o=Ni(),{sx:s={},unstableToColor:a,unstableGradientAngle:l,...c}=function(e){const{loading:t,loadingPosition:r,loadingIndicator:n,...o}=e;if(!t)return o;switch(r){case"start":o.startIcon=n;break;case"end":o.endIcon=n;break;case"center":o.children=i().createElement(nu,{loadingIndicator:n},e.children)}return{...o,disabled:!0}}(r),u={...c,loading:r.loading,loadingPosition:r.loadingPosition,loadingIndicator:r.loadingIndicator,unstableToColor:a,unstableGradientAngle:l};let p={};const d=c.href?Sa:"&:hover,&:focus,&:active",h=c.color||n?.color,f=c.variant||n?.variant;return p={[d]:{color:Qc(h,f,o)}},i().createElement(Jc,{...c,color:h,variant:f,sx:{...p,...s},ref:t,ownerState:u})});var ru=tu;function nu({loadingIndicator:e,children:t}){return i().createElement(i().Fragment,null,i().createElement("div",{className:"MuiButton-loadingWrapper"},i().createElement("div",{className:"MuiButton-loadingIndicator"},e)),t)}function ou(e,t,r,n){if(!r)return;const o=r,i=function(e,t){if(void 0!==t)return t;const{__unstableGradientAngle:r}=e.palette.action;return void 0!==r?r:125}(e,t);let{main:s,__unstableTonalMain:a,__unstableTonalDark:l}=e.palette[o]||{};"inherit"===r&&(s="inherit",a=Xc,l=Yc);const c=[a],u=[l];if(n){const t=n,{__unstableTonalMain:r,__unstableTonalDark:o}=e.palette[t];c.push(r),u.push(o)}return{color:s,backgroundImage:`linear-gradient( ${i}deg, ${c.join(", ")} )`,"&:hover":{backgroundImage:`linear-gradient( ${i}deg, ${u.join(",")} )`}}}tu.defaultProps=eu;const iu=e=>"string"==typeof e,su=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},au=e=>null==e?"":""+e,lu=/###/g,cu=e=>e&&e.indexOf("###")>-1?e.replace(lu,"."):e,uu=e=>!e||iu(e),pu=(e,t,r)=>{const n=iu(t)?t.split("."):t;let o=0;for(;o{const{obj:n,k:o}=pu(e,t,Object);if(void 0!==n||1===t.length)return void(n[o]=r);let i=t[t.length-1],s=t.slice(0,t.length-1),a=pu(e,s,Object);for(;void 0===a.obj&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=pu(e,s,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},hu=(e,t)=>{const{obj:r,k:n}=pu(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},fu=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?iu(e[n])||e[n]instanceof String||iu(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):fu(e[n],t[n],r):e[n]=t[n]);return e},mu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var gu={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const vu=e=>iu(e)?e.replace(/[&<>"'\/]/g,e=>gu[e]):e,yu=[" ",",","?","!",";"],bu=new class{getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}}(20),wu=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(r);let o=e;for(let e=0;e-1&&se?.replace(/_/g,"-"),_u={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Su{init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||_u,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(iu(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Su(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Su(this.logger,e)}constructor(e,t={}){this.init(e,t)}}var ku=new Su;class Cu{on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n{for(let o=0;o-1&&this.options.ns.splice(t,1)}getResource(e,t,r,n={}){const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],r&&(Array.isArray(r)?s.push(...r):iu(r)&&o?s.push(...r.split(o)):s.push(r)));const a=hu(this.data,s);return!a&&!t&&!r&&e.indexOf(".")>-1&&(e=s[0],t=s[1],r=s.slice(2).join(".")),!a&&i&&iu(r)?wu(this.data?.[e]?.[t],r,o):a}addResource(e,t,r,n,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let s=[e,t];r&&(s=s.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),du(this.data,s,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(const n in r)(iu(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o,i={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=hu(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?fu(a,r,o):a={...a,...r},du(this.data,s,a),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}}var Eu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,o)??t}),t}};const Ru=Symbol("i18next/PATH_KEY");function Mu(e,t){const{[Ru]:r}=e(function(){const e=[],t=Object.create(null);let r;return t.get=(n,o)=>(r?.revoke?.(),o===Ru?e:(e.push(o),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),n=t?.keySeparator??".",o=t?.nsSeparator??":";if(r.length>1&&o){const e=t?.ns;if((e?Array.isArray(e)?e:[e]:[]).includes(r[0]))return`${r[0]}${o}${r.slice(1).join(n)}`}return r.join(n)}const Iu={},Au=e=>!iu(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Tu extends Cu{changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(null==e)return!1;const n=this.resolve(e,r);if(void 0===n?.res)return!1;const o=Au(n.res);return!1!==r.returnObjects||!o}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=yu.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const o=bu.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n));if(i&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:iu(o)?[o]:o};const i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return{key:e,namespaces:iu(o)?[o]:o}}translate(e,t,r){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=Mu(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1];let c=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return p?o?{res:`${l}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${c}${s}`:o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s;const d=this.resolve(e,n);let h=d?.res;const f=d?.usedKey||s,m=d?.exactUsedKey||s,g=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==n.count&&!iu(n.count),b=Tu.hasDefaultValue(n),w=y?this.pluralResolver.getSuffix(u,n.count,n):"",x=n.ordinal&&y?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=y&&!n.ordinal&&0===n.count,S=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${w}`]||n[`defaultValue${x}`]||n.defaultValue;let k=h;v&&!h&&b&&(k=S);const C=Au(k),O=Object.prototype.toString.apply(k);if(!(v&&k&&C&&["[object Number]","[object Function]","[object RegExp]"].indexOf(O)<0)||iu(g)&&Array.isArray(k))if(v&&iu(g)&&Array.isArray(h))h=h.join(g),h&&(h=this.extendTranslation(h,e,n,r));else{let t=!1,o=!1;!this.isValidLookup(h)&&b&&(t=!0,h=S),this.isValidLookup(h)||(o=!0,h=s);const a=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:h,p=b&&S!==h&&this.options.updateMissing;if(o||t||p){if(this.logger.log(p?"updateKey":"missingKey",u,l,s,p?S:h),i){const e=this.resolve(s,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r{const o=b&&r!==h?r:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,p,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,p,n),this.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],s+t,n[`defaultValue${t}`]||S)})}):r(e,s,S))}h=this.extendTranslation(h,e,n,d,r),o&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${s}`),(o||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${s}`:s,t?h:void 0,n))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(i){const e=Array.isArray(k),t=e?[]:{},r=e?m:f;for(const e in k)if(Object.prototype.hasOwnProperty.call(k,e)){const o=`${r}${i}${e}`;t[e]=b&&!h?this.translate(o,{...n,defaultValue:Au(S)?S[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...n,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=k[e])}h=t}}return o?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(e,t,r,n,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const i=iu(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(i){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let a=r.replace&&!iu(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,r.lng||this.language||n.usedLng,r),i){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}const i=r.postProcess||this.options.postProcess,s=iu(i)?[i]:i;return null!=e&&s?.length&&!1!==r.applyPostProcessor&&(e=Eu.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,o,i,s;return iu(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;const a=this.extractFromKey(e,t),l=a.key;n=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!iu(t.count),p=u&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(iu(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(r)||(s=e,Iu[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(s)||(Iu[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(n=>{if(this.isValidLookup(r))return;i=n;const s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(n,t.count,t));const r=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&0===e.indexOf(o)&&s.push(l+e.replace(o,this.options.pluralSeparator)),s.push(l+e),p&&s.push(l+r)),d){const n=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(n),u&&(t.ordinal&&0===e.indexOf(o)&&s.push(n+e.replace(o,this.options.pluralSeparator)),s.push(n+e),p&&s.push(n+r))}}let a;for(;a=s.pop();)this.isValidLookup(r)||(o=a,r=this.getResource(n,e,a,t))}))})}),{res:r,usedKey:n,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!iu(e.replace);let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}constructor(e,t={}){var r,n;super(),r=e,n=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{r[e]&&(n[e]=r[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ku.create("translator")}}class Pu{getScriptPartFromCode(e){if(!(e=xu(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=xu(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(iu(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),iu(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return iu(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):iu(e)&&o(this.formatLanguageCode(e)),r.forEach(e=>{n.indexOf(e)<0&&o(this.formatLanguageCode(e))}),n}constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ku.create("languageUtils")}}const Lu={zero:0,one:1,two:2,few:3,many:4,other:5},ju={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Nu{clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=xu("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:n})}catch(r){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ju;if(!e.match(/-|_/))return ju;const n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((e,t)=>Lu[e]-Lu[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ku.create("pluralResolver"),this.pluralRulesCache={}}}const Fu=(e,t,r,n=".",o=!0)=>{let i=((e,t,r)=>{const n=hu(e,r);return void 0!==n?n:hu(t,r)})(e,t,r);return!i&&o&&iu(r)&&(i=wu(e,r,n),void 0===i&&(i=wu(t,r,n))),i},Du=e=>e.replace(/\$/g,"$$$$");class $u{init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:d,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:vu,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?mu(o):i||"{{",this.suffix=s?mu(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=p?mu(p):d||mu("$t("),this.nestingSuffix=h?mu(h):f||mu(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,i,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Fu(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),s=o.join(this.formatSeparator).trim();return this.format(Fu(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...t,interpolationkey:i})};this.resetRegExp();const c=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Du(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Du(this.escape(e)):Du(e)}].forEach(t=>{for(s=0;o=t.regex.exec(e);){const r=o[1].trim();if(i=l(r),void 0===i)if("function"==typeof c){const t=c(e,o,n);i=iu(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else iu(i)||this.useRawValueToEscape||(i=au(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,o,i;const s=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${mu(r)}[ ]*{`));let o=`{${n[1]}`;e=n[0],o=this.interpolate(o,i);const s=o.match(/'/g),a=o.match(/"/g);((s?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let a=[];i={...r},i=i.replace&&!iu(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const l=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==l&&(a=n[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,l)),o=t(s.call(this,n[1].trim(),i),i),o&&n[0]===e&&!iu(o))return o;iu(o)||(o=au(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),o=""),a.length&&(o=a.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:n[1].trim()}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}constructor(e={}){this.logger=ku.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}}const Bu=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=n+JSON.stringify(i);let a=t[s];return a||(a=e(xu(n),o),t[s]=a),a(r)}},zu=e=>(t,r,n)=>e(xu(r),n)(t);class Uu{init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?Bu:zu;this.formats={number:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Bu(t)}format(e,t,r,n={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=o),"false"===o&&(r[i]=!1),"true"===o&&(r[i]=!0),isNaN(o)||(r[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[o]){let t=e;try{const s=n?.formatParams?.[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[o](e,a,{...i,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}constructor(e={}){this.logger=ku.create("formatter"),this.options=e,this.init(e)}}class Vu extends Cu{queueLoad(e,t,r,n){const o={},i={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===i[s]&&(i[s]=!0):(this.state[s]=1,n=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){const n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),!t&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const s={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:o}=pu(e,t,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&n{this.read.call(this,e,t,r,n+1,2*o,i)},o):i(s,a)},a=this.backend[r].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();iu(e)&&(e=this.languageUtils.toResolveHierarchy(e)),iu(t)&&(t=[t]);const o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,n,o,i={},s=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=r&&""!==r){if(this.backend?.create){const a={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,r,n,a):l(e,t,r,n),o&&"function"==typeof o.then?o.then(e=>s(null,e)).catch(s):s(null,o)}catch(e){s(e)}else l(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}else this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=ku.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}}const Wu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),iu(e[1])&&(t.defaultValue=e[1]),iu(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qu=e=>(iu(e.ns)&&(e.ns=[e.ns]),iu(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),iu(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Hu=()=>{},Gu="__i18next_supportNoticeShown";class Ku extends Cu{init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(iu(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=Wu();var n;this.options={...r,...this.options,...qu(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(n=this,n?.modules?.backend?.name?.indexOf("Locize")>0||n?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||n?.options?.backend?.backends&&n.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||n?.options?.backend?.projectId||n?.options?.backend?.backendOptions&&n.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[Gu]||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis[Gu]=!0));const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?ku.init(o(this.modules.logger),this.options):ku.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Uu;const t=new Pu(this.options);this.store=new Ou(this.options.resources,this.options);const n=this.services;n.logger=ku,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Nu(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new $u(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Vu(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Tu(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Hu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const i=su(),s=()=>{const e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),i}loadResources(e,t=Hu){let r=t;const n=iu(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){const n=su();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=Hu),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Eu.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=su();this.emit("languageChanging",e);const n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(n(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const r=iu(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(iu(t)?[t]:t);i&&(this.language||n(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}getFixedT(e,t,r){const n=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||n.lng,i.lngs=i.lngs||n.lngs,i.ns=i.ns||n.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||n.keyPrefix);const s=this.options.keySeparator||".";let a;return i.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=Mu(e,{...this.options,...t})),`${i.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=Mu(e,{...this.options,...t})),a=i.keyPrefix?`${i.keyPrefix}${s}${e}`:e),this.t(a,i)};return iu(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,e)||n&&!i(o,e)))}loadNamespaces(e,t){const r=su();return this.options.ns?(iu(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=su();iu(e)&&(e=[e]);const n=this.options.preload||[],o=e.filter(e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new Pu(Wu());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const r=new Ku(e,t);return r.createInstance=Ku.createInstance,r}cloneInstance(e={},t=Hu){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new Ku(n);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{});o.store=new Ou(e,n),o.services.resourceStore=o.store}if(e.interpolation){const t={...Wu().interpolation,...this.options.interpolation,...e.interpolation},r={...n,interpolation:t};o.services.interpolator=new $u(r)}return o.translator=new Tu(o.services,n),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}constructor(e={},t){var r;if(super(),this.options=qu(e),this.services={},this.logger=ku,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}}const Zu=Ku.createInstance(),Xu={},Yu=(e,t,r,n)=>{tp(r)&&Xu[r]||(tp(r)&&(Xu[r]=new Date),((e,t,r,n)=>{const o=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);tp(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)})(e,t,r,n))},Ju=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},Qu=(e,t,r)=>{e.loadNamespaces(t,Ju(e,r))},ep=(e,t,r,n)=>{if(tp(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Qu(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Ju(e,n))},tp=e=>"string"==typeof e,rp=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,np={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},op=e=>np[e];let ip,sp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(rp,op),transDefaultProps:void 0};const ap={type:"3rdParty",init(e){((e={})=>{sp={...sp,...e}})(e.options.react),(e=>{ip=e})(e)}},lp=(0,o.createContext)();class cp{addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}constructor(){this.usedNamespaces={}}}var up,pp,dp={exports:{}},hp={},fp=(pp||(pp=1,dp.exports=function(){if(up)return hp;up=1;var e=i(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,n=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(e){var r=e.getSnapshot;e=e.value;try{var n=r();return!t(e,n)}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=r({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]),n(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),s(i),i};return hp.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,hp}()),dp.exports);const mp={t:(e,t)=>{return tp(t)?t:"object"==typeof(r=t)&&null!==r&&tp(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var r},ready:!1},gp=()=>()=>{},vp=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:i}=(0,o.useContext)(lp)||{},s=r||n||ip;s&&!s.reportNamespaces&&(s.reportNamespaces=new cp),s||Yu(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=(0,o.useMemo)(()=>({...sp,...s?.options?.react,...t}),[s,t]),{useSuspense:l,keyPrefix:c}=a,u=e||i||s?.options?.defaultNS,p=tp(u)?[u]:u||["translation"],d=(0,o.useMemo)(()=>p,p);s?.reportNamespaces?.addUsedNamespaces?.(d);const h=(0,o.useRef)(0),f=(0,o.useCallback)(e=>{if(!s)return gp;const{bindI18n:t,bindI18nStore:r}=a,n=()=>{h.current+=1,e()};return t&&s.on(t,n),r&&s.store.on(r,n),()=>{t&&t.split(" ").forEach(e=>s.off(e,n)),r&&r.split(" ").forEach(e=>s.store.off(e,n))}},[s,a]),m=(0,o.useRef)(),g=(0,o.useCallback)(()=>{if(!s)return mp;const e=!(!s.isInitialized&&!s.initializedStoreOnce)&&d.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(Yu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,s,a)),r=t.lng||s.language,n=h.current,o=m.current;if(o&&o.ready===e&&o.lng===r&&o.keyPrefix===c&&o.revision===n)return o;const i={t:s.getFixedT(r,"fallback"===a.nsMode?d:d[0],c),ready:e,lng:r,keyPrefix:c,revision:n};return m.current=i,i},[s,d,c,a,t.lng]),[v,y]=(0,o.useState)(0),{t:b,ready:w}=fp.useSyncExternalStore(f,g,g);(0,o.useEffect)(()=>{if(s&&!w&&!l){const e=()=>y(e=>e+1);t.lng?ep(s,t.lng,d,e):Qu(s,d,e)}},[s,t.lng,d,w,l,v]);const x=s||{},_=(0,o.useRef)(null),S=(0,o.useRef)(),k=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const r=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(r,"__original"))try{Object.defineProperty(r,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return r},C=(0,o.useMemo)(()=>{const e=x,t=e?.language;let r=e;e&&(_.current&&_.current.__original===e?S.current!==t?(r=k(e),_.current=r,S.current=t):r=_.current:(r=k(e),_.current=r,S.current=t));const n=[b,r,w];return n.t=b,n.i18n=r,n.ready=w,n},[b,x,w,x.resolvedLanguage,x.language,x.languages]);if(s&&l&&!w)throw new Promise(e=>{const r=()=>e();t.lng?ep(s,t.lng,d,r):Qu(s,d,r)});return C};function yp(e){if("undefined"==typeof window)return e;const t=o.useRef(null);return o.useLayoutEffect(()=>{t.current=e}),o.useCallback((...e)=>{var r;null===(r=t.current)||void 0===r||r.call(t,...e)},[])}const bp={},wp={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function xp({isOpen:e,popupId:t,variant:r}){return{..."popover"===r?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===r?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function _p(e){return{...xp(e),onClick:e.open,onTouchStart:e.open}}function Sp({isOpen:e,anchorEl:t,anchorPosition:r,close:n,popupId:o,onMouseLeave:i,disableAutoFocus:s,_openEventType:a}){return{id:o,anchorEl:t,anchorPosition:r,anchorReference:"contextmenu"===a?"anchorPosition":"anchorEl",open:e,onClose:n,onMouseLeave:i,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function kp(e,t){const{anchorEl:r,_childPopupState:n}=t;return Cp(r,e)||Cp(function(e,{popupId:t}){if(!t)return null;const r="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof r.getElementById?r.getElementById(t):null}(e,t),e)||null!=n&&kp(e,n)}function Cp(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}let Op=0;var Ep,Rp,Mp={exports:{}},Ip={};function Ap(e){return"string"==typeof e}function Tp(e,t,r){return void 0===e||Ap(e)?t:c({},t,{ownerState:c({},t.ownerState,r)})}Rp||(Rp=1,Mp.exports=function(){if(Ep)return Ip;Ep=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case n:case i:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case a:case c:case h:case d:case s:return e;default:return f}}case r:return f}}}return e=Symbol.for("react.module.reference"),Ip.ContextConsumer=a,Ip.ContextProvider=s,Ip.Element=t,Ip.ForwardRef=c,Ip.Fragment=n,Ip.Lazy=h,Ip.Memo=d,Ip.Portal=r,Ip.Profiler=i,Ip.StrictMode=o,Ip.Suspense=u,Ip.SuspenseList=p,Ip.isAsyncMode=function(){return!1},Ip.isConcurrentMode=function(){return!1},Ip.isContextConsumer=function(e){return m(e)===a},Ip.isContextProvider=function(e){return m(e)===s},Ip.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ip.isForwardRef=function(e){return m(e)===c},Ip.isFragment=function(e){return m(e)===n},Ip.isLazy=function(e){return m(e)===h},Ip.isMemo=function(e){return m(e)===d},Ip.isPortal=function(e){return m(e)===r},Ip.isProfiler=function(e){return m(e)===i},Ip.isStrictMode=function(e){return m(e)===o},Ip.isSuspense=function(e){return m(e)===u},Ip.isSuspenseList=function(e){return m(e)===p},Ip.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Ip.typeOf=m,Ip}()),Mp.exports;const Pp=o.createContext({disableDefaultClasses:!1});function Lp(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function jp(e,t,r){return"function"==typeof e?e(t,r):e}function Np(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function Fp(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function Dp(e,t){var r,n;return o.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)}function $p(e){return e&&e.ownerDocument||document}function Bp(e){return $p(e).defaultView||window}(y.element,()=>null).isRequired=(y.element.isRequired,()=>null);let zp=0;const Up=o["useId".toString()];function Vp(e){if(void 0!==Up){const t=Up();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect(()=>{null==t&&(zp+=1,r(`mui-${zp}`))},[t]),n}(e)}function Wp({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=o.useRef(void 0!==e),[s,a]=o.useState(t);return[i?e:s,o.useCallback(e=>{i||a(e)},[])]}function qp(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Hp=e=>{const t=o.useRef({});return o.useEffect(()=>{t.current=e}),t.current};function Gp(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function Kp(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=w(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=c({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),s=c({},r,o,n);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=Lp(c({},o,n)),a=Gp(n),l=Gp(o),u=t(s),p=w(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=c({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),h=c({},u,r,l,a);return p.length>0&&(h.className=p),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}const Zp=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xp(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=l(e,Zp),a=i?{}:jp(n,o),{props:u,internalRef:p}=Kp(c({},s,{externalSlotProps:a}));return Tp(r,c({},u,{ref:ws(p,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const Yp=o.createContext({});function Jp(e){return Xn("MuiList",e)}Fi("MuiList",["root","padding","dense","subheader"]);const Qp=["children","className","component","dense","disablePadding","subheader"],ed=To("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>c({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),td=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:u=!1,disablePadding:p=!1,subheader:d}=r,h=l(r,Qp),f=o.useMemo(()=>({dense:u}),[u]),m=c({},r,{component:a,dense:u,disablePadding:p}),g=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return x({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Jp,t)})(m);return(0,n.jsx)(Yp.Provider,{value:f,children:(0,n.jsxs)(ed,c({as:a,className:w(g.root,s),ref:t,ownerState:m},h,{children:[d,i]}))})}),rd=td,nd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function od(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function id(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function sd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ad(e,t,r,n,o,i){let s=!1,a=o(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&sd(a,i)&&!t)return a.focus(),!0;a=o(e,a,r)}return!1}const ld=o.forwardRef(function(e,t){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:u,disabledItemsFocusable:p=!1,disableListWrap:d=!1,onKeyDown:h,variant:f="selectedMenu"}=e,m=l(e,nd),g=o.useRef(null),v=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xs(()=>{i&&g.current.focus()},[i]),o.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!g.current.style.width;if(e.clientHeight{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===b)&&(b=t),b===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))):b===t&&(b+=1,b>=a.length&&(b=-1))});const w=o.Children.map(a,(e,t)=>{if(t===b){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===f&&(t.tabIndex=0),o.cloneElement(e,t)}return e});return(0,n.jsx)(rd,c({role:"menu",ref:y,className:u,onKeyDown:e=>{const t=g.current,r=e.key,n=$p(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ad(t,n,d,p,od);else if("ArrowUp"===r)e.preventDefault(),ad(t,n,d,p,id);else if("Home"===r)e.preventDefault(),ad(t,null,d,p,od);else if("End"===r)e.preventDefault(),ad(t,null,d,p,id);else if(1===r.length){const o=v.current,i=r.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=n&&!o.repeating&&sd(n,o);o.previousKeyMatched&&(a||ad(t,n,!1,p,od,o))?e.preventDefault():o.previousKeyMatched=!1}h&&h(e)},tabIndex:i?0:-1},m,{children:w}))}),cd=ld;function ud(e,t){var r,n;const{timeout:o,easing:i,style:s={}}=e;return{duration:null!=(r=s.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:s.transitionDelay}}const pd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dd(e){return`scale(${e}, ${e**2})`}const hd={entering:{opacity:1,transform:dd(1)},entered:{opacity:1,transform:"none"}},fd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),md=o.forwardRef(function(e,t){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:u,onEnter:p,onEntered:d,onEntering:h,onExit:f,onExited:m,onExiting:g,style:v,timeout:y="auto",TransitionComponent:b=Ws}=e,w=l(e,pd),x=Os(),_=o.useRef(),S=Ni(),k=o.useRef(null),C=ws(k,s.ref,t),O=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},E=O(h),R=O((e,t)=>{const{duration:r,delay:n,easing:o}=ud({style:v,timeout:y,easing:a},{mode:"enter"});let i;"auto"===y?(i=S.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=r,e.style.transition=[S.transitions.create("opacity",{duration:i,delay:n}),S.transitions.create("transform",{duration:fd?i:.666*i,delay:n,easing:o})].join(","),p&&p(e,t)}),M=O(d),I=O(g),A=O(e=>{const{duration:t,delay:r,easing:n}=ud({style:v,timeout:y,easing:a},{mode:"exit"});let o;"auto"===y?(o=S.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=t,e.style.transition=[S.transitions.create("opacity",{duration:o,delay:r}),S.transitions.create("transform",{duration:fd?o:.666*o,delay:fd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=dd(.75),f&&f(e)}),T=O(m);return(0,n.jsx)(b,c({appear:i,in:u,nodeRef:k,onEnter:R,onEntered:M,onEntering:E,onExit:A,onExited:T,onExiting:I,addEndListener:e=>{"auto"===y&&x.start(_.current||0,e),r&&r(k.current,e)},timeout:"auto"===y?null:y},w,{children:(e,t)=>o.cloneElement(s,c({style:c({opacity:0,transform:dd(.75),visibility:"exited"!==e||u?void 0:"hidden"},hd[e],v,s.props.style),ref:C},t))}))});md.muiSupportAuto=!0;const gd=md;function vd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yd(e){return parseInt(Bp(e).getComputedStyle(e).paddingRight,10)||0}function bd(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&vd(e,o)})}function wd(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}const xd=new class{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&vd(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);bd(t,e.mount,e.modalRef,n,!0);const o=wd(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=wd(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=$p(e);return t.body===e?Bp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=qp($p(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${yd(n)+e}px`;const t=$p(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${yd(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=$p(n).body;else{const t=n.parentElement,r=Bp(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=wd(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&vd(e.modalRef,t),bd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&vd(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}},_d=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sd(e){const t=[],r=[];return Array.from(e.querySelectorAll(_d)).forEach((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function kd(){return!0}function Cd(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:a=Sd,isEnabled:l=kd,open:c}=e,u=o.useRef(!1),p=o.useRef(null),d=o.useRef(null),h=o.useRef(null),f=o.useRef(null),m=o.useRef(!1),g=o.useRef(null),v=ws(t.ref,g),y=o.useRef(null);o.useEffect(()=>{c&&g.current&&(m.current=!r)},[r,c]),o.useEffect(()=>{if(!c||!g.current)return;const e=$p(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{s||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[c]),o.useEffect(()=>{if(!c||!g.current)return;const e=$p(g.current),t=t=>{y.current=t,!i&&l()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{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(i&&e.activeElement!==p.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==p.current&&e.activeElement!==d.current||(r=a(g.current)),r.length>0){var n,o;const e=Boolean((null==(n=y.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=r[0],i=r[r.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,i,s,l,c,a]);const b=e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0};return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)("div",{tabIndex:c?0:-1,onFocus:b,ref:p,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:v,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,n.jsx)("div",{tabIndex:c?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})}const Od=o.forwardRef(function(e,t){const{children:r,container:i,disablePortal:a=!1}=e,[l,c]=o.useState(null),u=ws(o.isValidElement(r)?r.ref:null,t);if(xs(()=>{var e;a||c(("function"==typeof(e=i)?e():e)||document.body)},[i,a]),xs(()=>{if(l&&!a)return bs(t,l),()=>{bs(t,null)}},[t,l,a]),a){if(o.isValidElement(r)){const e={ref:u};return o.cloneElement(r,e)}return(0,n.jsx)(o.Fragment,{children:r})}return(0,n.jsx)(o.Fragment,{children:l?s.createPortal(r,l):l})}),Ed=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Rd={entering:{opacity:1},entered:{opacity:1}},Md=o.forwardRef(function(e,t){const r=Ni(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:u,easing:p,in:d,onEnter:h,onEntered:f,onEntering:m,onExit:g,onExited:v,onExiting:y,style:b,timeout:w=i,TransitionComponent:x=Ws}=e,_=l(e,Ed),S=o.useRef(null),k=ws(S,u.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},O=C(m),E=C((e,t)=>{const n=ud({style:b,timeout:w,easing:p},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),h&&h(e,t)}),R=C(f),M=C(y),I=C(e=>{const t=ud({style:b,timeout:w,easing:p},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),g&&g(e)}),A=C(v);return(0,n.jsx)(x,c({appear:a,in:d,nodeRef:S,onEnter:E,onEntered:R,onEntering:O,onExit:I,onExited:A,onExiting:M,addEndListener:e=>{s&&s(S.current,e)},timeout:w},_,{children:(e,t)=>o.cloneElement(u,c({style:c({opacity:0,visibility:"exited"!==e||d?void 0:"hidden"},Rd[e],b,u.props.style),ref:k},t))}))}),Id=Md;function Ad(e){return Xn("MuiBackdrop",e)}Fi("MuiBackdrop",["root","invisible"]);const Td=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Pd=To("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>c({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Ld=o.forwardRef(function(e,t){var r,o,i;const s=$o({props:e,name:"MuiBackdrop"}),{children:a,className:u,component:p="div",components:d={},componentsProps:h={},invisible:f=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:y=Id,transitionDuration:b}=s,_=l(s,Td),S=c({},s,{component:p,invisible:f}),k=(e=>{const{classes:t,invisible:r}=e;return x({root:["root",r&&"invisible"]},Ad,t)})(S),C=null!=(r=g.root)?r:h.root;return(0,n.jsx)(y,c({in:m,timeout:b},_,{children:(0,n.jsx)(Pd,c({"aria-hidden":!0},C,{as:null!=(o=null!=(i=v.root)?i:d.Root)?o:p,className:w(k.root,u,null==C?void 0:C.className),ownerState:c({},S,null==C?void 0:C.ownerState),classes:k,ref:t,children:a}))}))}),jd=Ld;function Nd(e){return Xn("MuiModal",e)}Fi("MuiModal",["root","hidden","backdrop"]);const Fd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Dd=To("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>c({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),$d=To(jd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bd=o.forwardRef(function(e,t){var r,i,s,a,u,p;const d=$o({name:"MuiModal",props:e}),{BackdropComponent:h=$d,BackdropProps:f,className:m,closeAfterTransition:g=!1,children:v,container:y,component:b,components:_={},componentsProps:S={},disableAutoFocus:k=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:O=!1,disablePortal:E=!1,disableRestoreFocus:R=!1,disableScrollLock:M=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:T,open:P,slotProps:L,slots:j}=d,N=l(d,Fd),F=c({},d,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:C,disableEscapeKeyDown:O,disablePortal:E,disableRestoreFocus:R,disableScrollLock:M,hideBackdrop:I,keepMounted:A}),{getRootProps:D,getBackdropProps:$,getTransitionProps:B,portalRef:z,isTopModal:U,exited:V,hasTransition:W}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=xd,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:u,onClose:p,open:d,rootRef:h}=e,f=o.useRef({}),m=o.useRef(null),g=o.useRef(null),v=ws(g,h),[y,b]=o.useState(!d),w=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const _=()=>(f.current.modalRef=g.current,f.current.mount=m.current,f.current),S=()=>{i.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},k=_s(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||$p(m.current).body;i.add(_(),e),g.current&&S()}),C=o.useCallback(()=>i.isTopModal(_()),[i]),O=_s(e=>{m.current=e,e&&(d&&C()?S():g.current&&vd(g.current,x))}),E=o.useCallback(()=>{i.remove(_(),x)},[x,i]);o.useEffect(()=>()=>{E()},[E]),o.useEffect(()=>{d?k():w&&s||E()},[d,E,w,s,k]);const R=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),p&&p(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&p&&p(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Lp(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=c({},r,t);return c({role:"presentation"},n,{onKeyDown:R(n),ref:v})},getBackdropProps:(e={})=>c({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Np(()=>{b(!1),a&&a()},null==u?void 0:u.props.onEnter),onExited:Np(()=>{b(!0),l&&l(),s&&E()},null==u?void 0:u.props.onExited)}),rootRef:v,portalRef:O,isTopModal:C,exited:y,hasTransition:w}}(c({},F,{rootRef:t})),q=c({},F,{exited:V}),H=(e=>{const{open:t,exited:r,classes:n}=e;return x({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Nd,n)})(q),G={};if(void 0===v.props.tabIndex&&(G.tabIndex="-1"),W){const{onEnter:e,onExited:t}=B();G.onEnter=e,G.onExited=t}const K=null!=(r=null!=(i=null==j?void 0:j.root)?i:_.Root)?r:Dd,Z=null!=(s=null!=(a=null==j?void 0:j.backdrop)?a:_.Backdrop)?s:h,X=null!=(u=null==L?void 0:L.root)?u:S.root,Y=null!=(p=null==L?void 0:L.backdrop)?p:S.backdrop,J=Xp({elementType:K,externalSlotProps:X,externalForwardedProps:N,getSlotProps:D,additionalProps:{ref:t,as:b},ownerState:q,className:w(m,null==X?void 0:X.className,null==H?void 0:H.root,!q.open&&q.exited&&(null==H?void 0:H.hidden))}),Q=Xp({elementType:Z,externalSlotProps:Y,additionalProps:f,getSlotProps:e=>$(c({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:w(null==Y?void 0:Y.className,null==f?void 0:f.className,null==H?void 0:H.backdrop),ownerState:q});return A||P||W&&!V?(0,n.jsx)(Od,{ref:z,container:y,disablePortal:E,children:(0,n.jsxs)(K,c({},J,{children:[!I&&h?(0,n.jsx)(Z,c({},Q)):null,(0,n.jsx)(Cd,{disableEnforceFocus:C,disableAutoFocus:k,disableRestoreFocus:R,isEnabled:U,open:P,children:o.cloneElement(v,G)})]}))}):null}),zd=Bd;function Ud(e){return Xn("MuiPopover",e)}Fi("MuiPopover",["root","paper"]);const Vd=["onEntering"],Wd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qd=["slotProps"];function Hd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Gd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Kd(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Zd(e){return"function"==typeof e?e():e}const Xd=To(zd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yd=To(Ui,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Jd=o.forwardRef(function(e,t){var r,i,s;const a=$o({props:e,name:"MuiPopover"}),{action:u,anchorEl:p,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:f="anchorEl",children:m,className:g,container:v,elevation:y=8,marginThreshold:b=16,open:_,PaperProps:S={},slots:k,slotProps:C,transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:E=gd,transitionDuration:R="auto",TransitionProps:{onEntering:M}={},disableScrollLock:I=!1}=a,A=l(a.TransitionProps,Vd),T=l(a,Wd),P=null!=(r=null==C?void 0:C.paper)?r:S,L=o.useRef(),j=ws(L,P.ref),N=c({},a,{anchorOrigin:d,anchorReference:f,elevation:y,marginThreshold:b,externalPaperSlotProps:P,transformOrigin:O,TransitionComponent:E,transitionDuration:R,TransitionProps:A}),F=(e=>{const{classes:t}=e;return x({root:["root"],paper:["paper"]},Ud,t)})(N),D=o.useCallback(()=>{if("anchorPosition"===f)return h;const e=Zd(p),t=(e&&1===e.nodeType?e:$p(L.current).body).getBoundingClientRect();return{top:t.top+Hd(t,d.vertical),left:t.left+Gd(t,d.horizontal)}},[p,d.horizontal,d.vertical,h,f]),$=o.useCallback(e=>({vertical:Hd(e,O.vertical),horizontal:Gd(e,O.horizontal)}),[O.horizontal,O.vertical]),B=o.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=$(t);if("none"===f)return{top:null,left:null,transformOrigin:Kd(r)};const n=D();let o=n.top-r.vertical,i=n.left-r.horizontal;const s=o+t.height,a=i+t.width,l=Bp(Zd(p)),c=l.innerHeight-b,u=l.innerWidth-b;if(null!==b&&oc){const e=s-c;o-=e,r.vertical+=e}if(null!==b&&iu){const e=a-u;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Kd(r)}},[p,f,D,$,b]),[z,U]=o.useState(_),V=o.useCallback(()=>{const e=L.current;if(!e)return;const t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)},[B]);o.useEffect(()=>(I&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[p,I,V]),o.useEffect(()=>{_&&V()}),o.useImperativeHandle(u,()=>_?{updatePosition:()=>{V()}}:null,[_,V]),o.useEffect(()=>{if(!_)return;const e=Fp(()=>{V()}),t=Bp(p);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[p,_,V]);let W=R;"auto"!==R||E.muiSupportAuto||(W=void 0);const q=v||(p?$p(Zd(p)).body:void 0),H=null!=(i=null==k?void 0:k.root)?i:Xd,G=null!=(s=null==k?void 0:k.paper)?s:Yd,K=Xp({elementType:G,externalSlotProps:c({},P,{style:z?P.style:c({},P.style,{opacity:0})}),additionalProps:{elevation:y,ref:j},ownerState:N,className:w(F.paper,null==P?void 0:P.className)}),Z=Xp({elementType:H,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:q,open:_},ownerState:N,className:w(F.root,g)}),{slotProps:X}=Z,Y=l(Z,qd);return(0,n.jsx)(H,c({},Y,!Ap(H)&&{slotProps:X,disableScrollLock:I},{children:(0,n.jsx)(E,c({appear:!0,in:_,onEntering:(e,t)=>{M&&M(e,t),V()},onExited:()=>{U(!1)},timeout:W},A,{children:(0,n.jsx)(G,c({},K,{children:m}))}))}))}),Qd=Jd;function eh(e){return Xn("MuiMenu",e)}Fi("MuiMenu",["root","paper","list"]);const th=["onEntering"],rh=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nh={vertical:"top",horizontal:"right"},oh={vertical:"top",horizontal:"left"},ih=To(Qd,{shouldForwardProp:e=>Ao(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sh=To(Yd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ah=To(cd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lh=o.forwardRef(function(e,t){var r,i;const s=$o({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:u,className:p,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:f,open:m,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:_="selectedMenu",slots:S={},slotProps:k={}}=s,C=l(s.TransitionProps,th),O=l(s,rh),E=ki(),R=c({},s,{autoFocus:a,disableAutoFocusItem:d,MenuListProps:h,onEntering:b,PaperProps:g,transitionDuration:y,TransitionProps:C,variant:_}),M=(e=>{const{classes:t}=e;return x({root:["root"],paper:["paper"],list:["list"]},eh,t)})(R),I=a&&!d&&m,A=o.useRef(null);let T=-1;o.Children.map(u,(e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===_&&e.props.selected||-1===T)&&(T=t))});const P=null!=(r=S.paper)?r:sh,L=null!=(i=k.paper)?i:g,j=Xp({elementType:S.root,externalSlotProps:k.root,ownerState:R,className:[M.root,p]}),N=Xp({elementType:P,externalSlotProps:L,ownerState:R,className:M.paper});return(0,n.jsx)(ih,c({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?nh:oh,slots:{paper:P,root:S.root},slotProps:{root:j,paper:N},open:m,ref:t,transitionDuration:y,TransitionProps:c({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),b&&b(e,t)}},C),ownerState:R},O,{classes:v,children:(0,n.jsx)(ah,c({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:A,autoFocus:a&&(-1===T||d),autoFocusItem:I,variant:_},h,{className:w(M.list,h.className),children:u}))}))}),ch=lh;var uh=i().forwardRef((e,t)=>{const{direction:r}=Ni(),n={...e};return"rtl"===r&&(n.anchorOrigin?.horizontal&&(n.anchorOrigin={...n.anchorOrigin,horizontal:"left"===n.anchorOrigin.horizontal?"right":"left"}),n.transformOrigin?.horizontal&&(n.transformOrigin={...n.transformOrigin,horizontal:"left"===n.transformOrigin.horizontal?"right":"left"})),i().createElement(Qd,{...n,ref:t})});const ph={elevation:6},dh=i().forwardRef((e,t)=>i().createElement(ch,{as:uh,...ph,...e,ref:t}));dh.defaultProps=ph;var hh=dh;function fh(e){return Xn("MuiListItemIcon",e)}const mh=Fi("MuiListItemIcon",["root","alignItemsFlexStart"]),gh=["className"],vh=To("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>c({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),yh=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiListItemIcon"}),{className:i}=r,s=l(r,gh),a=c({},r,{alignItems:o.useContext(Yp).alignItems}),u=(e=>{const{alignItems:t,classes:r}=e;return x({root:["root","flex-start"===t&&"alignItemsFlexStart"]},fh,r)})(a);return(0,n.jsx)(vh,c({className:w(u.root,i),ownerState:a,ref:t},s))}),bh=yh;function wh(e){return Xn("MuiListItemText",e)}const xh=Fi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_h=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Sh=To("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${xh.primary}`]:t.primary},{[`& .${xh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>c({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),kh=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:u=!1,primary:p,primaryTypographyProps:d,secondary:h,secondaryTypographyProps:f}=r,m=l(r,_h),{dense:g}=o.useContext(Yp);let v=null!=p?p:i,y=h;const b=c({},r,{disableTypography:a,inset:u,primary:!!v,secondary:!!y,dense:g}),_=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return x({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},wh,t)})(b);return null==v||v.type===hs||a||(v=(0,n.jsx)(hs,c({variant:g?"body2":"body1",className:_.primary,component:null!=d&&d.variant?void 0:"span",display:"block"},d,{children:v}))),null==y||y.type===hs||a||(y=(0,n.jsx)(hs,c({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},f,{children:y}))),(0,n.jsxs)(Sh,c({className:w(_.root,s),ownerState:b,ref:t},m,{children:[v,y]}))}),Ch=kh;function Oh(e){return Xn("MuiMenuItem",e)}const Eh=Fi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Rh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Mh=To(ga,{shouldForwardProp:e=>Ao(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>c({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Eh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ro.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ro.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ro.alpha(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})`:ro.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Eh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hc.inset}`]:{marginLeft:52},[`& .${xh.root}`]:{marginTop:0,marginBottom:0},[`& .${xh.inset}`]:{paddingLeft:36},[`& .${mh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&c({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mh.root} svg`]:{fontSize:"1.25rem"}}))),Ih=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:u=!1,disableGutters:p=!1,focusVisibleClassName:d,role:h="menuitem",tabIndex:f,className:m}=r,g=l(r,Rh),v=o.useContext(Yp),y=o.useMemo(()=>({dense:a||v.dense||!1,disableGutters:p}),[v.dense,a,p]),b=o.useRef(null);xs(()=>{i&&b.current&&b.current.focus()},[i]);const _=c({},r,{dense:y.dense,divider:u,disableGutters:p}),S=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:s}=e;return c({},s,x({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Oh,s))})(r),k=ws(b,t);let C;return r.disabled||(C=void 0!==f?f:-1),(0,n.jsx)(Yp.Provider,{value:y,children:(0,n.jsx)(Mh,c({ref:k,role:h,tabIndex:C,component:s,focusVisibleClassName:w(S.focusVisible,d),className:w(S.root,m)},g,{ownerState:_,classes:S}))})}),Ah=Ih;var Th=i().forwardRef((e,t)=>i().createElement(Ah,{...e,ref:t})),Ph=i().forwardRef((e,t)=>i().createElement(bh,{...e,ref:t})),Lh=i().forwardRef((e,t)=>i().createElement(Ch,{...e,ref:t})),jh=o.forwardRef((e,t)=>o.createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 4C14 3.58579 14.3358 3.25 14.75 3.25H19.75C20.1642 3.25 20.5 3.58579 20.5 4V9C20.5 9.41421 20.1642 9.75 19.75 9.75C19.3358 9.75 19 9.41421 19 9V5.81066L10.2803 14.5303C9.98744 14.8232 9.51256 14.8232 9.21967 14.5303C8.92678 14.2374 8.92678 13.7626 9.21967 13.4697L17.9393 4.75H14.75C14.3358 4.75 14 4.41421 14 4ZM3.80546 7.05546C4.32118 6.53973 5.02065 6.25 5.75 6.25H10.75C11.1642 6.25 11.5 6.58579 11.5 7C11.5 7.41421 11.1642 7.75 10.75 7.75H5.75C5.41848 7.75 5.10054 7.8817 4.86612 8.11612C4.6317 8.35054 4.5 8.66848 4.5 9V18C4.5 18.3315 4.6317 18.6495 4.86612 18.8839C5.10054 19.1183 5.41848 19.25 5.75 19.25H14.75C15.0815 19.25 15.3995 19.1183 15.6339 18.8839C15.8683 18.6495 16 18.3315 16 18V13C16 12.5858 16.3358 12.25 16.75 12.25C17.1642 12.25 17.5 12.5858 17.5 13V18C17.5 18.7293 17.2103 19.4288 16.6945 19.9445C16.1788 20.4603 15.4793 20.75 14.75 20.75H5.75C5.02065 20.75 4.32118 20.4603 3.80546 19.9445C3.28973 19.4288 3 18.7293 3 18V9C3 8.27065 3.28973 7.57118 3.80546 7.05546Z"})));const Nh=Zu.createInstance();var Fh;Nh.use((Fh=(e,t)=>r(70910)(`./${e}/${t}.json`),{type:"backend",init:function(e,t,r){},read:function(e,t,r){if(Fh.length<3)try{var n=Fh(e,t);n&&"function"==typeof n.then?n.then(function(e){return r(null,e&&e.default||e)}).catch(r):r(null,n)}catch(e){r(e)}else Fh(e,t)}})).use(ap).init({lng:"en",fallbackLng:"en",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1},react:{useSuspense:!0}});var Dh=class{subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}};function $h(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bh,zh,Uh=0;function Vh(e){return"__private_"+Uh+++"_"+e}var Wh={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},qh=new(Bh=Vh("_provider"),zh=Vh("_providerCalled"),class{setTimeoutProvider(e){$h(this,Bh)[Bh]=e}setTimeout(e,t){return $h(this,Bh)[Bh].setTimeout(e,t)}clearTimeout(e){$h(this,Bh)[Bh].clearTimeout(e)}setInterval(e,t){return $h(this,Bh)[Bh].setInterval(e,t)}clearInterval(e){$h(this,Bh)[Bh].clearInterval(e)}constructor(){Object.defineProperty(this,Bh,{writable:!0,value:void 0}),Object.defineProperty(this,zh,{writable:!0,value:void 0}),$h(this,Bh)[Bh]=Wh,$h(this,zh)[zh]=!1}}),Hh="undefined"==typeof window||"Deno"in globalThis;function Gh(){}function Kh(e){return"number"==typeof e&&e>=0&&e!==1/0}function Zh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xh(e,t){return"function"==typeof e?e(t):e}function Yh(e,t){return"function"==typeof e?e(t):e}function Jh(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(n){if(t.queryHash!==ef(s,t.options))return!1}else if(!rf(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Qh(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(tf(t.options.mutationKey)!==tf(i))return!1}else if(!rf(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function ef(e,t){return(t?.queryKeyHashFn||tf)(e)}function tf(e){return JSON.stringify(e,(e,t)=>lf(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function rf(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>rf(e[r],t[r]))}var nf=Object.prototype.hasOwnProperty;function of(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=af(e)&&af(t);if(!(n||lf(e)&&lf(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;cr?n.slice(1):n}function df(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var hf=Symbol();function ff(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==hf?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function mf(e,t){return"function"==typeof e?e(...t):!!e}function gf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vf,yf,bf,wf=0;function xf(e){return"__private_"+wf+++"_"+e}var _f=new(vf=xf("_focused"),yf=xf("_cleanup"),bf=xf("_setup"),class extends Dh{onSubscribe(){gf(this,yf)[yf]||this.setEventListener(gf(this,bf)[bf])}onUnsubscribe(){this.hasListeners()||(null==gf(this,yf)[yf]||gf(this,yf)[yf].call(this),gf(this,yf)[yf]=void 0)}setEventListener(e){gf(this,bf)[bf]=e,null==gf(this,yf)[yf]||gf(this,yf)[yf].call(this),gf(this,yf)[yf]=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){gf(this,vf)[vf]!==e&&(gf(this,vf)[vf]=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof gf(this,vf)[vf]?gf(this,vf)[vf]:"hidden"!==globalThis.document?.visibilityState}constructor(){super(),Object.defineProperty(this,vf,{writable:!0,value:void 0}),Object.defineProperty(this,yf,{writable:!0,value:void 0}),Object.defineProperty(this,bf,{writable:!0,value:void 0}),gf(this,bf)[bf]=e=>{if(!Hh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}});function Sf(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var kf=function(e){setTimeout(e,0)},Cf=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=kf;const i=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}();function Of(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ef,Rf,Mf,If=0;function Af(e){return"__private_"+If+++"_"+e}var Tf=new(Ef=Af("_online"),Rf=Af("_cleanup"),Mf=Af("_setup"),class extends Dh{onSubscribe(){Of(this,Rf)[Rf]||this.setEventListener(Of(this,Mf)[Mf])}onUnsubscribe(){this.hasListeners()||(null==Of(this,Rf)[Rf]||Of(this,Rf)[Rf].call(this),Of(this,Rf)[Rf]=void 0)}setEventListener(e){Of(this,Mf)[Mf]=e,null==Of(this,Rf)[Rf]||Of(this,Rf)[Rf].call(this),Of(this,Rf)[Rf]=e(this.setOnline.bind(this))}setOnline(e){Of(this,Ef)[Ef]!==e&&(Of(this,Ef)[Ef]=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return Of(this,Ef)[Ef]}constructor(){super(),Object.defineProperty(this,Ef,{writable:!0,value:void 0}),Object.defineProperty(this,Rf,{writable:!0,value:void 0}),Object.defineProperty(this,Mf,{writable:!0,value:void 0}),Of(this,Ef)[Ef]=!0,Of(this,Mf)[Mf]=e=>{if(!Hh&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}});function Pf(e){return Math.min(1e3*2**e,3e4)}function Lf(e){return"online"!==(e??"online")||Tf.isOnline()}var jf=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Nf(e){let t,r=!1,n=0;const o=Sf(),i=()=>"pending"!==o.status,s=()=>_f.isFocused()&&("always"===e.networkMode||Tf.isOnline())&&e.canRun(),a=()=>Lf(e.networkMode)&&e.canRun(),l=e=>{i()||(t?.(),o.resolve(e))},c=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise(r=>{t=e=>{(i()||s())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),p=()=>{if(i())return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch(t=>{if(i())return;const o=e.retry??(Hh?0:3),a=e.retryDelay??Pf,l="function"==typeof a?a(n,t):a,d=!0===o||"number"==typeof o&&n{qh.setTimeout(e,h)})).then(()=>s()?void 0:u()).then(()=>{r?c(t):p()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const r=new jf(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:a,start:()=>(a()?p():u().then(p),o)}}function Ff(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Df,$f,Bf=0,zf=(Df="__private_"+Bf+++"_"+($f="_gcTimeout"),class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Kh(this.gcTime)&&(Ff(this,Df)[Df]=qh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hh?1/0:3e5))}clearGcTimeout(){Ff(this,Df)[Df]&&(qh.clearTimeout(Ff(this,Df)[Df]),Ff(this,Df)[Df]=void 0)}constructor(){Object.defineProperty(this,Df,{writable:!0,value:void 0})}});function Uf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Vf,Wf,qf,Hf,Gf,Kf,Zf,Xf,Yf,Jf=0;function Qf(e){return"__private_"+Jf+++"_"+e}var em=(Vf=Qf("_initialState"),Wf=Qf("_revertState"),qf=Qf("_cache"),Hf=Qf("_client"),Gf=Qf("_retryer"),Kf=Qf("_defaultOptions"),Zf=Qf("_abortSignalConsumed"),Xf=Qf("_dispatch"),Yf=class extends zf{get meta(){return this.options.meta}get promise(){return Uf(this,Gf)[Gf]?.promise}setOptions(e){if(this.options={...Uf(this,Kf)[Kf],...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=nm(this.options);void 0!==e.data&&(this.setState(rm(e.data,e.dataUpdatedAt)),Uf(this,Vf)[Vf]=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Uf(this,qf)[qf].remove(this)}setData(e,t){const r=uf(this.state.data,e,this.options);return Uf(this,Xf)[Xf]({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){Uf(this,Xf)[Xf]({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=Uf(this,Gf)[Gf]?.promise;return Uf(this,Gf)[Gf]?.cancel(e),t?t.then(Gh).catch(Gh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Uf(this,Vf)[Vf])}isActive(){return this.observers.some(e=>!1!==Yh(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Xh(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Zh(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),Uf(this,Gf)[Gf]?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),Uf(this,Gf)[Gf]?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Uf(this,qf)[qf].notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(Uf(this,Gf)[Gf]&&(Uf(this,Zf)[Zf]?Uf(this,Gf)[Gf].cancel({revert:!0}):Uf(this,Gf)[Gf].cancelRetry()),this.scheduleGc()),Uf(this,qf)[qf].notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Uf(this,Xf)[Xf]({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==Uf(this,Gf)[Gf]?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(Uf(this,Gf)[Gf])return Uf(this,Gf)[Gf].continueRetry(),Uf(this,Gf)[Gf].promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Uf(this,Zf)[Zf]=!0,r.signal)})},o=()=>{const e=ff(this.options,t),r=(()=>{const e={client:Uf(this,Hf)[Hf],queryKey:this.queryKey,meta:this.meta};return n(e),e})();return Uf(this,Zf)[Zf]=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:Uf(this,Hf)[Hf],state:this.state,fetchFn:o};return n(e),e})();this.options.behavior?.onFetch(i,this),Uf(this,Wf)[Wf]=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||Uf(this,Xf)[Xf]({type:"fetch",meta:i.fetchOptions?.meta}),Uf(this,Gf)[Gf]=Nf({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof jf&&e.revert&&this.setState({...Uf(this,Wf)[Wf],fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{Uf(this,Xf)[Xf]({type:"failed",failureCount:e,error:t})},onPause:()=>{Uf(this,Xf)[Xf]({type:"pause"})},onContinue:()=>{Uf(this,Xf)[Xf]({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await Uf(this,Gf)[Gf].start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),Uf(this,qf)[qf].config.onSuccess?.(e,this),Uf(this,qf)[qf].config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof jf){if(e.silent)return Uf(this,Gf)[Gf].promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw Uf(this,Xf)[Xf]({type:"error",error:e}),Uf(this,qf)[qf].config.onError?.(e,this),Uf(this,qf)[qf].config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}constructor(e){super(),Object.defineProperty(this,Xf,{value:om}),Object.defineProperty(this,Vf,{writable:!0,value:void 0}),Object.defineProperty(this,Wf,{writable:!0,value:void 0}),Object.defineProperty(this,qf,{writable:!0,value:void 0}),Object.defineProperty(this,Hf,{writable:!0,value:void 0}),Object.defineProperty(this,Gf,{writable:!0,value:void 0}),Object.defineProperty(this,Kf,{writable:!0,value:void 0}),Object.defineProperty(this,Zf,{writable:!0,value:void 0}),Uf(this,Zf)[Zf]=!1,Uf(this,Kf)[Kf]=e.defaultOptions,this.setOptions(e.options),this.observers=[],Uf(this,Hf)[Hf]=e.client,Uf(this,qf)[qf]=Uf(this,Hf)[Hf].getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Uf(this,Vf)[Vf]=nm(this.options),this.state=e.state??Uf(this,Vf)[Vf],this.scheduleGc()}},Yf);function tm(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lf(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function rm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function nm(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function om(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...tm(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...rm(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Uf(this,Wf)[Wf]=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Cf.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),Uf(this,qf)[qf].notify({query:this,type:"updated",action:e})})}function im(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sm,am,lm,cm,um,pm,dm,hm,fm,mm,gm,vm,ym,bm,wm,xm,_m,Sm,km,Cm,Om,Em,Rm,Mm,Im,Am=0;function Tm(e){return"__private_"+Am+++"_"+e}var Pm=(sm=Tm("_client"),am=Tm("_currentQuery"),lm=Tm("_currentQueryInitialState"),cm=Tm("_currentResult"),um=Tm("_currentResultState"),pm=Tm("_currentResultOptions"),dm=Tm("_currentThenable"),hm=Tm("_selectError"),fm=Tm("_selectFn"),mm=Tm("_selectResult"),gm=Tm("_lastQueryWithDefinedData"),vm=Tm("_staleTimeoutId"),ym=Tm("_refetchIntervalId"),bm=Tm("_currentRefetchInterval"),wm=Tm("_trackedProps"),xm=Tm("_executeFetch"),_m=Tm("_updateStaleTimeout"),Sm=Tm("_computeRefetchInterval"),km=Tm("_updateRefetchInterval"),Cm=Tm("_updateTimers"),Om=Tm("_clearStaleTimeout"),Em=Tm("_clearRefetchInterval"),Rm=Tm("_updateQuery"),Mm=Tm("_notify"),Im=class extends Dh{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(im(this,am)[am].addObserver(this),Lm(im(this,am)[am],this.options)?im(this,xm)[xm]():this.updateResult(),im(this,Cm)[Cm]())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jm(im(this,am)[am],this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jm(im(this,am)[am],this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,im(this,Om)[Om](),im(this,Em)[Em](),im(this,am)[am].removeObserver(this)}setOptions(e){const t=this.options,r=im(this,am)[am];if(this.options=im(this,sm)[sm].defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Yh(this.options.enabled,im(this,am)[am]))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");im(this,Rm)[Rm](),im(this,am)[am].setOptions(this.options),t._defaulted&&!sf(this.options,t)&&im(this,sm)[sm].getQueryCache().notify({type:"observerOptionsUpdated",query:im(this,am)[am],observer:this});const n=this.hasListeners();n&&Nm(im(this,am)[am],r,this.options,t)&&im(this,xm)[xm](),this.updateResult(),!n||im(this,am)[am]===r&&Yh(this.options.enabled,im(this,am)[am])===Yh(t.enabled,im(this,am)[am])&&Xh(this.options.staleTime,im(this,am)[am])===Xh(t.staleTime,im(this,am)[am])||im(this,_m)[_m]();const o=im(this,Sm)[Sm]();!n||im(this,am)[am]===r&&Yh(this.options.enabled,im(this,am)[am])===Yh(t.enabled,im(this,am)[am])&&o===im(this,bm)[bm]||im(this,km)[km](o)}getOptimisticResult(e){const t=im(this,sm)[sm].getQueryCache().build(im(this,sm)[sm],e),r=this.createResult(t,e);return n=r,!sf(this.getCurrentResult(),n)&&(im(this,cm)[cm]=r,im(this,pm)[pm]=this.options,im(this,um)[um]=im(this,am)[am].state),r;var n}getCurrentResult(){return im(this,cm)[cm]}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==im(this,dm)[dm].status||im(this,dm)[dm].reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){im(this,wm)[wm].add(e)}getCurrentQuery(){return im(this,am)[am]}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=im(this,sm)[sm].defaultQueryOptions(e),r=im(this,sm)[sm].getQueryCache().build(im(this,sm)[sm],t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return im(this,xm)[xm]({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),im(this,cm)[cm]))}createResult(e,t){const r=im(this,am)[am],n=this.options,o=im(this,cm)[cm],i=im(this,um)[um],s=im(this,pm)[pm],a=e!==r?e.state:im(this,lm)[lm],{state:l}=e;let c,u={...l},p=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&Lm(e,t),s=o&&Nm(e,r,t,n);(i||s)&&(u={...u,...tm(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:d,errorUpdatedAt:h,status:f}=u;c=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===f){let e;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(im(this,gm)[gm]?.state.data,im(this,gm)[gm]):t.placeholderData,void 0!==e&&(f="success",c=uf(o?.data,e,t),p=!0)}if(t.select&&void 0!==c&&!m)if(o&&c===i?.data&&t.select===im(this,fm)[fm])c=im(this,mm)[mm];else try{im(this,fm)[fm]=t.select,c=t.select(c),c=uf(o?.data,c,t),im(this,mm)[mm]=c,im(this,hm)[hm]=null}catch(e){im(this,hm)[hm]=e}im(this,hm)[hm]&&(d=im(this,hm)[hm],c=im(this,mm)[mm],h=Date.now(),f="error");const g="fetching"===u.fetchStatus,v="pending"===f,y="error"===f,b=v&&g,w=void 0!==c,x={status:f,fetchStatus:u.fetchStatus,isPending:v,isSuccess:"success"===f,isError:y,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>a.dataUpdateCount||u.errorUpdateCount>a.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:y&&!w,isPaused:"paused"===u.fetchStatus,isPlaceholderData:p,isRefetchError:y&&w,isStale:Fm(e,t),refetch:this.refetch,promise:im(this,dm)[dm],isEnabled:!1!==Yh(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==x.data,n="error"===x.status&&!t,o=e=>{n?e.reject(x.error):t&&e.resolve(x.data)},i=()=>{const e=im(this,dm)[dm]=x.promise=Sf();o(e)},s=im(this,dm)[dm];switch(s.status){case"pending":e.queryHash===r.queryHash&&o(s);break;case"fulfilled":(n||x.data!==s.value)&&i();break;case"rejected":n&&x.error===s.reason||i()}}return x}updateResult(){const e=im(this,cm)[cm],t=this.createResult(im(this,am)[am],this.options);im(this,um)[um]=im(this,am)[am].state,im(this,pm)[pm]=this.options,void 0!==im(this,um)[um].data&&(im(this,gm)[gm]=im(this,am)[am]),sf(t,e)||(im(this,cm)[cm]=t,im(this,Mm)[Mm]({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!im(this,wm)[wm].size)return!0;const n=new Set(r??im(this,wm)[wm]);return this.options.throwOnError&&n.add("error"),Object.keys(im(this,cm)[cm]).some(t=>{const r=t;return im(this,cm)[cm][r]!==e[r]&&n.has(r)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&im(this,Cm)[Cm]()}constructor(e,t){super(),Object.defineProperty(this,xm,{value:Dm}),Object.defineProperty(this,_m,{value:$m}),Object.defineProperty(this,Sm,{value:Bm}),Object.defineProperty(this,km,{value:zm}),Object.defineProperty(this,Cm,{value:Um}),Object.defineProperty(this,Om,{value:Vm}),Object.defineProperty(this,Em,{value:Wm}),Object.defineProperty(this,Rm,{value:qm}),Object.defineProperty(this,Mm,{value:Hm}),Object.defineProperty(this,sm,{writable:!0,value:void 0}),Object.defineProperty(this,am,{writable:!0,value:void 0}),Object.defineProperty(this,lm,{writable:!0,value:void 0}),Object.defineProperty(this,cm,{writable:!0,value:void 0}),Object.defineProperty(this,um,{writable:!0,value:void 0}),Object.defineProperty(this,pm,{writable:!0,value:void 0}),Object.defineProperty(this,dm,{writable:!0,value:void 0}),Object.defineProperty(this,hm,{writable:!0,value:void 0}),Object.defineProperty(this,fm,{writable:!0,value:void 0}),Object.defineProperty(this,mm,{writable:!0,value:void 0}),Object.defineProperty(this,gm,{writable:!0,value:void 0}),Object.defineProperty(this,vm,{writable:!0,value:void 0}),Object.defineProperty(this,ym,{writable:!0,value:void 0}),Object.defineProperty(this,bm,{writable:!0,value:void 0}),Object.defineProperty(this,wm,{writable:!0,value:void 0}),im(this,am)[am]=void 0,im(this,lm)[lm]=void 0,im(this,cm)[cm]=void 0,im(this,wm)[wm]=new Set,this.options=t,im(this,sm)[sm]=e,im(this,hm)[hm]=null,im(this,dm)[dm]=Sf(),this.bindMethods(),this.setOptions(t)}},Im);function Lm(e,t){return function(e,t){return!1!==Yh(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&jm(e,t,t.refetchOnMount)}function jm(e,t,r){if(!1!==Yh(t.enabled,e)&&"static"!==Xh(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Fm(e,t)}return!1}function Nm(e,t,r,n){return(e!==t||!1===Yh(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Fm(e,r)}function Fm(e,t){return!1!==Yh(t.enabled,e)&&e.isStaleByTime(Xh(t.staleTime,e))}function Dm(e){im(this,Rm)[Rm]();let t=im(this,am)[am].fetch(this.options,e);return e?.throwOnError||(t=t.catch(Gh)),t}function $m(){im(this,Om)[Om]();const e=Xh(this.options.staleTime,im(this,am)[am]);if(Hh||im(this,cm)[cm].isStale||!Kh(e))return;const t=Zh(im(this,cm)[cm].dataUpdatedAt,e)+1;im(this,vm)[vm]=qh.setTimeout(()=>{im(this,cm)[cm].isStale||this.updateResult()},t)}function Bm(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(im(this,am)[am]):this.options.refetchInterval)??!1}function zm(e){im(this,Em)[Em](),im(this,bm)[bm]=e,!Hh&&!1!==Yh(this.options.enabled,im(this,am)[am])&&Kh(im(this,bm)[bm])&&0!==im(this,bm)[bm]&&(im(this,ym)[ym]=qh.setInterval(()=>{(this.options.refetchIntervalInBackground||_f.isFocused())&&im(this,xm)[xm]()},im(this,bm)[bm]))}function Um(){im(this,_m)[_m](),im(this,km)[km](im(this,Sm)[Sm]())}function Vm(){im(this,vm)[vm]&&(qh.clearTimeout(im(this,vm)[vm]),im(this,vm)[vm]=void 0)}function Wm(){im(this,ym)[ym]&&(qh.clearInterval(im(this,ym)[ym]),im(this,ym)[ym]=void 0)}function qm(){const e=im(this,sm)[sm].getQueryCache().build(im(this,sm)[sm],this.options);if(e===im(this,am)[am])return;const t=im(this,am)[am];im(this,am)[am]=e,im(this,lm)[lm]=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function Hm(e){Cf.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(im(this,cm)[cm])}),im(this,sm)[sm].getQueryCache().notify({query:im(this,am)[am],type:"observerResultsUpdated"})})}function Gm(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=ff(t.options,t.fetchOptions),u=async(e,n,o)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:o?"backward":"forward",meta:t.options.meta};return(e=>{!function(e,r,n){let o,i=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t.signal),i||(i=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)})}(e,0,()=>r=!0)})(e),e})(),s=await c(i),{maxPages:a}=t.options,l=o?df:pf;return{pages:l(e.pages,s,a),pageParams:l(e.pageParams,n,a)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:s},r=(e?Zm:Km)(n,t);a=await u(t,r,e)}else{const t=e??i.length;do{const e=0===l?s[0]??n.initialPageParam:Km(n,a);if(l>0&&null==e)break;a=await u(a,e),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function Km(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Zm(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function Xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ym,Jm,Qm,eg,tg,rg,ng=0;function og(e){return"__private_"+ng+++"_"+e}var ig=(Ym=og("_client"),Jm=og("_observers"),Qm=og("_mutationCache"),eg=og("_retryer"),tg=og("_dispatch"),rg=class extends zf{setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Xm(this,Jm)[Jm].includes(e)||(Xm(this,Jm)[Jm].push(e),this.clearGcTimeout(),Xm(this,Qm)[Qm].notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Xm(this,Jm)[Jm]=Xm(this,Jm)[Jm].filter(t=>t!==e),this.scheduleGc(),Xm(this,Qm)[Qm].notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Xm(this,Jm)[Jm].length||("pending"===this.state.status?this.scheduleGc():Xm(this,Qm)[Qm].remove(this))}continue(){return Xm(this,eg)[eg]?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{Xm(this,tg)[tg]({type:"continue"})},r={client:Xm(this,Ym)[Ym],meta:this.options.meta,mutationKey:this.options.mutationKey};Xm(this,eg)[eg]=Nf({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Xm(this,tg)[tg]({type:"failed",failureCount:e,error:t})},onPause:()=>{Xm(this,tg)[tg]({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Xm(this,Qm)[Qm].canRun(this)});const n="pending"===this.state.status,o=!Xm(this,eg)[eg].canStart();try{if(n)t();else{Xm(this,tg)[tg]({type:"pending",variables:e,isPaused:o}),Xm(this,Qm)[Qm].config.onMutate&&await Xm(this,Qm)[Qm].config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&Xm(this,tg)[tg]({type:"pending",context:t,variables:e,isPaused:o})}const i=await Xm(this,eg)[eg].start();return await(Xm(this,Qm)[Qm].config.onSuccess?.(i,e,this.state.context,this,r)),await(this.options.onSuccess?.(i,e,this.state.context,r)),await(Xm(this,Qm)[Qm].config.onSettled?.(i,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(i,null,e,this.state.context,r)),Xm(this,tg)[tg]({type:"success",data:i}),i}catch(t){try{await(Xm(this,Qm)[Qm].config.onError?.(t,e,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onError?.(t,e,this.state.context,r))}catch(e){Promise.reject(e)}try{await(Xm(this,Qm)[Qm].config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r))}catch(e){Promise.reject(e)}try{await(this.options.onSettled?.(void 0,t,e,this.state.context,r))}catch(e){Promise.reject(e)}throw Xm(this,tg)[tg]({type:"error",error:t}),t}finally{Xm(this,Qm)[Qm].runNext(this)}}constructor(e){super(),Object.defineProperty(this,tg,{value:sg}),Object.defineProperty(this,Ym,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:void 0}),Object.defineProperty(this,eg,{writable:!0,value:void 0}),Xm(this,Ym)[Ym]=e.client,this.mutationId=e.mutationId,Xm(this,Qm)[Qm]=e.mutationCache,Xm(this,Jm)[Jm]=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}},rg);function sg(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Cf.batch(()=>{Xm(this,Jm)[Jm].forEach(t=>{t.onMutationUpdate(e)}),Xm(this,Qm)[Qm].notify({mutation:this,type:"updated",action:e})})}function ag(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lg,cg,ug,pg=0;function dg(e){return"__private_"+pg+++"_"+e}var hg=(lg=dg("_mutations"),cg=dg("_scopes"),ug=dg("_mutationId"),class extends Dh{build(e,t,r){const n=new ig({client:e,mutationCache:this,mutationId:++ag(this,ug)[ug],options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){ag(this,lg)[lg].add(e);const t=fg(e);if("string"==typeof t){const r=ag(this,cg)[cg].get(t);r?r.push(e):ag(this,cg)[cg].set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(ag(this,lg)[lg].delete(e)){const t=fg(e);if("string"==typeof t){const r=ag(this,cg)[cg].get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&ag(this,cg)[cg].delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=fg(e);if("string"==typeof t){const r=ag(this,cg)[cg].get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=fg(e);if("string"==typeof t){const r=ag(this,cg)[cg].get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Cf.batch(()=>{ag(this,lg)[lg].forEach(e=>{this.notify({type:"removed",mutation:e})}),ag(this,lg)[lg].clear(),ag(this,cg)[cg].clear()})}getAll(){return Array.from(ag(this,lg)[lg])}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Qh(t,e))}findAll(e={}){return this.getAll().filter(t=>Qh(e,t))}notify(e){Cf.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Cf.batch(()=>Promise.all(e.map(e=>e.continue().catch(Gh))))}constructor(e={}){super(),Object.defineProperty(this,lg,{writable:!0,value:void 0}),Object.defineProperty(this,cg,{writable:!0,value:void 0}),Object.defineProperty(this,ug,{writable:!0,value:void 0}),this.config=e,ag(this,lg)[lg]=new Set,ag(this,cg)[cg]=new Map,ag(this,ug)[ug]=0}});function fg(e){return e.options.scope?.id}function mg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gg,vg,yg,bg,wg,xg,_g=0;function Sg(e){return"__private_"+_g+++"_"+e}var kg=(gg=Sg("_client"),vg=Sg("_currentResult"),yg=Sg("_currentMutation"),bg=Sg("_mutateOptions"),wg=Sg("_updateResult"),xg=Sg("_notify"),class extends Dh{bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=mg(this,gg)[gg].defaultMutationOptions(e),sf(this.options,t)||mg(this,gg)[gg].getMutationCache().notify({type:"observerOptionsUpdated",mutation:mg(this,yg)[yg],observer:this}),t?.mutationKey&&this.options.mutationKey&&tf(t.mutationKey)!==tf(this.options.mutationKey)?this.reset():"pending"===mg(this,yg)[yg]?.state.status&&mg(this,yg)[yg].setOptions(this.options)}onUnsubscribe(){this.hasListeners()||mg(this,yg)[yg]?.removeObserver(this)}onMutationUpdate(e){mg(this,wg)[wg](),mg(this,xg)[xg](e)}getCurrentResult(){return mg(this,vg)[vg]}reset(){mg(this,yg)[yg]?.removeObserver(this),mg(this,yg)[yg]=void 0,mg(this,wg)[wg](),mg(this,xg)[xg]()}mutate(e,t){return mg(this,bg)[bg]=t,mg(this,yg)[yg]?.removeObserver(this),mg(this,yg)[yg]=mg(this,gg)[gg].getMutationCache().build(mg(this,gg)[gg],this.options),mg(this,yg)[yg].addObserver(this),mg(this,yg)[yg].execute(e)}constructor(e,t){super(),Object.defineProperty(this,wg,{value:Cg}),Object.defineProperty(this,xg,{value:Og}),Object.defineProperty(this,gg,{writable:!0,value:void 0}),Object.defineProperty(this,vg,{writable:!0,value:void 0}),Object.defineProperty(this,yg,{writable:!0,value:void 0}),Object.defineProperty(this,bg,{writable:!0,value:void 0}),mg(this,vg)[vg]=void 0,mg(this,gg)[gg]=e,this.setOptions(t),this.bindMethods(),mg(this,wg)[wg]()}});function Cg(){const e=mg(this,yg)[yg]?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};mg(this,vg)[vg]={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}function Og(e){Cf.batch(()=>{if(mg(this,bg)[bg]&&this.hasListeners()){const t=mg(this,vg)[vg].variables,r=mg(this,vg)[vg].context,n={client:mg(this,gg)[gg],meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{mg(this,bg)[bg].onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{mg(this,bg)[bg].onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if("error"===e?.type){try{mg(this,bg)[bg].onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{mg(this,bg)[bg].onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(mg(this,vg)[vg])})})}function Eg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Rg,Mg=0,Ig=(Rg="__private_"+Mg+++"__queries",class extends Dh{build(e,t,r){const n=t.queryKey,o=t.queryHash??ef(n,t);let i=this.get(o);return i||(i=new em({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){Eg(this,Rg)[Rg].has(e.queryHash)||(Eg(this,Rg)[Rg].set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Eg(this,Rg)[Rg].get(e.queryHash);t&&(e.destroy(),t===e&&Eg(this,Rg)[Rg].delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Cf.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Eg(this,Rg)[Rg].get(e)}getAll(){return[...Eg(this,Rg)[Rg].values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Jh(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Jh(e,t)):t}notify(e){Cf.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Cf.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Cf.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}constructor(e={}){super(),Object.defineProperty(this,Rg,{writable:!0,value:void 0}),this.config=e,Eg(this,Rg)[Rg]=new Map}});function Ag(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tg,Pg,Lg,jg,Ng,Fg,Dg,$g,Bg=0;function zg(e){return"__private_"+Bg+++"_"+e}var Ug=(Tg=zg("_queryCache"),Pg=zg("_mutationCache"),Lg=zg("_defaultOptions"),jg=zg("_queryDefaults"),Ng=zg("_mutationDefaults"),Fg=zg("_mountCount"),Dg=zg("_unsubscribeFocus"),$g=zg("_unsubscribeOnline"),class{mount(){Ag(this,Fg)[Fg]++,1===Ag(this,Fg)[Fg]&&(Ag(this,Dg)[Dg]=_f.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ag(this,Tg)[Tg].onFocus())}),Ag(this,$g)[$g]=Tf.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ag(this,Tg)[Tg].onOnline())}))}unmount(){Ag(this,Fg)[Fg]--,0===Ag(this,Fg)[Fg]&&(null==Ag(this,Dg)[Dg]||Ag(this,Dg)[Dg].call(this),Ag(this,Dg)[Dg]=void 0,null==Ag(this,$g)[$g]||Ag(this,$g)[$g].call(this),Ag(this,$g)[$g]=void 0)}isFetching(e){return Ag(this,Tg)[Tg].findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ag(this,Pg)[Pg].findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return Ag(this,Tg)[Tg].get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Ag(this,Tg)[Tg].build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Xh(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Ag(this,Tg)[Tg].findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=Ag(this,Tg)[Tg].get(n.queryHash),i=o?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==s)return Ag(this,Tg)[Tg].build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Cf.batch(()=>Ag(this,Tg)[Tg].findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return Ag(this,Tg)[Tg].get(t.queryHash)?.state}removeQueries(e){const t=Ag(this,Tg)[Tg];Cf.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=Ag(this,Tg)[Tg];return Cf.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Cf.batch(()=>Ag(this,Tg)[Tg].findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(Gh).catch(Gh)}invalidateQueries(e,t={}){return Cf.batch(()=>(Ag(this,Tg)[Tg].findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Cf.batch(()=>Ag(this,Tg)[Tg].findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Gh)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(Gh)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=Ag(this,Tg)[Tg].build(this,t);return r.isStaleByTime(Xh(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gh).catch(Gh)}fetchInfiniteQuery(e){return e.behavior=Gm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gh).catch(Gh)}ensureInfiniteQueryData(e){return e.behavior=Gm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Tf.isOnline()?Ag(this,Pg)[Pg].resumePausedMutations():Promise.resolve()}getQueryCache(){return Ag(this,Tg)[Tg]}getMutationCache(){return Ag(this,Pg)[Pg]}getDefaultOptions(){return Ag(this,Lg)[Lg]}setDefaultOptions(e){Ag(this,Lg)[Lg]=e}setQueryDefaults(e,t){Ag(this,jg)[jg].set(tf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ag(this,jg)[jg].values()],r={};return t.forEach(t=>{rf(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){Ag(this,Ng)[Ng].set(tf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ag(this,Ng)[Ng].values()],r={};return t.forEach(t=>{rf(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ag(this,Lg)[Lg].queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ef(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===hf&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...Ag(this,Lg)[Lg].mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ag(this,Tg)[Tg].clear(),Ag(this,Pg)[Pg].clear()}constructor(e={}){Object.defineProperty(this,Tg,{writable:!0,value:void 0}),Object.defineProperty(this,Pg,{writable:!0,value:void 0}),Object.defineProperty(this,Lg,{writable:!0,value:void 0}),Object.defineProperty(this,jg,{writable:!0,value:void 0}),Object.defineProperty(this,Ng,{writable:!0,value:void 0}),Object.defineProperty(this,Fg,{writable:!0,value:void 0}),Object.defineProperty(this,Dg,{writable:!0,value:void 0}),Object.defineProperty(this,$g,{writable:!0,value:void 0}),Ag(this,Tg)[Tg]=e.queryCache||new Ig,Ag(this,Pg)[Pg]=e.mutationCache||new hg,Ag(this,Lg)[Lg]=e.defaultOptions||{},Ag(this,jg)[jg]=new Map,Ag(this,Ng)[Ng]=new Map,Ag(this,Fg)[Fg]=0}}),Vg=o.createContext(void 0),Wg=e=>{const t=o.useContext(Vg);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qg=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,n.jsx)(Vg.Provider,{value:e,children:t})),Hg=o.createContext(!1),Gg=o.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Kg=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Zg(e,t){return function(e,t,r){const n=o.useContext(Hg),i=o.useContext(Gg),s=Wg(r),a=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const l=s.getQueryCache().get(a.queryHash);a._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(a),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?mf(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(a,i,l),(e=>{o.useEffect(()=>{e.clearReset()},[e])})(i);const c=!s.getQueryCache().get(a.queryHash),[u]=o.useState(()=>new t(s,a)),p=u.getOptimisticResult(a),d=!n&&!1!==e.subscribed;if(o.useSyncExternalStore(o.useCallback(e=>{const t=d?u.subscribe(Cf.batchCalls(e)):Gh;return u.updateResult(),t},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),o.useEffect(()=>{u.setOptions(a)},[a,u]),((e,t)=>e?.suspense&&t.isPending)(a,p))throw Kg(a,u,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&void 0===e.data||mf(r,[e.error,n])))({result:p,errorResetBoundary:i,throwOnError:a.throwOnError,query:l,suspense:a.suspense}))throw p.error;if(s.getDefaultOptions().queries?._experimental_afterQuery?.(a,p),a.experimental_prefetchInRender&&!Hh&&((e,t)=>e.isLoading&&e.isFetching&&!t)(p,n)){const e=c?Kg(a,u,i):l?.promise;e?.catch(Gh).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?p:u.trackResult(p)}(e,Pm,t)}function Xg(e,t){const r=Wg(t),[n]=o.useState(()=>new kg(r,e));o.useEffect(()=>{n.setOptions(e)},[n,e]);const i=o.useSyncExternalStore(o.useCallback(e=>n.subscribe(Cf.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=o.useCallback((e,t)=>{n.mutate(e,t).catch(Gh)},[n]);if(i.error&&mf(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const Yg={local:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},development:{SUPPORT_FORM_URL:"https://my.dev.elementor.red/support-form/",FEEDBACK_API:"https://my.dev.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.dev.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.dev.elementor.red"},staging:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},production:{SUPPORT_FORM_URL:"https://my.elementor.com/support-form/",FEEDBACK_API:"https://my.elementor.com/feedback/api/v1",WHATS_NEW_API:"https://my.elementor.com/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.elementor.com"}};function Jg(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qg}=Object.prototype,{getPrototypeOf:ev}=Object,{iterator:tv,toStringTag:rv}=Symbol,nv=(ov=Object.create(null),e=>{const t=Qg.call(e);return ov[t]||(ov[t]=t.slice(8,-1).toLowerCase())});var ov;const iv=e=>(e=e.toLowerCase(),t=>nv(t)===e),sv=e=>t=>typeof t===e,{isArray:av}=Array,lv=sv("undefined");function cv(e){return null!==e&&!lv(e)&&null!==e.constructor&&!lv(e.constructor)&&dv(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uv=iv("ArrayBuffer"),pv=sv("string"),dv=sv("function"),hv=sv("number"),fv=e=>null!==e&&"object"==typeof e,mv=e=>{if("object"!==nv(e))return!1;const t=ev(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||rv in e||tv in e)},gv=iv("Date"),vv=iv("File"),yv=iv("Blob"),bv=iv("FileList"),wv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{},xv=void 0!==wv.FormData?wv.FormData:void 0,_v=iv("URLSearchParams"),[Sv,kv,Cv,Ov]=["ReadableStream","Request","Response","Headers"].map(iv);function Ev(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),av(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const Mv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,Iv=e=>!lv(e)&&e!==Mv,Av=(Tv="undefined"!=typeof Uint8Array&&ev(Uint8Array),e=>Tv&&e instanceof Tv);var Tv;const Pv=iv("HTMLFormElement"),Lv=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),jv=iv("RegExp"),Nv=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ev(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},Fv=iv("AsyncFunction"),Dv=($v="function"==typeof setImmediate,Bv=dv(Mv.postMessage),$v?setImmediate:Bv?((e,t)=>(Mv.addEventListener("message",({source:r,data:n})=>{r===Mv&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),Mv.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var $v,Bv;const zv="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Mv):"undefined"!=typeof process&&process.nextTick||Dv,Uv={isArray:av,isArrayBuffer:uv,isBuffer:cv,isFormData:e=>{let t;return e&&(xv&&e instanceof xv||dv(e.append)&&("formdata"===(t=nv(e))||"object"===t&&dv(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&uv(e.buffer),t},isString:pv,isNumber:hv,isBoolean:e=>!0===e||!1===e,isObject:fv,isPlainObject:mv,isEmptyObject:e=>{if(!fv(e)||cv(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Sv,isRequest:kv,isResponse:Cv,isHeaders:Ov,isUndefined:lv,isDate:gv,isFile:vv,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:yv,isRegExp:jv,isFunction:dv,isStream:e=>fv(e)&&dv(e.pipe),isURLSearchParams:_v,isTypedArray:Av,isFileList:bv,forEach:Ev,merge:function e(){const{caseless:t,skipUndefined:r}=Iv(this)&&this||{},n={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=t&&Rv(n,i)||i;mv(n[s])&&mv(o)?n[s]=e(n[s],o):mv(o)?n[s]=e({},o):av(o)?n[s]=o.slice():r&&lv(o)||(n[s]=o)};for(let e=0,t=arguments.length;e(Ev(t,(t,n)=>{r&&dv(t)?Object.defineProperty(e,n,{value:Jg(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&ev(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:nv,kindOfTest:iv,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(av(e))return e;let t=e.length;if(!hv(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[tv]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Pv,hasOwnProperty:Lv,hasOwnProp:Lv,reduceDescriptors:Nv,freezeMethods:e=>{Nv(e,(t,r)=>{if(dv(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];dv(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return av(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Rv,global:Mv,isContextDefined:Iv,isSpecCompliantForm:function(e){return!!(e&&dv(e.append)&&"FormData"===e[rv]&&e[tv])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(fv(e)){if(t.indexOf(e)>=0)return;if(cv(e))return e;if(!("toJSON"in e)){t[n]=e;const o=av(e)?[]:{};return Ev(e,(e,t)=>{const i=r(e,n+1);!lv(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Fv,isThenable:e=>e&&(fv(e)||dv(e))&&dv(e.then)&&dv(e.catch),setImmediate:Dv,asap:zv,isIterable:e=>null!=e&&dv(e[tv])};class Vv extends Error{static from(e,t,r,n,o,i){const s=new Vv(e.message,t||e.code,r,n,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Uv.toJSONObject(this.config),code:this.code,status:this.status}}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}}Vv.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Vv.ERR_BAD_OPTION="ERR_BAD_OPTION",Vv.ECONNABORTED="ECONNABORTED",Vv.ETIMEDOUT="ETIMEDOUT",Vv.ERR_NETWORK="ERR_NETWORK",Vv.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Vv.ERR_DEPRECATED="ERR_DEPRECATED",Vv.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Vv.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Vv.ERR_CANCELED="ERR_CANCELED",Vv.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Vv.ERR_INVALID_URL="ERR_INVALID_URL";const Wv=Vv;function qv(e){return Uv.isPlainObject(e)||Uv.isArray(e)}function Hv(e){return Uv.endsWith(e,"[]")?e.slice(0,-2):e}function Gv(e,t,r){return e?e.concat(t).map(function(e,t){return e=Hv(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const Kv=Uv.toFlatObject(Uv,{},null,function(e){return/^is[A-Z]/.test(e)});function Zv(e,t,r){if(!Uv.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Uv.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Uv.isUndefined(t[e])})).metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Uv.isSpecCompliantForm(t);if(!Uv.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Uv.isDate(e))return e.toISOString();if(Uv.isBoolean(e))return e.toString();if(!a&&Uv.isBlob(e))throw new Wv("Blob is not supported. Use a Buffer instead.");return Uv.isArrayBuffer(e)||Uv.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){let a=e;if(Uv.isReactNative(t)&&Uv.isReactNativeBlob(e))return t.append(Gv(o,r,i),l(e)),!1;if(e&&!o&&"object"==typeof e)if(Uv.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Uv.isArray(e)&&function(e){return Uv.isArray(e)&&!e.some(qv)}(e)||(Uv.isFileList(e)||Uv.endsWith(r,"[]"))&&(a=Uv.toArray(e)))return r=Hv(r),a.forEach(function(e,n){!Uv.isUndefined(e)&&null!==e&&t.append(!0===s?Gv([r],n,i):null===s?r:r+"[]",l(e))}),!1;return!!qv(e)||(t.append(Gv(o,r,i),l(e)),!1)}const u=[],p=Object.assign(Kv,{defaultVisitor:c,convertValue:l,isVisitable:qv});if(!Uv.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Uv.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),Uv.forEach(r,function(r,i){!0===(!(Uv.isUndefined(r)||null===r)&&o.call(t,r,Uv.isString(i)?i.trim():i,n,p))&&e(r,n?n.concat(i):[i])}),u.pop()}}(e),t}function Xv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Yv(e,t){this._pairs=[],e&&Zv(e,this,t)}const Jv=Yv.prototype;function Qv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ey(e,t,r){if(!t)return e;const n=r&&r.encode||Qv,o=Uv.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let s;if(s=i?i(t,o):Uv.isURLSearchParams(t)?t.toString():new Yv(t,o).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Jv.append=function(e,t){this._pairs.push([e,t])},Jv.toString=function(e){const t=e?function(t){return e.call(this,t,Xv)}:Xv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ty{use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Uv.forEach(this.handlers,function(t){null!==t&&e(t)})}constructor(){this.handlers=[]}}const ry={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ny={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Yv,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},oy="undefined"!=typeof window&&"undefined"!=typeof document,iy="object"==typeof navigator&&navigator||void 0,sy=oy&&(!iy||["ReactNative","NativeScript","NS"].indexOf(iy.product)<0),ay="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ly=oy&&window.location.href||"http://localhost",cy={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oy,hasStandardBrowserEnv:sy,hasStandardBrowserWebWorkerEnv:ay,navigator:iy,origin:ly},Symbol.toStringTag,{value:"Module"})),...ny};function uy(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&Uv.isArray(n)?n.length:i,a?(Uv.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s):(n[i]&&Uv.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Uv.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){return Uv.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const py={transitional:ry,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Uv.isObject(e);if(o&&Uv.isHTMLForm(e)&&(e=new FormData(e)),Uv.isFormData(e))return n?JSON.stringify(uy(e)):e;if(Uv.isArrayBuffer(e)||Uv.isBuffer(e)||Uv.isStream(e)||Uv.isFile(e)||Uv.isBlob(e)||Uv.isReadableStream(e))return e;if(Uv.isArrayBufferView(e))return e.buffer;if(Uv.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Zv(e,new cy.classes.URLSearchParams,{visitor:function(e,t,r,n){return cy.isNode&&Uv.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Uv.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Zv(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Uv.isString(e))try{return(0,JSON.parse)(e),Uv.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||py.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Uv.isResponse(e)||Uv.isReadableStream(e))return e;if(e&&Uv.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw Wv.from(e,Wv.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cy.classes.FormData,Blob:cy.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Uv.forEach(["delete","get","head","post","put","patch"],e=>{py.headers[e]={}});const dy=py,hy=Uv.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fy=Symbol("internals");function my(e,t){if(!1!==e&&null!=e)if(Uv.isArray(e))e.forEach(e=>my(e,t));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function gy(e){return e&&String(e).trim().toLowerCase()}function vy(e){return!1===e||null==e?e:Uv.isArray(e)?e.map(vy):function(e){let t=e.length;for(;t>0;){const r=e.charCodeAt(t-1);if(10!==r&&13!==r)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function yy(e,t,r,n,o){return Uv.isFunction(n)?n.call(this,t,r):(o&&(t=r),Uv.isString(t)?Uv.isString(n)?-1!==t.indexOf(n):Uv.isRegExp(n)?n.test(t):void 0:void 0)}class by{set(e,t,r){const n=this;function o(e,t,r){const o=gy(t);if(!o)throw new Error("header name must be a non-empty string");const i=Uv.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(my(e,t),n[i||t]=vy(e))}const i=(e,t)=>Uv.forEach(e,(e,r)=>o(e,r,t));if(Uv.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Uv.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&hy[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(Uv.isObject(e)&&Uv.isIterable(e)){let r,n,o={};for(const t of e){if(!Uv.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?Uv.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=gy(e)){const r=Uv.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Uv.isFunction(t))return t.call(this,e,r);if(Uv.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gy(e)){const r=Uv.findKey(this,e);return!(!r||void 0===this[r]||t&&!yy(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=gy(e)){const o=Uv.findKey(r,e);!o||t&&!yy(0,r[o],o,t)||(delete r[o],n=!0)}}return Uv.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!yy(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Uv.forEach(this,(n,o)=>{const i=Uv.findKey(r,o);if(i)return t[i]=vy(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();s!==o&&delete t[o],t[s]=vy(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Uv.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Uv.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[fy]=this[fy]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=gy(e);t[n]||(function(e,t){const r=Uv.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Uv.isArray(e)?e.forEach(n):n(e),this}constructor(e){e&&this.set(e)}}by.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Uv.reduceDescriptors(by.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Uv.freezeMethods(by);const wy=by;function xy(e,t){const r=this||dy,n=t||r,o=wy.from(n.headers);let i=n.data;return Uv.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function _y(e){return!(!e||!e.__CANCEL__)}const Sy=class extends Wv{constructor(e,t,r){super(e??"canceled",Wv.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function ky(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Wv("Request failed with status code "+r.status,[Wv.ERR_BAD_REQUEST,Wv.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Cy=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=n[s];o||(o=l),r[i]=a,n[i]=l;let u=s,p=0;for(;u!==i;)p+=r[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o{l=i,s=null,a&&(clearTimeout(a),a=null),(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,l=o(a);n=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})})(...r)};return[(...e)=>{const t=Date.now(),r=t-l;r>=c?u(e,t):(s=e,a||(a=setTimeout(()=>{a=null,u(s)},c-r)))},()=>s&&u(s)]}(0,r)},Oy=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ey=e=>(...t)=>Uv.asap(()=>e(...t)),Ry=cy.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,cy.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(cy.origin),cy.navigator&&/(msie|trident)/i.test(cy.navigator.userAgent)):()=>!0,My=cy.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Uv.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),Uv.isString(n)&&a.push(`path=${n}`),Uv.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),Uv.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Iy(e,t,r){let n=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ay=e=>e instanceof wy?{...e}:e;function Ty(e,t){t=t||{};const r={};function n(e,t,r,n){return Uv.isPlainObject(e)&&Uv.isPlainObject(t)?Uv.merge.call({caseless:n},e,t):Uv.isPlainObject(t)?Uv.merge({},t):Uv.isArray(t)?t.slice():t}function o(e,t,r,o){return Uv.isUndefined(t)?Uv.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Uv.isUndefined(t))return n(void 0,t)}function s(e,t){return Uv.isUndefined(t)?Uv.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(Ay(e),Ay(t),0,!0)};return Uv.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=Uv.hasOwnProp(l,n)?l[n]:o,s=i(e[n],t[n],n);Uv.isUndefined(s)&&i!==a||(r[n]=s)}),r}const Py=e=>{const t=Ty({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=wy.from(s),t.url=ey(Iy(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Uv.isFormData(r))if(cy.hasStandardBrowserEnv||cy.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Uv.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(cy.hasStandardBrowserEnv&&(n&&Uv.isFunction(n)&&(n=n(t)),n||!1!==n&&Ry(t.url))){const e=o&&i&&My.read(i);e&&s.set(o,e)}return t},Ly="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Py(e);let o=n.data;const i=wy.from(n.headers).normalize();let s,a,l,c,u,{responseType:p,onUploadProgress:d,onDownloadProgress:h}=n;function f(){c&&c(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=wy.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ky(function(e){t(e),f()},function(e){r(e),f()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new Wv("Request aborted",Wv.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new Wv(n,Wv.ERR_NETWORK,e,m);o.event=t||null,r(o),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||ry;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Wv(t,o.clarifyTimeoutError?Wv.ETIMEDOUT:Wv.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Uv.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Uv.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),p&&"json"!==p&&(m.responseType=n.responseType),h&&([l,u]=Cy(h,!0),m.addEventListener("progress",l)),d&&m.upload&&([a,c]=Cy(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new Sy(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);v&&-1===cy.protocols.indexOf(v)?r(new Wv("Unsupported protocol "+v+":",Wv.ERR_BAD_REQUEST,e)):m.send(o||null)})},jy=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Wv?t:new Sy(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Wv(`timeout of ${t}ms exceeded`,Wv.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>Uv.asap(s),a}},Ny=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Ny(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Dy}=Uv,$y=(({Request:e,Response:t})=>({Request:e,Response:t}))(Uv.global),{ReadableStream:By,TextEncoder:zy}=Uv.global,Uy=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Vy=e=>{e=Uv.merge.call({skipUndefined:!0},$y,e);const{fetch:t,Request:r,Response:n}=e,o=t?Dy(t):"function"==typeof fetch,i=Dy(r),s=Dy(n);if(!o)return!1;const a=o&&Dy(By),l=o&&("function"==typeof zy?(c=new zy,e=>c.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var c;const u=i&&a&&Uy(()=>{let e=!1;const t=new By,n=new r(cy.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!n}),p=s&&a&&Uy(()=>Uv.isReadableStream(new n("").body)),d={stream:p&&(e=>e.body)};return o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new Wv(`Response type '${e}' is not supported`,Wv.ERR_NOT_SUPPORT,r)})}),async e=>{let{url:o,method:s,data:a,signal:c,cancelToken:h,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:y,withCredentials:b="same-origin",fetchOptions:w}=Py(e),x=t||fetch;v=v?(v+"").toLowerCase():"text";let _=jy([c,h&&h.toAbortSignal()],f),S=null;const k=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let C;try{if(g&&u&&"get"!==s&&"head"!==s&&0!==(C=await(async(e,t)=>Uv.toFiniteNumber(e.getContentLength())??(async e=>{if(null==e)return 0;if(Uv.isBlob(e))return e.size;if(Uv.isSpecCompliantForm(e)){const t=new r(cy.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Uv.isArrayBufferView(e)||Uv.isArrayBuffer(e)?e.byteLength:(Uv.isURLSearchParams(e)&&(e+=""),Uv.isString(e)?(await l(e)).byteLength:void 0)})(t))(y,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(Uv.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,r]=Oy(C,Cy(Ey(g)));a=Fy(t.body,65536,e,r)}}Uv.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in r.prototype,c={...w,signal:_,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};S=i&&new r(o,c);let h=await(i?x(S,w):x(o,c));const f=p&&("stream"===v||"response"===v);if(p&&(m||f&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=Uv.toFiniteNumber(h.headers.get("content-length")),[r,o]=m&&Oy(t,Cy(Ey(m),!0))||[];h=new n(Fy(h.body,65536,r,()=>{o&&o(),k&&k()}),e)}v=v||"text";let O=await d[Uv.findKey(d,v)||"text"](h,e);return!f&&k&&k(),await new Promise((t,r)=>{ky(t,r,{data:O,headers:wy.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:S})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Wv("Network Error",Wv.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw Wv.from(t,t&&t.code,e,S,t&&t.response)}}},Wy=new Map,qy=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,l=i.length,c=Wy;for(;l--;)s=i[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:Vy(t)),c=a;return a};qy();const Hy={http:null,xhr:Ly,fetch:{get:qy}};Uv.forEach(Hy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Gy=e=>`- ${e}`,Ky=e=>Uv.isFunction(e)||null===e||!1===e,Zy=function(e,t){e=Uv.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(Gy).join("\n"):" "+Gy(e[0]):"as no adapter specified";throw new Wv("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function Xy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sy(null,e)}function Yy(e){return Xy(e),e.headers=wy.from(e.headers),e.data=xy.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zy(e.adapter||dy.adapter,e)(e).then(function(t){return Xy(e),t.data=xy.call(e,e.transformResponse,t),t.headers=wy.from(t.headers),t},function(t){return _y(t)||(Xy(e),t&&t.response&&(t.response.data=xy.call(e,e.transformResponse,t.response),t.response.headers=wy.from(t.response.headers))),Promise.reject(t)})}const Jy="1.15.0",Qy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const eb={};Qy.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Jy+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Wv(n(o," has been removed"+(t?" in "+t:"")),Wv.ERR_DEPRECATED);return t&&!eb[o]&&(eb[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},Qy.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const tb={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Wv("options must be an object",Wv.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Wv("option "+i+" must be "+r,Wv.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Wv("Unknown option "+i,Wv.ERR_BAD_OPTION)}},validators:Qy},rb=tb.validators;class nb{async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?"":r.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ty(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&tb.assertOptions(r,{silentJSONParsing:rb.transitional(rb.boolean),forcedJSONParsing:rb.transitional(rb.boolean),clarifyTimeoutError:rb.transitional(rb.boolean),legacyInterceptorReqResOrdering:rb.transitional(rb.boolean)},!1),null!=n&&(Uv.isFunction(n)?t.paramsSerializer={serialize:n}:tb.assertOptions(n,{encode:rb.function,serialize:rb.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tb.assertOptions(t,{baseUrl:rb.spelling("baseURL"),withXsrfToken:rb.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Uv.merge(o.common,o[t.method]);o&&Uv.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=wy.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||ry;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,p=0;if(!a){const e=[Yy.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);p{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ib(function(t){e=t}),cancel:e}}constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Sy(e,n,o),t(r.reason))})}}const sb=ib,ab={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ab).forEach(([e,t])=>{ab[t]=e});const lb=ab,cb=function e(t){const r=new ob(t),n=Jg(ob.prototype.request,r);return Uv.extend(n,ob.prototype,r,{allOwnKeys:!0}),Uv.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ty(t,r))},n}(dy);cb.Axios=ob,cb.CanceledError=Sy,cb.CancelToken=sb,cb.isCancel=_y,cb.VERSION=Jy,cb.toFormData=Zv,cb.AxiosError=Wv,cb.Cancel=cb.CanceledError,cb.all=function(e){return Promise.all(e)},cb.spread=function(e){return function(t){return e.apply(null,t)}},cb.isAxiosError=function(e){return Uv.isObject(e)&&!0===e.isAxiosError},cb.mergeConfig=Ty,cb.AxiosHeaders=wy,cb.formToJSON=e=>uy(Uv.isHTMLForm(e)?new FormData(e):e),cb.getAdapter=Zy,cb.HttpStatusCode=lb,cb.default=cb;class ub{static initialize(e){ub.config=e}static create(e,t=3e4,r){if(!ub.config)throw new Error("HttpClient must be initialized with config before use. Call HttpClient.initialize(config) first.");const n=ub.config[e];if(!n)throw new Error(`Configuration key "${e}" is not found in the environment config`);return new ub(n,t,r)}async get(e,t,r){return this.http.get(e,{params:t,...r})}async post(e,t,r){return this.http.post(e,t,r)}async put(e,t,r){return this.http.put(e,t,r)}async delete(e,t){return this.http.delete(e,t)}getInstance(){return this.http}constructor(e,t=3e4,r){const n={Accept:"application/json","Content-Type":"application/json",...r||{}};this.http=cb.create({baseURL:e,timeout:t,responseType:"json",headers:n})}}var pb,db,hb,fb;ub.config=null,pb={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},db=["(","?"],hb={")":["("],":":["?","?:"]},fb=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var __={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}},mb={contextDelimiter:"",onMissingKey:null};function gb(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},mb)this.options[r]=void 0!==t&&r in t?t[r]:mb[r]}gb.prototype.getPluralForm=function(e,t){var r,n,o,i,s=this.pluralForms[e];return s||("function"!=typeof(o=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(e){var t,r,n;for(t=e.split(";"),r=0;r=0||pb[o]1===e?0:1},yb=/^i18n\.(n?gettext|has_translation)(_|$)/;var bb=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},wb=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},xb=function(e,t){return function(r,n,o,i=10){const s=e[t];if(!wb(r))return;if(!bb(n))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const a={callback:o,priority:i,namespace:n};if(s[r]){const e=s[r].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=a:e.splice(t,0,a),s.__current.forEach(e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex++})}else s[r]={handlers:[a],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,o,i)}},_b=function(e,t,r=!1){return function(n,o){const i=e[t];if(!wb(n))return;if(!r&&!bb(o))return;if(!i[n])return 0;let s=0;if(r)s=i[n].handlers.length,i[n]={runs:i[n].runs,handlers:[]};else{const e=i[n].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),s++,i.__current.forEach(e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex--}))}return"hookRemoved"!==n&&e.doAction("hookRemoved",n,o),s}},Sb=function(e,t){return function(r,n){const o=e[t];return void 0!==n?r in o&&o[r].handlers.some(e=>e.namespace===n):r in o}},kb=function(e,t,r,n){return function(o,...i){const s=e[t];s[o]||(s[o]={handlers:[],runs:0}),s[o].runs++;const a=s[o].handlers;if(!a||!a.length)return r?i[0]:void 0;const l={name:o,currentIndex:0};return(n?async function(){try{s.__current.add(l);let e=r?i[0]:void 0;for(;l.currentIndex0:Array.from(n.__current).some(e=>e.name===r)}},Eb=function(e,t){return function(r){const n=e[t];if(wb(r))return n[r]&&n[r].runs?n[r].runs:0}};const Rb=((e,t,r)=>{const n=new gb({}),o=new Set,i=()=>{o.forEach(e=>e())},s=(e,t="default")=>{n.data[t]={...n.data[t],...e},n.data[t][""]={...vb,...n.data[t]?.[""]},delete n.pluralForms[t]},a=(e,t)=>{s(e,t),i()},l=(e="default",t,r,o,i)=>(n.data[e]||s(void 0,e),n.dcnpgettext(e,t,r,o,i)),c=(e="default")=>e,u=(e,t,n)=>{let o=l(n,t,e);return r?(o=r.applyFilters("i18n.gettext_with_context",o,e,t,n),r.applyFilters("i18n.gettext_with_context_"+c(n),o,e,t,n)):o};if(r){const e=e=>{yb.test(e)&&i()};r.addAction("hookAdded","core/i18n",e),r.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>n.data[e],setLocaleData:a,addLocaleData:(e,t="default")=>{n.data[t]={...n.data[t],...e,"":{...vb,...n.data[t]?.[""],...e?.[""]}},delete n.pluralForms[t],i()},resetLocaleData:(e,t)=>{n.data={},n.pluralForms={},a(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let n=l(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+c(t),n,e,t)):n},_x:u,_n:(e,t,n,o)=>{let i=l(o,void 0,e,t,n);return r?(i=r.applyFilters("i18n.ngettext",i,e,t,n,o),r.applyFilters("i18n.ngettext_"+c(o),i,e,t,n,o)):i},_nx:(e,t,n,o,i)=>{let s=l(i,o,e,t,n);return r?(s=r.applyFilters("i18n.ngettext_with_context",s,e,t,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+c(i),s,e,t,n,o,i)):s},isRTL:()=>"rtl"===u("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+""+e:e;let s=!!n.data?.[null!=o?o:"default"]?.[i];return r&&(s=r.applyFilters("i18n.has_translation",s,e,t,o),s=r.applyFilters("i18n.has_translation_"+c(o),s,e,t,o)),s}}})(0,0,new class{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=xb(this,"actions"),this.addFilter=xb(this,"filters"),this.removeAction=_b(this,"actions"),this.removeFilter=_b(this,"filters"),this.hasAction=Sb(this,"actions"),this.hasFilter=Sb(this,"filters"),this.removeAllActions=_b(this,"actions",!0),this.removeAllFilters=_b(this,"filters",!0),this.doAction=kb(this,"actions",!1,!1),this.doActionAsync=kb(this,"actions",!1,!0),this.applyFilters=kb(this,"filters",!0,!1),this.applyFiltersAsync=kb(this,"filters",!0,!0),this.currentAction=Cb(this,"actions"),this.currentFilter=Cb(this,"filters"),this.doingAction=Ob(this,"actions"),this.doingFilter=Ob(this,"filters"),this.didAction=Eb(this,"actions"),this.didFilter=Eb(this,"filters")}});Rb.getLocaleData.bind(Rb),Rb.setLocaleData.bind(Rb),Rb.resetLocaleData.bind(Rb),Rb.subscribe.bind(Rb);const Mb=Rb.__.bind(Rb);Rb._x.bind(Rb),Rb._n.bind(Rb),Rb._nx.bind(Rb),Rb.isRTL.bind(Rb),Rb.hasTranslation.bind(Rb);const Ib=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})};function Ab(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function Tb(e){try{return decodeURIComponent(e)}catch(t){return e}}function Pb(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(Tb);return r&&function(e,t,r){const n=t.length,o=n-1;for(let i=0;idelete n[e]);const i=Ab(n);return i?o+"?"+i:o}function Db(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map(e=>e.split("=")).map(e=>e.map(decodeURIComponent)).sort((e,t)=>e[0].localeCompare(t[0])).map(e=>e.map(encodeURIComponent)).map(e=>e.join("=")).join("&"):n}function $b(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const Bb=({path:e,url:t,...r},n)=>({...r,url:t&&Lb(t,n),path:e&&Lb(e,n)}),zb=e=>e.json?e.json():Promise.reject(e),Ub=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},Vb=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await Qb({...Bb(e,{per_page:100}),parse:!1}),n=await zb(r);if(!Array.isArray(n))return n;let o=Ub(r);if(!o)return n;let i=[].concat(n);for(;o;){const t=await Qb({...e,path:void 0,url:o,parse:!1}),r=await zb(t);i=i.concat(r),o=Ub(t)}return i},Wb=new Set(["PATCH","PUT","DELETE"]),qb="GET",Hb=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch(e=>Gb(e,t));function Gb(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:Mb("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})})(e).then(e=>{const t={code:"unknown_error",message:Mb("An unknown error occurred.")};throw e||t})}const Kb={Accept:"application/json, */*;q=0.1"},Zb={credentials:"include"},Xb=[(e,t)=>("string"!=typeof e.url||Nb(e.url,"_locale")||(e.url=Lb(e.url,{_locale:"user"})),"string"!=typeof e.path||Nb(e.path,"_locale")||(e.path=Lb(e.path,{_locale:"user"})),t(e)),Ib,(e,t)=>{const{method:r=qb}=e;return Wb.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},Vb],Yb=e=>{if(e.status>=200&&e.status<300)return e;throw e};let Jb=e=>{const{url:t,path:r,data:n,parse:o=!0,...i}=e;let{body:s,headers:a}=e;return a={...Kb,...a},n&&(s=JSON.stringify(n),a["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...Zb,...i,body:s,headers:a}).then(e=>Promise.resolve(e).then(Yb).catch(e=>Gb(e,o)).then(e=>Hb(e,o)),e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Mb("You are probably offline.")}})};function Qb(e){const t=Xb.reduceRight((e,t)=>r=>t(r,e),Jb);return t(e).catch(t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(Qb.nonceEndpoint).then(Yb).then(e=>e.text()).then(t=>(Qb.nonceMiddleware.nonce=t,Qb(e))))}Qb.use=function(e){Xb.unshift(e)},Qb.setFetchHandler=function(e){Jb=e},Qb.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},Qb.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[Db(e),t]));return(e,r)=>{const{parse:n=!0}=e;let o=e.path;if(!o&&e.url){const{rest_route:t,...r}=Pb(e.url);"string"==typeof t&&(o=Lb(t,r))}if("string"!=typeof o)return r(e);const i=e.method||"GET",s=Db(o);if("GET"===i&&t[s]){const e=t[s];return delete t[s],$b(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][s]){const e=t[i][s];return delete t[i][s],$b(e,!!n)}return r(e)}},Qb.createRootURLMiddleware=e=>(t,r)=>Ib(t,t=>{let n,o=t.url,i=t.path;return"string"==typeof i&&(n=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(i=i.replace("?","&")),o=n+i),r({...t,url:o})}),Qb.fetchAllMiddleware=Vb,Qb.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let r=0;const n=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>r<5?n(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject())));return t({...e,parse:!1}).catch(t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?n(r).catch(()=>!1!==e.parse?Promise.reject({code:"post_process",message:Mb("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)):Gb(t,e.parse)}).then(t=>Hb(t,e.parse))},Qb.createThemePreviewMiddleware=e=>(t,r)=>{if("string"==typeof t.url){const r=jb(t.url,"wp_theme_preview");void 0===r?t.url=Lb(t.url,{wp_theme_preview:e}):""===r&&(t.url=Fb(t.url,"wp_theme_preview"))}if("string"==typeof t.path){const r=jb(t.path,"wp_theme_preview");void 0===r?t.path=Lb(t.path,{wp_theme_preview:e}):""===r&&(t.path=Fb(t.path,"wp_theme_preview"))}return r(t)};class ew extends Error{constructor(e){super(e),this.name="APIError"}}var tw=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e.HEAD="HEAD",e}({});const rw="/wp/v2";class nw{static async request({path:e,data:t,method:r="POST"}){try{const n=(window?.elementorOneSettingsData?.wpRestUrl||"/wp-json/").replace(/\/$/,""),o=window?.elementorOneSettingsData?.wpRestNonce||"";let i=`${n}${e}`;"GET"!==r||e.startsWith(rw)||(i=Lb(i,{sb_time:(new Date).getTime()}));const s=await Qb({url:i,method:r,data:t,headers:{"X-WP-Nonce":o}});if(e.startsWith(rw))return s;if(void 0===s?.success)return s;if(!s.success)throw new ew(s.data?.message||"Unknown error");return s.data}catch(e){throw e instanceof ew?e:new ew(e?.message||"Unknown error")}}}const ow="/elementor-one/v1";class iw extends nw{static async initConnect(e="new"){const t={wp_rest:window?.elementorOneSettingsData?.wpRestNonce};return"update"===e&&(t.update_redirect_uri=!0),nw.request({method:tw.POST,path:`${ow}/connect/authorize`,data:t})}static async disconnect(){return nw.request({method:tw.POST,path:`${ow}/connect/disconnect`,data:{wp_rest:window?.elementorOneSettingsData?.wpRestNonce}})}static async getPluginSettings(){return nw.request({method:tw.GET,path:`${ow}/settings`})}static async getNotifications(e,t){return nw.request({method:tw.GET,path:`${ow}/top-bar/notifications?app_name=${e}&app_version=${t}`})}static async sendFeedback(e){return nw.request({method:tw.POST,path:`${ow}/top-bar/feedback`,data:e})}}const sw=new ub("https://ipapi.co/json/");class aw{static async getCountryCode(){const{data:e}=await sw.get("");return e.country}}var lw;if("undefined"==typeof window){var cw={hostname:""};lw={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:cw,referrer:""},screen:{width:0,height:0},location:cw,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else lw=window;var uw={DEBUG:!1,LIB_VERSION:"2.77.0"},pw="__mp_targeting",dw="__mp_recorder",hw="__MP_TARGETING_FILENAME__";function _x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}function Sw(e,t){return Sw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sw(e,t)}function kw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Cw(e){var t="function"==typeof Map?new Map:void 0;return Cw=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return gw(e,arguments,bw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sw(n,e)},Cw(e)}function Ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ow=function(){return!!e})()}function Ew(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_x(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Rw(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Iw,Aw=Object.defineProperty,Tw=function(e,t,r){return function(e,t,r){return t in e?Aw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":kw(t))?t+"":t,r)},Pw=Object.defineProperty,Lw=function(e,t,r){return function(e,t,r){return t in e?Pw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":kw(t))?t+"":t,r)},jw=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(jw||{}),Nw={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fw={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Dw={},$w={};function Bw(e,t,r){var n,o=e+"."+String(r);if($w[o])return $w[o].call(t);var i=function(e){if(Dw[e])return Dw[e];var t=globalThis[e],r=t.prototype,n=e in Nw?Nw[e]:void 0,o=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in Fw?Fw[e]:void 0,s=Boolean(i&&i.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(o&&s&&!globalThis.Zone)return Dw[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?Dw[e]=c:r}catch(e){return r}}(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?($w[o]=s,s.call(t)):t[r]}var zw=function(e){return Bw("Node",e,"childNodes")},Uw=function(e){return Bw("Node",e,"parentNode")},Vw=function(e){return Bw("Node",e,"parentElement")},Ww=function(e){return Bw("Node",e,"textContent")},qw=function(e){return e&&"shadowRoot"in e?Bw("Element",e,"shadowRoot"):null};function Hw(e){return e.nodeType===e.ELEMENT_NODE}function Gw(e){var t=e&&"host"in e&&"mode"in e&&function(e){return e&&"host"in e?Bw("ShadowRoot",e,"host"):null}(e)||null;return Boolean(t&&"shadowRoot"in t&&qw(t)===e)}function Kw(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Zw(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return Xw(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function Xw(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=Zw(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?ax(r,e.styleSheet.href):r}var n,o=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,o=o.replace(n,"$1\\$2")),t?ax(o,t):o}var Yw=function(){function e(){Lw(this,"idNodeMap",new Map),Lw(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Jw(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,o=e.type,i=e.value,s=e.maskInputFn,a=i||"",l=o&&Qw(o);return(r[n.toLowerCase()]||l&&r[l])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Qw(e){return e.toLowerCase()}var ex="__rrweb_original__";function tx(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Qw(t):null}function rx(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,o=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==o?void 0:o[1])?n:null}var nx=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ox=/^(?:[a-z+]+:)?\/\//i,ix=/^www\..*/i,sx=/^(data:)([^,]*),(.*)/i;function ax(e,t){return(e||"").replace(nx,function(e,r,n,o,i,s){var a,l=n||i||s,c=r||o||"";if(!l)return e;if(ox.test(l)||ix.test(l))return"url("+c+l+c+")";if(sx.test(l))return"url("+c+l+c+")";if("/"===l[0])return"url("+c+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+l)+c+")";var u=t.split("/"),p=l.split("/");u.pop();for(var d,h=Ew(p);!(d=h()).done;){var f=d.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function lx(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var cx,ux,px=1,dx=new RegExp("[^a-z0-9-_:]");function hx(){return px++}var fx=/^[^ \t\n\r\u000c]+/,mx=/^[, \t\n\r\u000c]+/,gx=new WeakMap;function vx(e,t){return t&&""!==t.trim()?yx(e,t):t}function yx(e,t){var r=gx.get(e);if(r||(r=e.createElement("a"),gx.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function bx(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?vx(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}for(var o=[];n(mx),!(r>=t.length);){var i=n(fx);if(","===i.slice(-1))i=vx(e,i.substring(0,i.length-1)),o.push(i);else{var s="";i=vx(e,i);for(var a=!1;;){var l=t.charAt(r);if(""===l){o.push((i+s).trim());break}if(a)")"===l&&(a=!1);else{if(","===l){r+=1,o.push((i+s).trim());break}"("===l&&(a=!0)}s+=l,r+=1}}}return o.join(", ")}(e,n):"style"===r?ax(n,yx(e)):"object"===t&&"data"===r?vx(e,n):n:vx(e,n):n}function wx(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function xx(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&xx(Uw(e),t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&xx(Uw(e),t,r)}function Sx(e,t,r,n){var o;if(Hw(e)){if(!zw(o=e).length)return!1}else{if(null===Vw(e))return!1;o=Vw(e)}try{if("string"==typeof t){if(n){if(o.closest("."+t))return!0}else if(o.classList.contains(t))return!0}else if(xx(o,t,n))return!0;if(r)if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}catch(e){}return!1}function kx(e){return null==e?"":e.toLowerCase()}function Cx(e,t){var r=t.doc,n=t.mirror,o=t.blockClass,i=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,l=t.skipChild,c=void 0!==l&&l,u=t.inlineStylesheet,p=void 0===u||u,d=t.maskInputOptions,h=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,w=void 0!==b&&b,x=t.recordCanvas,_=void 0!==x&&x,S=t.onSerialize,k=t.onIframeLoad,C=t.iframeLoadTimeout,O=void 0===C?5e3:C,E=t.onStylesheetLoad,R=t.stylesheetLoadTimeout,M=void 0===R?5e3:R,I=t.keepIframeSrcFn,A=void 0===I?function(){return!1}:I,T=t.newlyAddedElement,P=void 0!==T&&T,L=t.cssCaptured,j=void 0!==L&&L,N=t.needsMask,F=t.preserveWhiteSpace,D=void 0===F||F;N||(N=Sx(e,s,a,void 0===N));var $,B=function(e,t){var r=t.doc,n=t.blockClass,o=t.blockSelector,i=t.needsMask,s=t.inlineStylesheet,a=t.maskInputOptions,l=void 0===a?{}:a,c=t.maskTextFn,u=t.maskInputFn,p=t.dataURLOptions,d=void 0===p?{}:p,h=t.inlineImages,f=t.recordCanvas,m=t.keepIframeSrcFn,g=t.newlyAddedElement,v=void 0!==g&&g,y=t.cssCaptured,b=void 0!==y&&y,w=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,t.mirror);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:jw.Document,childNodes:[],compatMode:e.compatMode}:{type:jw.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:jw.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,o=t.inlineStylesheet,i=t.maskInputOptions,s=void 0===i?{}:i,a=t.maskInputFn,l=t.dataURLOptions,c=void 0===l?{}:l,u=t.inlineImages,p=t.recordCanvas,d=t.keepIframeSrcFn,h=t.newlyAddedElement,f=void 0!==h&&h,m=t.rootId,g=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector),v=function(e){if(xw(e,HTMLFormElement))return"form";var t=Qw(e.tagName);return dx.test(t)?"div":t}(e),y={},b=e.attributes.length,w=0;w1&&(k=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),o=[],i=0;if(n.length>1&&e&&"string"==typeof e)for(var s=lx(e,r),a=s.length/e.length,l=1;l2&&""===d[0]&&""!==n[l-1].textContent)h=s.indexOf(p,1);else if(1===d.length){if(p=p.substring(0,p.length-1),(d=s.split(p)).length<=1)return o.push(e),o;u=101}else u===c.length-1&&(h=s.indexOf(p));if(d.length>=2&&u>100){var f=n[l-1].textContent;if(f&&"string"==typeof f){var m=lx(f).length;h=s.indexOf(p,m)}-1===h&&(h=d[0].length)}if(-1!==h){for(var g=Math.floor(h/a);g>0&&g50*n.length)return o.push(e),o;var v=lx(e.substring(0,g),r);if(v.length===h){o.push(e.substring(0,g)),e=e.substring(g),s=s.substring(h);break}v.length",A=M.crossOrigin,T=function(){M.removeEventListener("load",T);try{cx.width=M.naturalWidth,cx.height=M.naturalHeight,ux.drawImage(M,0,0),y.rr_dataURL=cx.toDataURL(c.type,c.quality)}catch(e){if("anonymous"!==M.crossOrigin)return M.crossOrigin="anonymous",void(M.complete&&0!==M.naturalWidth?T():M.addEventListener("load",T));console.warn("Cannot inline img src="+I+"! Error: "+e)}"anonymous"===M.crossOrigin&&(A?y.crossOrigin=A:M.removeAttribute("crossorigin"))};M.complete&&0!==M.naturalWidth?T():M.addEventListener("load",T)}if("audio"===v||"video"===v){var P=y;P.rr_mediaState=e.paused?"paused":"played",P.rr_mediaCurrentTime=e.currentTime,P.rr_mediaPlaybackRate=e.playbackRate,P.rr_mediaMuted=e.muted,P.rr_mediaLoop=e.loop,P.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),g){var L=e.getBoundingClientRect(),j=L.width,N=L.height;y={class:y.class,rr_width:j+"px",rr_height:N+"px"}}"iframe"!==v||d(y.src)||(e.contentDocument||(y.rr_src=y.src),delete y.src);try{customElements.get(v)&&(r=!0)}catch(e){}return{type:jw.Element,tagName:v,attributes:y,childNodes:[],isSVG:(F=e,Boolean("svg"===F.tagName||F.ownerSVGElement)||void 0),needBlock:g,rootId:m,isCustom:r};var F}(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:s,maskInputOptions:l,maskInputFn:u,dataURLOptions:d,inlineImages:h,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:v,rootId:w});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,o=t.rootId,i=t.cssCaptured,s=Uw(e),a=s&&s.tagName,l="",c="STYLE"===a||void 0,u="SCRIPT"===a||void 0;return u?l="SCRIPT_PLACEHOLDER":i||(l=Ww(e),c&&l&&(l=ax(l,yx(t.doc)))),!c&&!u&&l&&r&&(l=n?n(l,Vw(e)):l.replace(/[\S]/g,"*")),{type:jw.Text,textContent:l||"",rootId:o}}(e,{doc:r,needsMask:i,maskTextFn:c,rootId:w,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:jw.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:jw.Comment,textContent:Ww(e)||"",rootId:w};default:return!1}}(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:N,inlineStylesheet:p,maskInputOptions:h,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,keepIframeSrcFn:A,newlyAddedElement:P,cssCaptured:j});if(!B)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===jw.Comment)return!0;if(e.type===jw.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===rx(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(kx(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===kx(e.attributes.name)||"icon"===kx(e.attributes.rel)||"apple-touch-icon"===kx(e.attributes.rel)||"shortcut icon"===kx(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&kx(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(kx(e.attributes.property).match(/^(og|twitter|fb):/)||kx(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===kx(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===kx(e.attributes.name)||"googlebot"===kx(e.attributes.name)||"bingbot"===kx(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===kx(e.attributes.name)||"generator"===kx(e.attributes.name)||"framework"===kx(e.attributes.name)||"publisher"===kx(e.attributes.name)||"progid"===kx(e.attributes.name)||kx(e.attributes.property).match(/^article:/)||kx(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===kx(e.attributes.name)||"yandex-verification"===kx(e.attributes.name)||"csrf-token"===kx(e.attributes.name)||"p:domain_verify"===kx(e.attributes.name)||"verify-v1"===kx(e.attributes.name)||"verification"===kx(e.attributes.name)||"shopify-checkout-api-token"===kx(e.attributes.name)))return!0}}return!1}(B,g)||!D&&B.type===jw.Text&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?-2:hx();var z=Object.assign(B,{id:$});if(n.add(e,z),-2===$)return null;S&&S(e);var U=!c;if(z.type===jw.Element){U=U&&!z.needBlock,delete z.needBlock;var V=qw(e);V&&Kw(V)&&(z.isShadowHost=!0)}if((z.type===jw.Document||z.type===jw.Element)&&U){g.headWhitespace&&z.type===jw.Element&&"head"===z.tagName&&(D=!1);var W={doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:p,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:D,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A,cssCaptured:!1};if(z.type===jw.Element&&"textarea"===z.tagName&&void 0!==z.attributes.value);else{z.type===jw.Element&&void 0!==z.attributes._cssText&&"string"==typeof z.attributes._cssText&&(W.cssCaptured=!0);for(var q,H=Ew(Array.from(zw(e)));!(q=H()).done;){var G=Cx(q.value,W);G&&z.childNodes.push(G)}}var K=null;if(Hw(e)&&(K=qw(e)))for(var Z,X=Ew(Array.from(zw(K)));!(Z=X()).done;){var Y=Cx(Z.value,W);Y&&(Kw(K)&&(Y.isShadow=!0),z.childNodes.push(Y))}}var J=Uw(e);return J&&Gw(J)&&Kw(J)&&(z.isShadow=!0),z.type===jw.Element&&"iframe"===z.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"===o){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(a),i=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&k){var r=Cx(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:D,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A});r&&k(e,r)}},O),z.type===jw.Element&&"link"===z.tagName&&"string"==typeof z.attributes.rel&&("stylesheet"===z.attributes.rel||"preload"===z.attributes.rel&&"string"==typeof z.attributes.href&&"css"===rx(z.attributes.href))&&function(e,t,r){var n,o=!1;try{n=e.sheet}catch(e){return}if(!n){var i=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(i),o=!0,t()})}}(e,function(){if(E){var t=Cx(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:N,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:D,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A});t&&E(e,t)}},M),z}var Ox={exports:{}},Ex=String,Rx=function(){return{isColorSupported:!1,reset:Ex,bold:Ex,dim:Ex,italic:Ex,underline:Ex,inverse:Ex,hidden:Ex,strikethrough:Ex,black:Ex,red:Ex,green:Ex,yellow:Ex,blue:Ex,magenta:Ex,cyan:Ex,white:Ex,gray:Ex,bgBlack:Ex,bgRed:Ex,bgGreen:Ex,bgYellow:Ex,bgBlue:Ex,bgMagenta:Ex,bgCyan:Ex,bgWhite:Ex}};Ox.exports=Rx(),Ox.exports.createColors=Rx;var Mx=Ox.exports,Ix=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return xw(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ax=Mx,Tx=Ix,Px=function(e){function t(r,n,o,i,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),i&&(l.source=i),a&&(l.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(l.line=n,l.column=o):(l.line=n.line,l.column=n.column,l.endLine=o.line,l.endColumn=o.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}ww(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ax.isColorSupported),Tx&&e&&(r=Tx(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(e){var c=Ax.createColors(!0),u=c.bold,p=c.gray,d=c.red;n=function(e){return u(d(e))},o=function(e){return p(e)}}else n=o=function(e){return e};return i.slice(s,a).map(function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-l)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Cw(Error)),Lx=Px;Px.default=Px;var jx={};jx.isClean=Symbol("isClean"),jx.my=Symbol("my");var Nx={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Fx=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Dx=Fx;Fx.default=Fx;var $x=Dx;function Bx(e,t){new $x(t).stringify(e)}var zx=Bx;Bx.default=Bx;var Ux=jx.isClean,Vx=jx.my,Wx=Lx,qx=Dx,Hx=zx;function Gx(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],i=void 0===o?"undefined":kw(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map(function(e){return Gx(e,r)}):("object"===i&&null!==o&&(o=Gx(o)),r[n]=o)}return r}var Kx=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ux]=!1,this[Vx]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Ew(e[t]);!(r=n()).done;){var o=r.value;"function"==typeof o.clone?this.append(o.clone()):this.append(o)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Gx(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new Wx(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Ux]){this[Ux]=!1;for(var e=this;e=e.parent;)e[Ux]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=r_(e),e_(e))return this.mapFile=e,t_(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(xw(t,Jx))return Qx.fromSourceMap(t).toString();if(xw(t,Qx))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=n_(r_(e),o)),this.loadFile(o)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),i_=o_;o_.default=o_;var s_=Ix.SourceMapConsumer,a_=Ix.SourceMapGenerator,l_=Ix.fileURLToPath,c_=Ix.pathToFileURL,u_=Ix.isAbsolute,p_=Ix.resolve,d_=Ix,h_=Lx,f_=i_,m_=Symbol("fromOffsetCache"),g_=Boolean(s_&&a_),v_=Boolean(p_&&u_),y_=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":kw(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!v_||/^\w+:\/\//.test(t.from)||u_(t.from)?this.file=t.from:this.file=p_(t.from)),v_&&g_){var r=new f_(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var o,i,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":kw(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);i=u.line,s=u.col}else i=l.line,s=l.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var d=this.origin(t,r,i,s);return(o=d?new h_(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new h_(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:s,line:i},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:i,line:t,source:this.css},this.file&&(c_&&(o.input.url=c_(this.file).toString()),o.input.file=this.file),o},t.fromOffset=function(e){var t;if(this[m_])t=this[m_];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:p_(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=u_(a.source)?c_(a.source):new URL(a.source,this.map.consumer().sourceRoot||c_(this.map.mapFile));var l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!l_)throw new Error("file: protocol is not available in this PostCSS build");l.file=l_(i)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),I_&&M_&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=x_.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new x_({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new x_({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?S_(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=S_(C_(r,this.mapOpts.annotation)));var n=k_(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new R_(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(E_){var r=E_(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===O_&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),T_=A_,P_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return ww(t,e),t}(Zx),L_=P_;P_.default=P_;var j_,N_,F_,D_,$_=jx.isClean,B_=jx.my,z_=Yx,U_=L_;function V_(e){return e.map(function(e){return e.nodes&&(e.nodes=V_(e.nodes)),delete e.source,e})}function W_(e){if(e[$_]=!1,e.proxyOf.nodes)for(var t,r=Ew(e.proxyOf.nodes);!(t=r()).done;)W_(t.value)}var q_=function(e){function t(){return e.apply(this,arguments)||this}ww(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),o=1;o=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},vw(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Zx);q_.registerParse=function(e){j_=e},q_.registerRule=function(e){N_=e},q_.registerAtRule=function(e){F_=e},q_.registerRoot=function(e){D_=e};var H_=q_;q_.default=q_,q_.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,F_.prototype):"rule"===e.type?Object.setPrototypeOf(e,N_.prototype):"decl"===e.type?Object.setPrototypeOf(e,z_.prototype):"comment"===e.type?Object.setPrototypeOf(e,U_.prototype):"root"===e.type&&Object.setPrototypeOf(e,D_.prototype),e[B_]=!0,e.nodes&&e.nodes.forEach(function(e){q_.rebuild(e)})};var G_,K_,Z_=function(e){function t(t){var r;return(r=e.call(this,yw({type:"document"},t))||this).nodes||(r.nodes=[]),r}return ww(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new G_(new K_,this,e).stringify()},t}(H_);Z_.registerLazyResult=function(e){G_=e},Z_.registerProcessor=function(e){K_=e};var X_=Z_;Z_.default=Z_;var Y_=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),J_=Y_;Y_.default=Y_;var Q_=J_,eS=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Q_(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},vw(e,[{key:"content",get:function(){return this.css}}]),e}(),tS=eS;eS.default=eS;var rS="'".charCodeAt(0),nS='"'.charCodeAt(0),oS="\\".charCodeAt(0),iS="/".charCodeAt(0),sS="\n".charCodeAt(0),aS=" ".charCodeAt(0),lS="\f".charCodeAt(0),cS="\t".charCodeAt(0),uS="\r".charCodeAt(0),pS="[".charCodeAt(0),dS="]".charCodeAt(0),hS="(".charCodeAt(0),fS=")".charCodeAt(0),mS="{".charCodeAt(0),gS="}".charCodeAt(0),vS=";".charCodeAt(0),yS="*".charCodeAt(0),bS=":".charCodeAt(0),wS="@".charCodeAt(0),xS=/[\t\n\f\r "#'()/;[\\\]{}]/g,_S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,SS=/.[\r\n"'(/\\]/,kS=/[\da-f]/i,CS=H_,OS=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}ww(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var i,s=Ew(o);!(i=s()).done;)i.value.raws.before=r.raws.before;return o},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new RS(new MS,this,e).stringify()},t}(IS);AS.registerLazyResult=function(e){RS=e},AS.registerProcessor=function(e){MS=e};var TS=AS;AS.default=AS,IS.registerRoot(AS);var PS={comma:function(e){return PS.split(e,[","],!0)},space:function(e){return PS.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,o=[],i="",s=!1,a=0,l=!1,c="",u=!1,p=Ew(e);!(n=p()).done;){var d=n.value;u?u=!1:"\\"===d?u=!0:l?d===c&&(l=!1):'"'===d||"'"===d?(l=!0,c=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=d}return(r||""!==i)&&o.push(i.trim()),o}},LS=PS;PS.default=PS;var jS=H_,NS=LS,FS=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return ww(t,e),vw(t,[{key:"selectors",get:function(){return NS.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(jS),DS=FS;FS.default=FS,jS.registerRule(FS);var $S=Yx,BS=L_,zS=ES,US=TS,VS=DS,WS={empty:!0,space:!0},qS=function(){function e(e){this.input=e,this.root=new US,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,o=new zS;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,o,i=0,s=Ew(e.entries());!(o=s()).done;){var a=o.value,l=a[0];if("("===(r=(t=a[1])[0])&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new BS;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,o,i,s,a,l,c,u,p,d=e.css.valueOf(),h=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m)){case sS:case aS:case cS:case uS:case lS:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===aS||r===sS||r===cS||r===uS||r===lS);p=["space",d.slice(m,n)],m=n-1;break;case pS:case dS:case mS:case gS:case bS:case vS:case fS:var b=String.fromCharCode(r);p=[b,b,m];break;case hS:if(c=g.length?g.pop()[1]:"",u=d.charCodeAt(m+1),"url"===c&&u!==rS&&u!==nS&&u!==aS&&u!==sS&&u!==cS&&u!==lS&&u!==uS){n=m;do{if(a=!1,-1===(n=d.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;d.charCodeAt(l-1)===oS;)l-=1,a=!a}while(a);p=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),i=d.slice(m,n+1),-1===n||SS.test(i)?p=["(","(",m]:(p=["brackets",i,m,n],m=n);break;case rS:case nS:o=r===rS?"'":'"',n=m;do{if(a=!1,-1===(n=d.indexOf(o,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;d.charCodeAt(l-1)===oS;)l-=1,a=!a}while(a);p=["string",d.slice(m,n+1),m,n],m=n;break;case wS:xS.lastIndex=m+1,xS.test(d),n=0===xS.lastIndex?d.length-1:xS.lastIndex-2,p=["at-word",d.slice(m,n+1),m,n],m=n;break;case oS:for(n=m,s=!0;d.charCodeAt(n+1)===oS;)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==iS&&r!==aS&&r!==sS&&r!==cS&&r!==uS&&r!==lS&&(n+=1,kS.test(d.charAt(n)))){for(;kS.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===aS&&(n+=1)}p=["word",d.slice(m,n+1),m,n],m=n;break;default:r===iS&&d.charCodeAt(m+1)===yS?(0===(n=d.indexOf("*/",m+2)+1)&&(h||t?n=d.length:y("comment")),p=["comment",d.slice(m,n+1),m,n],m=n):(_S.lastIndex=m+1,_S.test(d),n=0===_S.lastIndex?d.length-1:_S.lastIndex-2,p=["word",d.slice(m,n+1),m,n],g.push(p),m=n)}return m++,p}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new $S;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",d=l;d>0;d--){var h=u[d][0];if(0===p.trim().indexOf("!")&&"space"!==h)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new VS;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)o||(o=l),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var o,i,s,a,l=r.length,c="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return mw(function(){var t,r,n,o,i,s,a,l,c,u,p,d;return Rw(this,function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t0))return[3,13];if(!ck(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,o,s;return Rw(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==i.type?[3,3]:(o=i.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(o)]);case 2:return a.sent(),[3,5];case 3:return[4,n(i,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=Ew(e.listeners.OnceExit),h.label=15;case 15:return(d=p()).done?[3,18]:[5,Mw(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":kw(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return ck(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ek;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new QS(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Ew(this.plugins);!(e=t()).done;){var r=e.value;if(ck(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[YS];)n[YS]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var o,i=Ew(n.nodes);!(o=i()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Ew(e);!(r=n()).done;){var o=r.value,i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ck(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=cC.isColorSupported),uC&&e&&(r=uC(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(e){var c=cC.createColors(!0),u=c.bold,p=c.gray,d=c.red;n=function(e){return u(d(e))},o=function(e){return p(e)}}else n=o=function(e){return e};return i.slice(s,a).map(function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-l)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Cw(Error)),dC=pC;pC.default=pC;var hC={};hC.isClean=Symbol("isClean"),hC.my=Symbol("my");var fC={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},mC=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),gC=mC;mC.default=mC;var vC=gC;function yC(e,t){new vC(t).stringify(e)}var bC=yC;yC.default=yC;var wC=hC.isClean,xC=hC.my,_C=dC,SC=gC,kC=bC;function CC(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],i=void 0===o?"undefined":kw(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map(function(e){return CC(e,r)}):("object"===i&&null!==o&&(o=CC(o)),r[n]=o)}return r}var OC=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wC]=!1,this[xC]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Ew(e[t]);!(r=n()).done;){var o=r.value;"function"==typeof o.clone?this.append(o.clone()):this.append(o)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=CC(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new _C(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[wC]){this[wC]=!1;for(var e=this;e=e.parent;)e[wC]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=LC(e),TC(e))return this.mapFile=e,PC(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(xw(t,IC))return AC.fromSourceMap(t).toString();if(xw(t,AC))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=jC(LC(e),o)),this.loadFile(o)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),FC=NC;NC.default=NC;var DC=lC.SourceMapConsumer,$C=lC.SourceMapGenerator,BC=lC.fileURLToPath,zC=lC.pathToFileURL,UC=lC.isAbsolute,VC=lC.resolve,WC=lC,qC=dC,HC=FC,GC=Symbol("fromOffsetCache"),KC=Boolean(DC&&$C),ZC=Boolean(VC&&UC),XC=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":kw(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ZC||/^\w+:\/\//.test(t.from)||UC(t.from)?this.file=t.from:this.file=VC(t.from)),ZC&&KC){var r=new HC(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var o,i,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":kw(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);i=u.line,s=u.col}else i=l.line,s=l.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var d=this.origin(t,r,i,s);return(o=d?new qC(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new qC(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:s,line:i},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:i,line:t,source:this.css},this.file&&(zC&&(o.input.url=zC(this.file).toString()),o.input.file=this.file),o},t.fromOffset=function(e){var t;if(this[GC])t=this[GC];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:VC(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=UC(a.source)?zC(a.source):new URL(a.source,this.map.consumer().sourceRoot||zC(this.map.mapFile));var l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!BC)throw new Error("file: protocol is not available in this PostCSS build");l.file=BC(i)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),aO&&sO&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=QC.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new QC({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new QC({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?eO(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=eO(rO(r,this.mapOpts.annotation)));var n=tO(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new iO(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(oO){var r=oO(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===nO&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),cO=lO,uO=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return ww(t,e),t}(EC),pO=uO;uO.default=uO;var dO,hO,fO,mO,gO=hC.isClean,vO=hC.my,yO=MC,bO=pO;function wO(e){return e.map(function(e){return e.nodes&&(e.nodes=wO(e.nodes)),delete e.source,e})}function xO(e){if(e[gO]=!1,e.proxyOf.nodes)for(var t,r=Ew(e.proxyOf.nodes);!(t=r()).done;)xO(t.value)}var _O=function(e){function t(){return e.apply(this,arguments)||this}ww(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),o=1;o=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},vw(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(EC);_O.registerParse=function(e){dO=e},_O.registerRule=function(e){hO=e},_O.registerAtRule=function(e){fO=e},_O.registerRoot=function(e){mO=e};var SO=_O;_O.default=_O,_O.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,fO.prototype):"rule"===e.type?Object.setPrototypeOf(e,hO.prototype):"decl"===e.type?Object.setPrototypeOf(e,yO.prototype):"comment"===e.type?Object.setPrototypeOf(e,bO.prototype):"root"===e.type&&Object.setPrototypeOf(e,mO.prototype),e[vO]=!0,e.nodes&&e.nodes.forEach(function(e){_O.rebuild(e)})};var kO,CO,OO=function(e){function t(t){var r;return(r=e.call(this,yw({type:"document"},t))||this).nodes||(r.nodes=[]),r}return ww(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new kO(new CO,this,e).stringify()},t}(SO);OO.registerLazyResult=function(e){kO=e},OO.registerProcessor=function(e){CO=e};var EO=OO;OO.default=OO;var RO=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),MO=RO;RO.default=RO;var IO=MO,AO=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new IO(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},vw(e,[{key:"content",get:function(){return this.css}}]),e}(),TO=AO;AO.default=AO;var PO="'".charCodeAt(0),LO='"'.charCodeAt(0),jO="\\".charCodeAt(0),NO="/".charCodeAt(0),FO="\n".charCodeAt(0),DO=" ".charCodeAt(0),$O="\f".charCodeAt(0),BO="\t".charCodeAt(0),zO="\r".charCodeAt(0),UO="[".charCodeAt(0),VO="]".charCodeAt(0),WO="(".charCodeAt(0),qO=")".charCodeAt(0),HO="{".charCodeAt(0),GO="}".charCodeAt(0),KO=";".charCodeAt(0),ZO="*".charCodeAt(0),XO=":".charCodeAt(0),YO="@".charCodeAt(0),JO=/[\t\n\f\r "#'()/;[\\\]{}]/g,QO=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,eE=/.[\r\n"'(/\\]/,tE=/[\da-f]/i,rE=SO,nE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}ww(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var i,s=Ew(o);!(i=s()).done;)i.value.raws.before=r.raws.before;return o},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new iE(new sE,this,e).stringify()},t}(aE);lE.registerLazyResult=function(e){iE=e},lE.registerProcessor=function(e){sE=e};var cE=lE;lE.default=lE,aE.registerRoot(lE);var uE={comma:function(e){return uE.split(e,[","],!0)},space:function(e){return uE.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,o=[],i="",s=!1,a=0,l=!1,c="",u=!1,p=Ew(e);!(n=p()).done;){var d=n.value;u?u=!1:"\\"===d?u=!0:l?d===c&&(l=!1):'"'===d||"'"===d?(l=!0,c=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=d}return(r||""!==i)&&o.push(i.trim()),o}},pE=uE;uE.default=uE;var dE=SO,hE=pE,fE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return ww(t,e),vw(t,[{key:"selectors",get:function(){return hE.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(dE),mE=fE;fE.default=fE,dE.registerRule(fE);var gE=MC,vE=pO,yE=oE,bE=cE,wE=mE,xE={empty:!0,space:!0},_E=function(){function e(e){this.input=e,this.root=new bE,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,o=new yE;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,o,i=0,s=Ew(e.entries());!(o=s()).done;){var a=o.value,l=a[0];if("("===(r=(t=a[1])[0])&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new vE;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,o,i,s,a,l,c,u,p,d=e.css.valueOf(),h=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m)){case FO:case DO:case BO:case zO:case $O:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===DO||r===FO||r===BO||r===zO||r===$O);p=["space",d.slice(m,n)],m=n-1;break;case UO:case VO:case HO:case GO:case XO:case KO:case qO:var b=String.fromCharCode(r);p=[b,b,m];break;case WO:if(c=g.length?g.pop()[1]:"",u=d.charCodeAt(m+1),"url"===c&&u!==PO&&u!==LO&&u!==DO&&u!==FO&&u!==BO&&u!==$O&&u!==zO){n=m;do{if(a=!1,-1===(n=d.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;d.charCodeAt(l-1)===jO;)l-=1,a=!a}while(a);p=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),i=d.slice(m,n+1),-1===n||eE.test(i)?p=["(","(",m]:(p=["brackets",i,m,n],m=n);break;case PO:case LO:o=r===PO?"'":'"',n=m;do{if(a=!1,-1===(n=d.indexOf(o,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;d.charCodeAt(l-1)===jO;)l-=1,a=!a}while(a);p=["string",d.slice(m,n+1),m,n],m=n;break;case YO:JO.lastIndex=m+1,JO.test(d),n=0===JO.lastIndex?d.length-1:JO.lastIndex-2,p=["at-word",d.slice(m,n+1),m,n],m=n;break;case jO:for(n=m,s=!0;d.charCodeAt(n+1)===jO;)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==NO&&r!==DO&&r!==FO&&r!==BO&&r!==zO&&r!==$O&&(n+=1,tE.test(d.charAt(n)))){for(;tE.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===DO&&(n+=1)}p=["word",d.slice(m,n+1),m,n],m=n;break;default:r===NO&&d.charCodeAt(m+1)===ZO?(0===(n=d.indexOf("*/",m+2)+1)&&(h||t?n=d.length:y("comment")),p=["comment",d.slice(m,n+1),m,n],m=n):(QO.lastIndex=m+1,QO.test(d),n=0===QO.lastIndex?d.length-1:QO.lastIndex-2,p=["word",d.slice(m,n+1),m,n],g.push(p),m=n)}return m++,p}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new gE;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",d=l;d>0;d--){var h=u[d][0];if(0===p.trim().indexOf("!")&&"space"!==h)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new wE;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)o||(o=l),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var o,i,s,a,l=r.length,c="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return mw(function(){var t,r,n,o,i,s,a,l,c,u,p,d;return Rw(this,function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t0))return[3,13];if(!BE(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,o,s;return Rw(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==i.type?[3,3]:(o=i.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(o)]);case 2:return a.sent(),[3,5];case 3:return[4,n(i,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=Ew(e.listeners.OnceExit),h.label=15;case 15:return(d=p()).done?[3,18]:[5,Mw(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":kw(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return BE(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=AE;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new IE(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Ew(this.plugins);!(e=t()).done;){var r=e.value;if(BE(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[RE];)n[RE]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var o,i=Ew(n.nodes);!(o=i()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Ew(e);!(r=n()).done;){var o=r.value,i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(BE(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndext?(n&&(clearTimeout(n),n=null),o=l,e.apply(u,s)):n||!1===r.trailing||(n=setTimeout(function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(u,s)},c))}}function tM(e,t,r,n,o){void 0===o&&(o=window);var i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),i&&i.set&&i.set.call(this,e)}}),function(){return tM(e,t,i||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(QR=new Proxy(QR,{get:function(e,t,r){return"map"===t&&console.error(JR),Reflect.get(e,t,r)}}));var rM=Date.now;function nM(e){var t,r,n,o,i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=qR(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=qR(i.body))?void 0:n.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}}function oM(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iM(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sM(e){return e?e.nodeType===e.ELEMENT_NODE?e:qR(e):null}function aM(e,t,r,n){if(!e)return!1;var o=sM(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(xx(o,t,n))return!0}catch(e){}if(r){if(o.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1}function lM(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function cM(e,t){if(Gw(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=WR(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||cM(n,t))}function uM(e){return Boolean(e.changedTouches)}function pM(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function dM(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hM(e){return!!e&&(xw(e,PR)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(XR(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(rM=function(){return(new Date).getTime()});var fM=function(){function e(){Tw(this,"id",1),Tw(this,"styleIDMap",new WeakMap),Tw(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function mM(e){var t,r=null;return"getRootNode"in e&&(null==(t=KR(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ZR(KR(e))&&(r=ZR(KR(e))),r}function gM(e){var t=e.ownerDocument;return!!t&&(GR(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=mM(r);)r=t;return r}(e);return GR(t,r)}(e))}var vM=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(vM||{}),yM=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(yM||{}),bM=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(bM||{}),wM=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(wM||{}),xM=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(xM||{}),_M=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(_M||{}),SM=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(SM||{});function kM(e){return"__ln"in e}var CM,OM=function(){function e(){Tw(this,"length",0),Tw(this,"head",null),Tw(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case vM.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var o=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,o),this.patchRootIdOnNode(t.data.node,o),{timestamp:t.timestamp,type:vM.IncrementalSnapshot,data:{source:yM.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case vM.Meta:case vM.Load:case vM.DomContentLoaded:return!1;case vM.Plugin:return t;case vM.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case vM.IncrementalSnapshot:switch(t.data.source){case yM.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case yM.Drag:case yM.TouchMove:case yM.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case yM.ViewportResize:return!1;case yM.MediaInteraction:case yM.MouseInteraction:case yM.Scroll:case yM.CanvasMutation:case yM.Input:return this.replaceIds(t.data,e,["id"]),t;case yM.StyleSheetRule:case yM.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case yM.Font:return t;case yM.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case yM.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var o,i=Ew(n);!(o=i()).done;){var s=o.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===SM.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),KM=function(){function e(e){Tw(this,"shadowDoms",new WeakSet),Tw(this,"mutationCb"),Tw(this,"scrollCb"),Tw(this,"bypassOptions"),Tw(this,"mirror"),Tw(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Kw(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=NM(yw({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(FM(yw({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(ZR(e))),r.restoreHandlers.push(UM({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(UR(e.prototype,"attachShadow",function(e){return function(n){var o=e.call(this,n),i=XR(this);return i&&gM(this)&&r.addShadowRoot(i,t),o}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),ZM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",XM="undefined"==typeof Uint8Array?[]:new Uint8Array(256),YM=0;YM<64;YM++)XM[ZM.charCodeAt(YM)]=YM;var JM=new Map,QM=function(e,t,r){if(e&&(rI(e,t)||"object"===(void 0===e?"undefined":kw(e)))){var n=function(e,t){var r=JM.get(e);return r||(r=new Map,JM.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),o=n.indexOf(e);return-1===o&&(o=n.length,n.push(e)),o}};function eI(e,t,r){return xw(e,Array)?e.map(function(e){return eI(e,t,r)}):null===e?e:xw(e,Float32Array)||xw(e,Float64Array)||xw(e,Int32Array)||xw(e,Uint32Array)||xw(e,Uint8Array)||xw(e,Uint16Array)||xw(e,Int16Array)||xw(e,Int8Array)||xw(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:xw(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t>2],o+=ZM[(3&r[t])<<4|r[t+1]>>4],o+=ZM[(15&r[t+1])<<2|r[t+2]>>6],o+=ZM[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)}:xw(e,DataView)?{rr_type:e.constructor.name,args:[eI(e.buffer,t,r),e.byteOffset,e.byteLength]}:xw(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:xw(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:xw(e,ImageData)?{rr_type:e.constructor.name,args:[eI(e.data,t,r),e.width,e.height]}:rI(e,t)||"object"===(void 0===e?"undefined":kw(e))?{rr_type:e.constructor.name,index:QM(e,t,r)}:e}var tI=function(e,t,r){return e.map(function(e){return eI(e,t,r)})},rI=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return xw(e,t[r])}))};function nI(e,t,r,n){var o=[];try{var i=UR(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a0&&(i.styles=s),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,o=Ew(r.adoptedStyleSheets);!(n=o()).done;){var i=n.value;this.styleMirror.remove(i)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),fI=function(){function e(){Tw(this,"nodeMap",new WeakMap),Tw(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function mI(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}var gI=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var vI=document.createElement("iframe");document.body.appendChild(vI),Array.from=(null==(Iw=vI.contentWindow)?void 0:Iw.Array.from)||Array.from,document.body.removeChild(vI)}}catch($f){console.debug("Unable to override Array.from",$f)}var yI,bI,wI=new Yw;function xI(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,s=void 0===i?"rr-block":i,a=e.blockSelector,l=void 0===a?null:a,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,p=e.ignoreSelector,d=void 0===p?null:p,h=e.maskTextClass,f=void 0===h?"rr-mask":h,m=e.maskTextSelector,g=void 0===m?null:m,v=e.inlineStylesheet,y=void 0===v||v,b=e.maskAllInputs,w=e.maskInputOptions,x=e.slimDOMOptions,_=e.maskInputFn,S=e.maskTextFn,k=e.hooks,C=e.packFn,O=e.sampling,E=void 0===O?{}:O,R=e.dataURLOptions,M=void 0===R?{}:R,I=e.mousemoveWait,A=e.recordDOM,T=void 0===A||A,P=e.recordCanvas,L=void 0!==P&&P,j=e.recordCrossOriginIframes,N=void 0!==j&&j,F=e.allowedIframeOrigins,D=e.recordAfter,$=void 0===D?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":D,B=e.userTriggeredOnInput,z=void 0!==B&&B,U=e.collectFonts,V=void 0!==U&&U,W=e.inlineImages,q=void 0!==W&&W,H=e.plugins,G=e.keepIframeSrcFn,K=void 0===G?function(){return!1}:G,Z=e.ignoreCSSAttributes,X=void 0===Z?new Set([]):Z,Y=e.errorHandler;CM=Y,N&&F&&F.length>0&&(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r=o,h=n&&a.timestamp-ee.timestamp>n;(d||h)&&uI(!0)}};for(var ie,se=function(e){cI({type:vM.IncrementalSnapshot,data:yw({source:yM.Mutation},e)})},ae=function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.Scroll},e)})},le=function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.CanvasMutation},e)})},ce=new hI({mutationCb:se,adoptedStyleSheetCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.AdoptedStyleSheet},e)})}}),ue=new GM({mirror:wI,mutationCb:se,stylesheetManager:ce,recordCrossOriginIframes:N,wrappedEmit:cI}),pe=Ew(H||[]);!(ie=pe()).done;){var de=ie.value;de.getMirror&&de.getMirror({nodeMirror:wI,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var he=new fI;pI=new dI({recordCanvas:L,mutationCb:le,win:window,blockClass:s,blockSelector:l,mirror:wI,sampling:E.canvas,dataURLOptions:M});var fe=new KM({mutationCb:se,scrollCb:ae,bypassOptions:{blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskInputOptions:te,dataURLOptions:M,maskTextFn:S,maskInputFn:_,recordCanvas:L,inlineImages:q,sampling:E,slimDOMOptions:re,iframeManager:ue,stylesheetManager:ce,canvasManager:pI,keepIframeSrcFn:K,processedNodeManager:he},mirror:wI});uI=function(e){if(void 0===e&&(e=!1),T){cI({type:vM.Meta,data:{href:window.location.href,width:iM(),height:oM()}},e),ce.reset(),fe.init(),LM.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,o=void 0===n?new Yw:n,i=r.blockClass,s=r.blockSelector,a=r.maskTextClass,l=r.maskTextSelector,c=r.inlineStylesheet,u=r.inlineImages,p=r.recordCanvas,d=r.maskAllInputs,h=void 0!==d&&d,f=r.slimDOM,m=void 0!==f&&f,g=r.keepIframeSrcFn;return Cx(e,{doc:e,mirror:o,blockClass:void 0===i?"rr-block":i,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===c||c,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===h?{password:!0}:h,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===m,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===m?{}:m,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==u&&u,recordCanvas:void 0!==p&&p,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===g?function(){return!1}:g,newlyAddedElement:!1})}(document,{mirror:wI,blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:g,inlineStylesheet:y,maskAllInputs:te,maskTextFn:S,maskInputFn:_,slimDOM:re,dataURLOptions:M,recordCanvas:L,inlineImages:q,onSerialize:function(e){pM(e,wI)&&ue.addIframe(e),dM(e,wI)&&ce.trackLinkElement(e),hM(e)&&fe.addShadowRoot(XR(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),fe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:K});if(!t)return console.warn("Failed to snapshot the document");cI({type:vM.FullSnapshot,data:{node:t,initialOffset:nM(window)}},e),LM.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,wI.getId(document))}};try{var me=[],ge=function(e){var t;return PM(VM)({mutationCb:se,mousemoveCb:function(e,t){return cI({type:vM.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.MouseInteraction},e)})},scrollCb:ae,viewportResizeCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.ViewportResize},e)})},inputCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.Input},e)})},mediaInteractionCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.MediaInteraction},e)})},styleSheetRuleCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.StyleSheetRule},e)})},styleDeclarationCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.StyleDeclaration},e)})},canvasMutationCb:le,fontCb:function(e){return cI({type:vM.IncrementalSnapshot,data:yw({source:yM.Font},e)})},selectionCb:function(e){cI({type:vM.IncrementalSnapshot,data:yw({source:yM.Selection},e)})},customElementCb:function(e){cI({type:vM.IncrementalSnapshot,data:yw({source:yM.CustomElement},e)})},blockClass:s,ignoreClass:u,ignoreSelector:d,maskTextClass:f,maskTextSelector:g,maskInputOptions:te,inlineStylesheet:y,sampling:E,recordDOM:T,recordCanvas:L,inlineImages:q,userTriggeredOnInput:z,collectFonts:V,doc:e,maskInputFn:_,maskTextFn:S,keepIframeSrcFn:K,blockSelector:l,slimDOMOptions:re,dataURLOptions:M,mirror:wI,iframeManager:ue,stylesheetManager:ce,shadowDomManager:fe,processedNodeManager:he,canvasManager:pI,ignoreCSSAttributes:X,plugins:(null==(t=null==H?void 0:H.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return cI({type:vM.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},k)};ue.addLoadListener(function(e){try{var t=e.contentDocument,r=ge(t);me.push(r);var n=ue.getObserverCleanup(e);ue.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=me.indexOf(r);-1!==e&&me.splice(e,1),function(e){for(var t=LM.length-1;t>=0;t--)LM[t].getDoc()===e&&LM.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var ve=function(){uI(),me.push(ge(document)),gI=!0};return"interactive"===document.readyState||"complete"===document.readyState?ve():(me.push(YR("DOMContentLoaded",function(){cI({type:vM.DomContentLoaded,data:{}}),"DOMContentLoaded"===$&&ve()})),me.push(YR("load",function(){cI({type:vM.Load,data:{}}),"load"===$&&ve()},window))),function(){me.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),he.destroy(),gI=!1,CM=void 0}}catch(e){console.warn(e)}}xI.addCustomEvent=function(e,t){if(!gI)throw new Error("please add custom event after start recording");cI({type:vM.Custom,data:{tag:e,payload:t}})},xI.freezePage=function(){LM.forEach(function(e){return e.freeze()})},xI.takeFullSnapshot=function(e){if(!gI)throw new Error("please take full snapshot after start recording");uI(e)},xI.mirror=wI,(bI=yI||(yI={}))[bI.NotStarted=0]="NotStarted",bI[bI.Running=1]="Running",bI[bI.Stopped=2]="Stopped";var _I={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},SI={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},kI={},CI={};var OI=function(e){return function(e,t,r){var n,o=e+"."+String(r);if(CI[o])return CI[o].call(t);var i=function(e){if(kI[e])return kI[e];var t=globalThis[e],r=t.prototype,n=e in _I?_I[e]:void 0,o=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in SI?SI[e]:void 0,s=Boolean(i&&i.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(o&&s&&!globalThis.Zone)return kI[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?kI[e]=c:r}catch(e){return r}}(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?(CI[o]=s,s.call(t)):t[r]}("Node",e,"parentNode")};function EI(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return EI(OI(e),t);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return EI(OI(e),t)}var RI={exports:{}},MI=String,II=function(){return{isColorSupported:!1,reset:MI,bold:MI,dim:MI,italic:MI,underline:MI,inverse:MI,hidden:MI,strikethrough:MI,black:MI,red:MI,green:MI,yellow:MI,blue:MI,magenta:MI,cyan:MI,white:MI,gray:MI,bgBlack:MI,bgRed:MI,bgGreen:MI,bgYellow:MI,bgBlue:MI,bgMagenta:MI,bgCyan:MI,bgWhite:MI}};RI.exports=II(),RI.exports.createColors=II;var AI=RI.exports,TI=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return xw(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),PI=AI,LI=TI,jI=function(e){function t(r,n,o,i,s,a){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,s&&(l.file=s),i&&(l.source=i),a&&(l.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(l.line=n,l.column=o):(l.line=n.line,l.column=n.column,l.endLine=o.line,l.endColumn=o.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}ww(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=PI.isColorSupported),LI&&e&&(r=LI(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(e){var c=PI.createColors(!0),u=c.bold,p=c.gray,d=c.red;n=function(e){return u(d(e))},o=function(e){return p(e)}}else n=o=function(e){return e};return i.slice(s,a).map(function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-l)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(Cw(Error)),NI=jI;jI.default=jI;var FI={};FI.isClean=Symbol("isClean"),FI.my=Symbol("my");var DI={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},$I=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),BI=$I;$I.default=$I;var zI=BI;function UI(e,t){new zI(t).stringify(e)}var VI=UI;UI.default=UI;var WI=FI.isClean,qI=FI.my,HI=NI,GI=BI,KI=VI;function ZI(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],i=void 0===o?"undefined":kw(o);"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map(function(e){return ZI(e,r)}):("object"===i&&null!==o&&(o=ZI(o)),r[n]=o)}return r}var XI=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[WI]=!1,this[qI]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Ew(e[t]);!(r=n()).done;){var o=r.value;"function"==typeof o.clone?this.append(o.clone()):this.append(o)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=ZI(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new HI(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[WI]){this[WI]=!1;for(var e=this;e=e.parent;)e[WI]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=oA(e),rA(e))return this.mapFile=e,nA(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(xw(t,eA))return tA.fromSourceMap(t).toString();if(xw(t,tA))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=iA(oA(e),o)),this.loadFile(o)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),aA=sA;sA.default=sA;var lA=TI.SourceMapConsumer,cA=TI.SourceMapGenerator,uA=TI.fileURLToPath,pA=TI.pathToFileURL,dA=TI.isAbsolute,hA=TI.resolve,fA=TI,mA=NI,gA=aA,vA=Symbol("fromOffsetCache"),yA=Boolean(lA&&cA),bA=Boolean(hA&&dA),wA=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":kw(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!bA||/^\w+:\/\//.test(t.from)||dA(t.from)?this.file=t.from:this.file=hA(t.from)),bA&&yA){var r=new gA(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var o,i,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":kw(t))){var a=t,l=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);i=u.line,s=u.col}else i=l.line,s=l.column}else if(!r){var p=this.fromOffset(t);t=p.line,r=p.col}var d=this.origin(t,r,i,s);return(o=d?new mA(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new mA(e,void 0===i?t:{column:r,line:t},void 0===i?r:{column:s,line:i},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:i,line:t,source:this.css},this.file&&(pA&&(o.input.url=pA(this.file).toString()),o.input.file=this.file),o},t.fromOffset=function(e){var t;if(this[vA])t=this[vA];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:hA(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=dA(a.source)?pA(a.source):new URL(a.source,this.map.consumer().sourceRoot||pA(this.map.mapFile));var l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!uA)throw new Error("file: protocol is not available in this PostCSS build");l.file=uA(i)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),AA&&IA&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=SA.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new SA({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new SA({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?kA(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=kA(OA(r,this.mapOpts.annotation)));var n=CA(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new MA(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(RA){var r=RA(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===EA&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),PA=TA,LA=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return ww(t,e),t}(YI),jA=LA;LA.default=LA;var NA,FA,DA,$A,BA=FI.isClean,zA=FI.my,UA=QI,VA=jA;function WA(e){return e.map(function(e){return e.nodes&&(e.nodes=WA(e.nodes)),delete e.source,e})}function qA(e){if(e[BA]=!1,e.proxyOf.nodes)for(var t,r=Ew(e.proxyOf.nodes);!(t=r()).done;)qA(t.value)}var HA=function(e){function t(){return e.apply(this,arguments)||this}ww(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),o=1;o=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?xw(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},vw(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(YI);HA.registerParse=function(e){NA=e},HA.registerRule=function(e){FA=e},HA.registerAtRule=function(e){DA=e},HA.registerRoot=function(e){$A=e};var GA=HA;HA.default=HA,HA.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,DA.prototype):"rule"===e.type?Object.setPrototypeOf(e,FA.prototype):"decl"===e.type?Object.setPrototypeOf(e,UA.prototype):"comment"===e.type?Object.setPrototypeOf(e,VA.prototype):"root"===e.type&&Object.setPrototypeOf(e,$A.prototype),e[zA]=!0,e.nodes&&e.nodes.forEach(function(e){HA.rebuild(e)})};var KA,ZA,XA=function(e){function t(t){var r;return(r=e.call(this,yw({type:"document"},t))||this).nodes||(r.nodes=[]),r}return ww(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new KA(new ZA,this,e).stringify()},t}(GA);XA.registerLazyResult=function(e){KA=e},XA.registerProcessor=function(e){ZA=e};var YA=XA;XA.default=XA;var JA=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),QA=JA;JA.default=JA;var eT=QA,tT=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new eT(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},vw(e,[{key:"content",get:function(){return this.css}}]),e}(),rT=tT;tT.default=tT;var nT="'".charCodeAt(0),oT='"'.charCodeAt(0),iT="\\".charCodeAt(0),sT="/".charCodeAt(0),aT="\n".charCodeAt(0),lT=" ".charCodeAt(0),cT="\f".charCodeAt(0),uT="\t".charCodeAt(0),pT="\r".charCodeAt(0),dT="[".charCodeAt(0),hT="]".charCodeAt(0),fT="(".charCodeAt(0),mT=")".charCodeAt(0),gT="{".charCodeAt(0),vT="}".charCodeAt(0),yT=";".charCodeAt(0),bT="*".charCodeAt(0),wT=":".charCodeAt(0),xT="@".charCodeAt(0),_T=/[\t\n\f\r "#'()/;[\\\]{}]/g,ST=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,kT=/.[\r\n"'(/\\]/,CT=/[\da-f]/i,OT=GA,ET=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}ww(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var i,s=Ew(o);!(i=s()).done;)i.value.raws.before=r.raws.before;return o},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new MT(new IT,this,e).stringify()},t}(AT);TT.registerLazyResult=function(e){MT=e},TT.registerProcessor=function(e){IT=e};var PT=TT;TT.default=TT,AT.registerRoot(TT);var LT={comma:function(e){return LT.split(e,[","],!0)},space:function(e){return LT.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,o=[],i="",s=!1,a=0,l=!1,c="",u=!1,p=Ew(e);!(n=p()).done;){var d=n.value;u?u=!1:"\\"===d?u=!0:l?d===c&&(l=!1):'"'===d||"'"===d?(l=!0,c=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=d}return(r||""!==i)&&o.push(i.trim()),o}},jT=LT;LT.default=LT;var NT=GA,FT=jT,DT=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return ww(t,e),vw(t,[{key:"selectors",get:function(){return FT.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(NT),$T=DT;DT.default=DT,NT.registerRule(DT);var BT=QI,zT=jA,UT=RT,VT=PT,WT=$T,qT={empty:!0,space:!0},HT=function(){function e(e){this.input=e,this.root=new VT,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,o=new UT;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,o,i=0,s=Ew(e.entries());!(o=s()).done;){var a=o.value,l=a[0];if("("===(r=(t=a[1])[0])&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new zT;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,o,i,s,a,l,c,u,p,d=e.css.valueOf(),h=t.ignoreErrors,f=d.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m)){case aT:case lT:case uT:case pT:case cT:n=m;do{n+=1,r=d.charCodeAt(n)}while(r===lT||r===aT||r===uT||r===pT||r===cT);p=["space",d.slice(m,n)],m=n-1;break;case dT:case hT:case gT:case vT:case wT:case yT:case mT:var b=String.fromCharCode(r);p=[b,b,m];break;case fT:if(c=g.length?g.pop()[1]:"",u=d.charCodeAt(m+1),"url"===c&&u!==nT&&u!==oT&&u!==lT&&u!==aT&&u!==uT&&u!==cT&&u!==pT){n=m;do{if(a=!1,-1===(n=d.indexOf(")",n+1))){if(h||t){n=m;break}y("bracket")}for(l=n;d.charCodeAt(l-1)===iT;)l-=1,a=!a}while(a);p=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),i=d.slice(m,n+1),-1===n||kT.test(i)?p=["(","(",m]:(p=["brackets",i,m,n],m=n);break;case nT:case oT:o=r===nT?"'":'"',n=m;do{if(a=!1,-1===(n=d.indexOf(o,n+1))){if(h||t){n=m+1;break}y("string")}for(l=n;d.charCodeAt(l-1)===iT;)l-=1,a=!a}while(a);p=["string",d.slice(m,n+1),m,n],m=n;break;case xT:_T.lastIndex=m+1,_T.test(d),n=0===_T.lastIndex?d.length-1:_T.lastIndex-2,p=["at-word",d.slice(m,n+1),m,n],m=n;break;case iT:for(n=m,s=!0;d.charCodeAt(n+1)===iT;)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&r!==sT&&r!==lT&&r!==aT&&r!==uT&&r!==pT&&r!==cT&&(n+=1,CT.test(d.charAt(n)))){for(;CT.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===lT&&(n+=1)}p=["word",d.slice(m,n+1),m,n],m=n;break;default:r===sT&&d.charCodeAt(m+1)===bT?(0===(n=d.indexOf("*/",m+2)+1)&&(h||t?n=d.length:y("comment")),p=["comment",d.slice(m,n+1),m,n],m=n):(ST.lastIndex=m+1,ST.test(d),n=0===ST.lastIndex?d.length-1:ST.lastIndex-2,p=["word",d.slice(m,n+1),m,n],g.push(p),m=n)}return m++,p}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new BT;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var u=e.slice(0),p="",d=l;d>0;d--){var h=u[d][0];if(0===p.trim().indexOf("!")&&"space"!==h)break;p=u.pop()[1]+p}0===p.trim().indexOf("!")&&(r.important=!0,r.raws.important=p,e=u)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new WT;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(r=l[0],a.push(l),"("===r||"["===r)o||(o=l),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=l),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var o,i,s,a,l=r.length,c="",u=!0,p=0;p0},t.runAsync=function(){var e=this;return mw(function(){var t,r,n,o,i,s,a,l,c,u,p,d;return Rw(this,function(h){switch(h.label){case 0:e.plugin=0,t=0,h.label=1;case 1:if(!(t0))return[3,13];if(!uP(a=e.visitTick(s)))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,a];case 10:return h.sent(),[3,12];case 11:throw l=h.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,r,n,o,s;return Rw(this,function(a){switch(a.label){case 0:t=d.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==i.type?[3,3]:(o=i.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(o)]);case 2:return a.sent(),[3,5];case 3:return[4,n(i,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},p=Ew(e.listeners.OnceExit),h.label=15;case 15:return(d=p()).done?[3,18]:[5,Mw(u())];case 16:h.sent(),h.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":kw(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return uP(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=tP;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new eP(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Ew(this.plugins);!(e=t()).done;){var r=e.value;if(uP(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[JT];)n[JT]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var o,i=Ew(n.nodes);!(o=i()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Ew(e);!(r=n()).done;){var o=r.value,i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(uP(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:n.pop()),i=n.join(" ")||void 0,s=["eval",""].indexOf(o[0])>-1?void 0:o[0];return new iL({functionName:i,fileName:s,lineNumber:o[1],columnNumber:o[2]})},this)},parseFFOrSafari:function(e){var t=e.stack.split("\n").filter(function(e){return!e.match(lL)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new iL({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=this.extractLocation(e.replace(t,""));return new iL({functionName:n,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],o=2,i=r.length;o/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new iL({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function uL(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,o=[];if(n.children&&n.children.length>0)for(var i=0;i1&&(r+=":eq("+o.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function pL(e){return"[object Object]"===Object.prototype.toString.call(e)}function dL(e,t){if(0===t)return!0;for(var r,n=Ew(Object.keys(e));!(r=n()).done;){var o=r.value;if(pL(e[o])&&dL(e[o],t-1))return!0}return!1}function hL(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],o=[];return JSON.stringify(e,function(e,t){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?o.splice(i,1/0,e):o.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(pL(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||pL(s)&&dL(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":kw(t)))return t.toString()+"n";if(xw(t,Event)){var a={};for(var l in t){var c=t[l];Array.isArray(c)?a[l]=uL(c.length?c[0]:null):a[l]=c}return a}return xw(t,Node)?xw(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:xw(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var fL={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function mL(e,t,r){var n,o=r?Object.assign({},fL,r):fL,i=o.logger;if(!i)return function(){};n="string"==typeof i?t[i]:i;var s=0,a=!1,l=[];if(o.level.includes("error")){var c=function(t){var r=t.message,n=t.error,i=cL.parse(n).map(function(e){return e.toString()}),s=[hL(r,o.stringifyOptions)];e({level:"error",trace:i,payload:s})};t.addEventListener("error",c),l.push(function(){t.removeEventListener("error",c)});var u=function(t){var r,n;xw(t.reason,Error)?n=[hL("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,o.stringifyOptions)]:(r=new Error,n=[hL("Uncaught (in promise)",o.stringifyOptions),hL(t.reason,o.stringifyOptions)]);var i=cL.parse(r).map(function(e){return e.toString()});e({level:"error",trace:i,payload:n})};t.addEventListener("unhandledrejection",u),l.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var p,d=Ew(o.level);!(p=d()).done;){var h=p.value;l.push(f(n,h))}return function(){l.forEach(function(e){return e()})};function f(t,r){var n=this;return t[r]?function(t,i){try{if(!(i in t))return function(){};var l=t[i],c=function(t){var i=n;return function(){for(var n=arguments.length,l=new Array(n),c=0;c0&&_L(kL,r))}catch(e){EL.call(new ML(r),e)}}}function EL(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&_L(kL,t))}function RL(e,t,r,n){for(var o=0;o0&&(t[r]=e)}),t},QL.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):QL.isArray(e)?(r=[],QL.each(e,function(e){r.push(QL.truncate(e,t))})):QL.isObject(e)?(r={},QL.each(e,function(e,n){r[n]=QL.truncate(e,t)})):r=e,r},QL.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var o="",i=0,s="",a="",l=0,c=o,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",u=[],"[object Array]"===$L.apply(p)){for(l=p.length,i=0;i="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(e=+r,isFinite(e))return e;i("Bad number")},l=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(s(),16),isFinite(e));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else{if("string"!=typeof o[t])break;a+=o[t]}else a+=t}i("Bad string")},c=function(){for(;t&&t<=" ";)s()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(s("{"),c(),"}"===t)return s("}"),r;for(;t;){if(e=l(),c(),s(":"),Object.hasOwnProperty.call(r,e)&&i('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return s("}"),r;s(","),c()}}i("Bad object")}();case"[":return function(){var e=[];if("["===t){if(s("["),c(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return s("]"),e;s(","),c()}}i("Bad array")}();case'"':return l();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}i('Unexpected "'+t+'"')}()}},function(o){var s;return r=o,e=0,t=" ",s=n(),c(),t&&i("Syntax error"),s}}(),QL.base64Encode=function(e){var t,r,n,o,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,c="",u=[];if(!e)return e;e=QL.utf8Encode(e);do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,u[l++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(o)}while(a127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i},QL.UUID=function(){try{return lw.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",QL.map(e,function(e){return e.toString(16)}).join("")}};var ij=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];QL.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(t){if(!VL.getElementsByTagName)return[];var n,o,i,s,a,l,c,u,p,d,h=t.split(" "),f=[VL];for(l=0;l-1){i=(o=n.split("#"))[0];var m=o[1],g=VL.getElementById(m);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];f=[g]}else if(n.indexOf(".")>-1){i=(o=n.split("."))[0];var v=o[1];for(i||(i="*"),s=[],a=0,c=0;c-1};break;default:b=function(e){return e.getAttribute(w)}}for(f=[],d=0,c=0;c=3?t[2]:""},currentUrl:function(){return lw.location.href},properties:function(e){return"object"!=typeof e&&(e={}),QL.extend(QL.strip_empty_properties({$os:QL.info.os(),$browser:QL.info.browser(HL,UL.vendor,WL),$referrer:VL.referrer,$referring_domain:QL.info.referringDomain(VL.referrer),$device:QL.info.device(HL)}),{$current_url:QL.info.currentUrl(),$browser_version:QL.info.browserVersion(HL,UL.vendor,WL),$screen_height:qL.height,$screen_width:qL.width,mp_lib:"web",$lib_version:uw.LIB_VERSION,$insert_id:gj(),time:QL.timestamp()/1e3},QL.strip_empty_properties(e))},people_properties:function(){return QL.extend(QL.strip_empty_properties({$os:QL.info.os(),$browser:QL.info.browser(HL,UL.vendor,WL)}),{$browser_version:QL.info.browserVersion(HL,UL.vendor,WL)})},mpPageViewProperties:function(){return QL.strip_empty_properties({current_page_title:VL.title,current_domain:lw.location.hostname,current_url_path:lw.location.pathname,current_url_protocol:lw.location.protocol,current_url_search:lw.location.search})}};var gj=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},vj=function(){return"00-"+QL.UUID().replace(/-/g,"")+"-"+QL.UUID().replace(/-/g,"").substring(0,16)+"-01"},yj=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,bj=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,wj=function(e){var t=bj,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=yj);var o=e.match(t);return o?o[0]:""},xj=function(){},_j=function(e,t){for(var r=!1,n=0;nl)return Uj.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),c.removeItem(d),c.removeItem(p),void g();setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},f=function(e,t){e()?t():h(function(){f(e,t)})},m=function(){var e=c.getItem(p);return!(e&&e!==o||(c.setItem(p,o),c.getItem(p)!==o&&(lj(c,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},g=function(){c.setItem(u,o),f(m,function(){c.getItem(u)!==o?h(function(){c.getItem(p)===o?f(function(){return!c.getItem(d)},v):g()}):v()})},v=function(){c.setItem(d,"1");var t=function(){c.removeItem(d),c.getItem(p)===o&&c.removeItem(p),c.getItem(u)===o&&c.removeItem(u)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!lj(c,!0))throw new Error("localStorage support check failed");g()}catch(e){n(e)}},this))};var Wj=function(e){this.storage=e||lw.localStorage};Wj.prototype.init=function(){return TL.resolve()},Wj.prototype.isInitialized=function(){return!0},Wj.prototype.setItem=function(e,t){return new TL(QL.bind(function(r,n){try{this.storage.setItem(e,Sj(t))}catch(e){n(e)}r()},this))},Wj.prototype.getItem=function(e){return new TL(QL.bind(function(t,r){var n;try{n=kj(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},Wj.prototype.removeItem=function(e){return new TL(QL.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var qj=rj("batch"),Hj=function(e,t){var r,n,o,i;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new Wj,this.lock=new Vj(e,{storage:t.sharedLockStorage||lw.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||QL.bind(qj.error,qj),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=QL.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,o=null,i=[],function(e){var t=this;return i.push(e),o||(o=new TL(function(e){setTimeout(function(){var n=r.apply(t,[i]);o=null,i=[],e(n)},n)})),o}):this.enqueuePersisted=QL.bind(function(e){return this._enqueuePersisted([e])},this)};Hj.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?TL.resolve():this.queueStorage.init().then(QL.bind(function(){this.initialized=!0},this)).catch(QL.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},Hj.prototype.enqueue=function(e,t){var r={id:gj(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),TL.resolve(!0))},Hj.prototype._enqueuePersisted=function(e){var t=QL.bind(function(){return this.ensureInit().then(QL.bind(function(){return this.readFromStorage()},this)).then(QL.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(QL.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(QL.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(QL.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},Hj.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.lengthi.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}return t},this)):TL.resolve(t)};var Gj=function(e,t){var r=[];return QL.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};Hj.prototype.removeItemsByID=function(e){var t={};if(QL.each(e,function(e){t[e]=!0}),this.memQueue=Gj(this.memQueue,t),this.usePersistence){var r=QL.bind(function(){return this.ensureInit().then(QL.bind(function(){return this.readFromStorage()},this)).then(QL.bind(function(e){return e=Gj(e,t),this.saveToStorage(e)},this)).then(QL.bind(function(){return this.readFromStorage()},this)).then(QL.bind(function(e){for(var r=0;r5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),TL.resolve();var l=QL.bind(function(){return this.queue.removeItemsByID(QL.map(o,function(e){return e.id})).then(QL.bind(function(e){return QL.each(o,QL.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),TL.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),TL.resolve())},this))},this),c=QL.bind(function(i){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(QL.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(QL.isObject(i)&&(i.httpStatusCode>=500||429===i.httpStatusCode||i.httpStatusCode<=0&&(u=lw.navigator.onLine,!QL.isUndefined(u)&&!u)||"timeout"===i.error)){var s=2*this.flushInterval;return i.retryAfter&&(s=1e3*parseInt(i.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),TL.resolve()}if(QL.isObject(i)&&413===i.httpStatusCode){if(o.length>1){var c=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,c,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),TL.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),l()}return l()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var u},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),Zj.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,u).then(c)},this)).catch(QL.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Xj.prototype.reportError=function(e,t){if(Zj.error.apply(Zj.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Zj.error(t)}};var Yj=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Jj=function(e,t){if(!QL.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n0?t[0]:e.target||e.srcElement}var FN=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",DN=["password","email","tel","hidden"];function $N(e){return e?Array.isArray(e)?e:[e]:[]}function BN(e,t){return!!t&&!!e.closest(t)}function zN(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==DN.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!((!n||""===n||"off"===n)&&!e.hasAttribute("data-rr-is-password")&&!MN(e)&&(t.input.maskAll?BN(e,t.input.unmaskingSelector):!BN(e,t.input.maskingSelector)&&!BN(e,FN)))}function UN(e,t){return!(!e||(!t.text._legacyClassRegex||!EI(e,t.text._legacyClassRegex))&&(t.text.maskAll?BN(e,t.text.unmaskingSelector):!BN(e,t.text.maskingSelector)&&!BN(e,FN)))}var VN=rj("network-plugin");function WN(e){return Math.round(Date.now()-e.performance.now())}var qN={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function HN(e){return"resource"===e.entryType}function GN(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],o=r(n);return e[t]=o,function(){e[t]=n}}var KN=1048576;function ZN(e){return e&&"string"==typeof e&&e.length>KN?(VN.error("Body truncated from "+e.length+" to "+KN+" characters"),e.substring(0,KN)+"... [truncated]"):e}function XN(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function YN(e,t,r){return!(!t[e]||0===t[e].length)&&_j(r,t[e])}function JN(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=QL.HTTPBuildQuery(e);else{if(!QL.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return ZN(t)}function QN(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(ZN(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function eF(e,t,r,n,o,i){if(void 0===i&&(i=0),i>10)return VN.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),function(e){return HN(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!o||e.startTime<=o)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*i)}).then(function(){return eF(e,t,r,n,o,i+1)})}function tF(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},qN.recordHeaders,r.recordHeaders||{}),o=Object.assign({},qN.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:o});var i=Object.assign({},qN,r),s=function(t){var r=t.requests.filter(function(e){return!_j(e.url,i.ignoreRequestUrls||[])&&!i.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return VN.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return function(e){return"navigation"===e.entryType}(e)||HN(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:WN(t)}}),isInitial:!0})}var o=new t.PerformanceObserver(function(n){var o=n.getEntries().filter(function(e){return HN(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:o.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:WN(t)}})})});return o.observe({entryTypes:["navigation","resource"]}),function(){o.disconnect()}}(s,t,i),l=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=GN(t.XMLHttpRequest.prototype,"open",function(n){return function(o,i,s,a,l){void 0===s&&(s=!0);var c,u,p=this,d=new Request(i,{method:o}),h={},f={},m=p.setRequestHeader.bind(p);p.setRequestHeader=function(e,t){return XN("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},h.requestHeaders=f;var g=p.send.bind(p);p.send=function(e){return YN("request",r.recordBodyUrls,d.url)&&(h.requestBody=JN(e)),c=t.performance.now(),g(e)},p.addEventListener("readystatechange",function(){if(p.readyState===p.DONE){u=t.performance.now();var n={},o=p.getAllResponseHeaders();o&&o.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var o=e.substring(0,t),i=e.substring(t+2);o&&XN("response",r.recordHeaders,o)&&(n[o]=i)}}}),h.responseHeaders=n,YN("response",r.recordBodyUrls,d.url)&&(h.responseBody=JN(p.response)),eF(t,"xmlhttprequest",d.url,c,u).then(function(r){if(r){var n={url:r.name,method:d.method,initiatorType:r.initiatorType,status:p.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:WN(t),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};e({requests:[n]})}else VN.error("Failed to get performance entry for XHR request to "+d.url)}).catch(function(e){VN.error("Error recording XHR request to "+d.url+": "+String(e))})}}),n.call(p,o,i,s,a,l)}});return function(){n()}}(s,t,i),c=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=GN(t,"fetch",function(n){return function(){var o,i,s,a,l=new Request(arguments[0],arguments[1]),c={},u=Promise.resolve(void 0),p=Promise.resolve(void 0);try{var d={};l.headers.forEach(function(e,t){XN("request",r.recordHeaders,t)&&(d[t]=e)}),c.requestHeaders=d,YN("request",r.recordBodyUrls,l.url)&&(u=QN(l).then(function(e){c.requestBody=e})),i=t.performance.now(),a=n.apply(t,arguments).then(function(e){o=e,s=t.performance.now();var n={};return o.headers.forEach(function(e,t){XN("response",r.recordHeaders,t)&&(n[t]=e)}),c.responseHeaders=n,YN("response",r.recordBodyUrls,l.url)&&(p=QN(o).then(function(e){c.responseBody=e})),o})}catch(e){a=Promise.reject(e)}return Promise.all([u,p,a]).then(function(){return eF(t,"fetch",l.url,i,s)}).then(function(r){if(r){var n={url:r.name,method:l.method,initiatorType:r.initiatorType,status:o?o.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:WN(t),requestHeaders:c.requestHeaders,requestBody:c.requestBody,responseHeaders:c.responseHeaders,responseBody:c.responseBody};e({requests:[n]})}else VN.error("Failed to get performance entry for fetch request to "+l.url)}).catch(function(e){VN.error("Error recording fetch request to "+l.url+": "+String(e))}),a}});return function(){n()}}(s,t,i);return function(){a(),l(),c()}}var rF=rj("recorder"),nF=lw.CompressionStream,oF={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},iF=new Set([yM.MouseMove,yM.MouseInteraction,yM.Scroll,yM.ViewportResize,yM.Input,yM.TouchMove,yM.MediaInteraction,yM.Drag,yM.Selection]),sF=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||xj,this._onMaxLengthReached=e.onMaxLengthReached||xj,this._onBatchSent=e.onBatchSent||xj,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=LL,this.recordMinMs=0;var t=lj(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Rj(Cj),this.batcher=new Xj(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:oF,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};sF.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},sF.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()LL&&(this.recordMaxMs=LL,rF.critical("record_max_ms cannot be greater than "+LL+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=QL.info.currentUrl(),this.replayStartUrl=QL.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),o=e.get_config("record_mask_all_inputs");t.input.maskingSelector=$N(r).join(","),t.input.unmaskingSelector=$N(n).join(","),void 0!==o&&(t.input.maskAll=o);var i=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),l=e.get_config("record_mask_text_class"),c=$N(i);if(l)if(l instanceof RegExp)t.text._legacyClassRegex=l;else{var u="."+l;-1===c.indexOf(u)&&c.push(u)}return t.text.maskingSelector=c.join(","),t.text.unmaskingSelector=$N(s).join(","),void 0===a&&void 0!==i?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),o=[];if(this.getConfig("record_network")){var i=this.getConfig("record_network_options")||{},s=(i.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),i.ignoreRequestUrls=s,o.push(function(e){return{name:"rrweb/network@1.mp",observer:tF,options:e}}(i))}this.getConfig("record_console")&&o.push({name:"rrweb/console@1",observer:mL,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=Jj(this.getConfig("record_allowed_iframe_origins"),rF);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(zN,n),maskTextFn:this._getMaskFn(UN,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:o})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var l=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),l)}else rF.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},sF.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},sF.prototype.isRrwebStopped=function(){return null===this._stopRecording},sF.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},sF.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},sF.deserialize=function(e,t){return new sF(QL.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},sF.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},sF.prototype._sendRequest=function(e,t,r,n){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=QL.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");lw.fetch(i+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){o(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},sF.prototype._flushEvents=Pj(function(e,t,r){var n=e.length;if(n>0){for(var o=this.replayId,i=1/0,s=-1/0,a=!1,l=0;l=16.4&&o<16.6)}(HL,UL.vendor,WL)){var d=new Blob([p],{type:"application/json"}).stream().pipeThrough(new nF("gzip"));new Response(d).blob().then(function(e){u.format="gzip",this._sendRequest(o,u,e,r)}.bind(this))}else u.format="body",this._sendRequest(o,u,p,r)}}),sF.prototype.reportError=function(e,t){rF.error.apply(rF.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){rF.error(t)}},sF.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},sF.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(rF.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},sF.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var o=!0;try{o=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(o){var i=Math.min(r.length,1e4);return"*".repeat(i)}return r}.bind(this)};var aF=function(e){this.idb=new Rj(Oj),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};aF.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},aF.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},aF.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return TL.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),TL.resolve())},aF.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return Yj(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):TL.resolve(null)},aF.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},aF.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},aF.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):TL.resolve()},aF.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return Yj(e)}).map(function(e){return sF.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return TL.all(t)}.bind(this)).catch(this.handleError.bind(this)):TL.resolve([])};var lF=rj("recorder"),cF=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||xI,this.sharedLockStorage=r,this.recordingRegistry=new aF({mixpanelInstance:this.mixpanelInstance,errorReporter:lF.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};cF.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){lF.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){lF.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),o={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:QL.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=sF.deserialize(e.activeSerializedRecording,o):this.activeRecording=new sF(o),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}lF.log("Recording already in progress, skipping startRecording.")},cF.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},cF.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},cF.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return TL.resolve()},cF.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),TL.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(lF.log("No resumable recording found."),null)}.bind(this))},cF.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},cF.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},cF.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(cF.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),lw[dw]=cF;var uF,pF={exports:{}},dF=(uF||(uF=1,pF.exports=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e=t?[]:n}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map(function(t){return e.apply(t,n)});if(!e.is_logic(r))return r;var o,i,s,a,l,c=e.get_operator(r),u=r[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(o=0;o0){var p=String(c).split("."),d=t;for(o=0;o=o)return this.clicks=[],!0}else this.clicks=[{x:a,y:l,timestamp:s}];return!1},gF.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return NN(e)},gF.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=jN(e),r=0;r=t?this.hasChangesAfter(s.timestamp)||o.push(s):this.pendingClicks.push(s)}return o},xF.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},xF.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},xF.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},xF.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},xF.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;vF.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),bF.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),yF.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,wF)}catch(e){yN.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new gF(function(){e.recordChangeEvent()},wF),this.shadowDOMObserver.start()}catch(e){yN.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},xF.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;ethis.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=VL.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,lw.addEventListener(e.eventType,this.listenerScrollDepth)}},GF.prototype.initClickTracking=function(){lw.removeEventListener(eN,this.listenerClick),(this.getConfig(LF)||this.mp.get_config("record_heatmap_data"))&&(yN.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(LF)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,WF)}.bind(this),lw.addEventListener(eN,this.listenerClick))},GF.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(jF)||this.mp.get_config("record_heatmap_data")?(yN.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new xF(function(e){this.trackDomEvent(e,qF)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(jF);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),lw.addEventListener(eN,this.listenerDeadClick))):this.stopDeadClickTracking()},GF.prototype.initInputTracking=function(){lw.removeEventListener(Qj,this.listenerChange),this.getConfig(NF)&&(yN.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(NF)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),lw.addEventListener(Qj,this.listenerChange))},GF.prototype.initPageviewTracking=function(){if(lw.removeEventListener(nN,this.listenerLocationchange),this.pageviewTrackingConfig()){yN.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(VF)),t&&(e=QL.info.currentUrl()),this.listenerLocationchange=nj(function(){if(!this.currentUrlBlocked()){var t=QL.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();o===SF?r=t!==e:"url-with-path-and-query-string"===o?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===o&&(r=n),r&&(this.mp.track_pageview(VF)&&(e=t),n&&(this.lastScrollCheckpoint=0,yN.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),lw.addEventListener(nN,this.listenerLocationchange)}},GF.prototype.initRageClickTracking=function(){lw.removeEventListener(eN,this.listenerRageClick),(this._getClickTrackingConfig(DF)||this.mp.get_config("record_heatmap_data"))&&(yN.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new mF),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(DF);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,HF))}.bind(this),lw.addEventListener(eN,this.listenerRageClick))},GF.prototype.initScrollTracking=function(){if(lw.removeEventListener(iN,this.listenerScroll),lw.removeEventListener(sN,this.listenerScroll),this.getConfig($F)){yN.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=TN(function(){if(this.getConfig($F)&&!this.currentUrlBlocked()){var e=this.getConfig(TF),t=(this.getConfig(PF)||[]).slice().sort(function(e,t){return e-t}),r=lw.scrollY,n=QL.extend({$scroll_top:r},VF);try{var o=VL.body.scrollHeight,i=Math.round(r/(o-lw.innerHeight)*100);if(n.$scroll_height=o,n.$scroll_percentage=i,i>this.lastScrollCheckpoint)for(var s=0;s=a&&this.lastScrollCheckpoint0&&QL.each(i,function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&QL.each(this.activatedFirstTimeEvents,function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=o,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),ZF.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),ZF.error(e)}.bind(this)),this.fetchPromise},QF.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):ZF.error("Fetch in progress started time not set, cannot mark fetch complete")},QF.prototype._loadTargetingIfNeeded=function(){var e=!1;QL.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!QL.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){ZF.log("targeting loaded for property filter evaluation")})},QF.prototype.getTargeting=function(){return KF(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){ZF.error("Failed to load targeting: "+e)}.bind(this))},QF.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!QL.isEmptyObject(this.pendingFirstTimeEvents)&&(lw[pw]&&QL.isFunction(lw[pw].then)?lw[pw].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},QF.prototype._processFirstTimeEventCheck=function(e,t,r){QL.each(this.pendingFirstTimeEvents,function(n,o){if(!this.activatedFirstTimeEvents[o]){var i,s=n.flag_key;if(r||!n.property_filters||QL.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};i=r.eventMatchesCriteria(e,t,a)}else i={matches:e===n.event_name,error:null};if(i.error)ZF.error('Error checking first-time event for flag "'+s+'": '+i.error);else if(i.matches){ZF.log('First-time event matched for flag "'+s+'": '+e);var l={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,l),this.activatedFirstTimeEvents[o]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else ZF.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},QF.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},QF.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),o=vj(),i=new URLSearchParams;i.set("mp_lib","web"),i.set("$lib_version",uw.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+i.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};ZF.log("Recording first-time event for flag: "+e),this.fetch.call(lw,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:o},body:JSON.stringify(a)}).catch(function(t){ZF.error("Failed to record first-time event for flag "+e+": "+t)})},QF.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return ZF.error(e),t}):new Promise(function(e){ZF.critical("Feature Flags not initialized"),e(t)})},QF.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return ZF.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(ZF.log('No flag found: "'+e+'"'),t)},QF.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return ZF.error(e),t})},QF.prototype.getFeatureData=function(e,t){return ZF.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},QF.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},QF.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return ZF.error(e),t})},QF.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(ZF.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},QF.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},QF.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},oj(QF),QF.prototype.are_flags_ready=QF.prototype.areFlagsReady,QF.prototype.get_variant=QF.prototype.getVariant,QF.prototype.get_variant_sync=QF.prototype.getVariantSync,QF.prototype.get_variant_value=QF.prototype.getVariantValue,QF.prototype.get_variant_value_sync=QF.prototype.getVariantValueSync,QF.prototype.is_enabled=QF.prototype.isEnabled,QF.prototype.is_enabled_sync=QF.prototype.isEnabledSync,QF.prototype.update_context=QF.prototype.updateContext,QF.prototype.get_feature_data=QF.prototype.getFeatureData,QF.prototype.getTargeting=QF.prototype.getTargeting;var eD=rj("recorder"),tD="mp_iframe_handshake_request",rD="mp_iframe_handshake_response",nD=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};nD.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return ej.log("Load recorder check skipped due to disable_persistence config"),TL.resolve(!1);var e=new Rj(Oj),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r0&&(this._setupParentFrameListener(n),lw.parent!==lw))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),TL.resolve();var o=QL.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,i=o>0&&100*Math.random()<=o;return e||i?r(!0):this.shouldLoadRecorder().then(QL.bind(function(e){return e?r(!1):TL.resolve()},this))},nD.prototype.isRecording=function(){if(!this._recorder||!QL.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},nD.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var o=n[e];if(o&&"number"==typeof o.percentage){var i=o.percentage,s=o.property_filters;if(s&&!QL.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+hw;KF(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,i)}catch(e){ej.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch(function(e){ej.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,i)}}},nD.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():TL.resolve()},nD.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():TL.resolve()},nD.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():TL.resolve()},nD.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},nD.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},nD.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+QL.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},nD.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},nD.prototype.getRecorder=function(){return this._recorder},nD.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var o=n.data;o&&o.type===rD&&o.token===r.getMpConfig("token")&&o.replayId&&(r._parentReplayId=o.replayId,o.distinctId&&r.mixpanelInstance.identify(o.distinctId),r._parentFrameRetryActive=!1,lw.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},lw.addEventListener("message",this._childFrameMessageHandler)}},nD.prototype._sendParentFrameRequest=function(e){var t={};t.type=tD,t.token=this.getMpConfig("token");for(var r=0;r=10||(t._sendParentFrameRequest(e),n*=2,o())},n)}()},nD.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===tD&&n.token===t.getMpConfig("token")){var o=t.getSessionReplayId();if(o){var i={};i.type=rD,i.token=t.getMpConfig("token"),i.replayId=o,i.distinctId=t.getDistinctId(),r.source.postMessage(i,r.origin)}}}},lw.addEventListener("message",this._parentFrameMessageHandler)}},oj(nD);var oD=function(){};oD.prototype.create_properties=function(){},oD.prototype.event_handler=function(){},oD.prototype.after_track_handler=function(){},oD.prototype.init=function(e){return this.mp=e,this},oD.prototype.track=function(e,t,r,n){var o=this,i=QL.dom_query(e);if(0!==i.length)return QL.each(i,function(e){QL.register_event(e,this.override_event,function(e){var i={},s=o.create_properties(r,this),a=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(n,s,i,!0),a),o.mp.track(t,s,o.track_callback(n,s,i))})},this),!0;ej.error("The DOM query ("+e+") returned 0 elements")},oD.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||o.after_track_handler(t,r,n))}},oD.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):QL.extend({},e)};var iD=function(){this.override_event="click"};QL.inherit(iD,oD),iD.prototype.create_properties=function(e,t){var r=iD.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},iD.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},iD.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var sD=function(){this.override_event="submit"};QL.inherit(sD,oD),sD.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},sD.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var aD="$set",lD="$set_once",cD="$unset",uD="$add",pD="$append",dD="$union",hD="$remove",fD={set_action:function(e,t){var r={},n={};return QL.isObject(e)?QL.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[aD]=n,r},unset_action:function(e){var t={},r=[];return QL.isArray(e)||(e=[e]),QL.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[cD]=r,t},set_once_action:function(e,t){var r={},n={};return QL.isObject(e)?QL.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[lD]=n,r},union_action:function(e,t){var r={},n={};return QL.isObject(e)?QL.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=QL.isArray(e)?e:[e])},this):n[e]=QL.isArray(t)?t:[t],r[dD]=n,r},append_action:function(e,t){var r={},n={};return QL.isObject(e)?QL.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[pD]=n,r},remove_action:function(e,t){var r={},n={};return QL.isObject(e)?QL.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[hD]=n,r},delete_action:function(){return{$delete:""}}},mD=function(){};QL.extend(mD.prototype,fD),mD.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},mD.prototype.set=jj(function(e,t,r){var n=this.set_action(e,t);return QL.isObject(e)&&(r=t),this._send_request(n,r)}),mD.prototype.set_once=jj(function(e,t,r){var n=this.set_once_action(e,t);return QL.isObject(e)&&(r=t),this._send_request(n,r)}),mD.prototype.unset=jj(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),mD.prototype.union=jj(function(e,t,r){QL.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),mD.prototype.delete=jj(function(e){var t=this.delete_action();return this._send_request(t,e)}),mD.prototype.remove=jj(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),mD.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=QL.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},mD.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},mD.prototype._get_config=function(e){return this._mixpanel.get_config(e)},mD.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},mD.prototype.remove=mD.prototype.remove,mD.prototype.set=mD.prototype.set,mD.prototype.set_once=mD.prototype.set_once,mD.prototype.union=mD.prototype.union,mD.prototype.unset=mD.prototype.unset,mD.prototype.toString=mD.prototype.toString;var gD=function(){};QL.extend(gD.prototype,fD),gD.prototype._init=function(e){this._mixpanel=e},gD.prototype.set=Lj(function(e,t,r){var n=this.set_action(e,t);return QL.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[aD]=QL.extend({},QL.info.people_properties(),n[aD]),this._send_request(n,r)}),gD.prototype.set_once=Lj(function(e,t,r){var n=this.set_once_action(e,t);return QL.isObject(e)&&(r=t),this._send_request(n,r)}),gD.prototype.unset=Lj(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),gD.prototype.increment=Lj(function(e,t,r){var n={},o={};return QL.isObject(e)?(QL.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void ej.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}},this),r=t):(QL.isUndefined(t)&&(t=1),o[e]=t),n[uD]=o,this._send_request(n,r)}),gD.prototype.append=Lj(function(e,t,r){QL.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),gD.prototype.remove=Lj(function(e,t,r){QL.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),gD.prototype.union=Lj(function(e,t,r){QL.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),gD.prototype.track_charge=Lj(function(){ej.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),gD.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},gD.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}ej.error("mixpanel.people.delete_user() requires you to call identify() first")},gD.prototype.toString=function(){return this._mixpanel.toString()+".people"},gD.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=QL.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),QL.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),QL.truncate(i,255))},gD.prototype._get_config=function(e){return this._mixpanel.get_config(e)},gD.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},gD.prototype._enqueue=function(e){aD in e?this._mixpanel.persistence._add_to_people_queue(aD,e):lD in e?this._mixpanel.persistence._add_to_people_queue(lD,e):cD in e?this._mixpanel.persistence._add_to_people_queue(cD,e):uD in e?this._mixpanel.persistence._add_to_people_queue(uD,e):pD in e?this._mixpanel.persistence._add_to_people_queue(pD,e):hD in e?this._mixpanel.persistence._add_to_people_queue(hD,e):dD in e?this._mixpanel.persistence._add_to_people_queue(dD,e):ej.error("Invalid call to _enqueue():",e)},gD.prototype._flush_one_queue=function(e,t,r,n){var o=this,i=QL.extend({},this._mixpanel.persistence.load_queue(e)),s=i;QL.isUndefined(i)||!QL.isObject(i)||QL.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),n&&(s=n(i)),t.call(o,s,function(t,n){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),QL.isUndefined(r)||r(t,n)}))},gD.prototype._flush=function(e,t,r,n,o,i,s){var a=this;this._flush_one_queue(aD,this.set,e),this._flush_one_queue(lD,this.set_once,n),this._flush_one_queue(cD,this.unset,i,function(e){return QL.keys(e)}),this._flush_one_queue(uD,this.increment,t),this._flush_one_queue(dD,this.union,o);var l=this._mixpanel.persistence.load_queue(pD);if(!QL.isUndefined(l)&&QL.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(pD,c),QL.isUndefined(r)||r(e,t)},p=l.length-1;p>=0;p--)l=this._mixpanel.persistence.load_queue(pD),c=l.pop(),a._mixpanel.persistence.save(),QL.isEmptyObject(c)||a.append(c,u);var d=this._mixpanel.persistence.load_queue(hD);if(!QL.isUndefined(d)&&QL.isArray(d)&&d.length)for(var h,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(hD,h),QL.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(hD),h=d.pop(),a._mixpanel.persistence.save(),QL.isEmptyObject(h)||a.remove(h,f)},gD.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},gD.prototype.set=gD.prototype.set,gD.prototype.set_once=gD.prototype.set_once,gD.prototype.unset=gD.prototype.unset,gD.prototype.increment=gD.prototype.increment,gD.prototype.append=gD.prototype.append,gD.prototype.remove=gD.prototype.remove,gD.prototype.union=gD.prototype.union,gD.prototype.track_charge=gD.prototype.track_charge,gD.prototype.clear_charges=gD.prototype.clear_charges,gD.prototype.delete_user=gD.prototype.delete_user,gD.prototype.toString=gD.prototype.toString;var vD,yD="__mps",bD="__mpso",wD="__mpus",xD="__mpa",_D="__mpap",SD="__mpr",kD="__mpu",CD="$people_distinct_id",OD="__alias",ED="__timers",RD=[yD,bD,wD,xD,_D,SD,kD,CD,OD,ED],MD=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(ej.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&QL.localStorage.is_supported()?this.storage=QL.localStorage:this.storage=QL.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};MD.prototype.properties=function(){var e={};return this.load(),QL.each(this.props,function(t,r){QL.include(RD,r)||(e[r]=t)}),e},MD.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=QL.extend({},e))}},MD.prototype.upgrade=function(){var e,t;this.storage===QL.localStorage?(e=QL.cookie.parse(this.name),QL.cookie.remove(this.name),QL.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===QL.cookie&&(t=QL.localStorage.parse(this.name),QL.localStorage.remove(this.name),t&&this.register_once(t))},MD.prototype.save=function(){this.disabled||this.storage.set(this.name,Sj(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},MD.prototype.load_prop=function(e){return this.load(),this.props[e]},MD.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},MD.prototype.clear=function(){this.remove(),this.props={}},MD.prototype.register_once=function(e,t,r){return!!QL.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),QL.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},MD.prototype.register=function(e,t){return!!QL.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),QL.extend(this.props,e),this.save(),!0)},MD.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},MD.prototype.update_search_keyword=function(e){this.register(QL.info.searchInfo(e))},MD.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:QL.info.referringDomain(e)||"$direct"},"")},MD.prototype.get_referrer_info=function(){return QL.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},MD.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},MD.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},MD.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},MD.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},MD.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},MD.prototype.get_cross_subdomain=function(){return this.cross_subdomain},MD.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},MD.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(aD),i=this._get_or_create_queue(lD),s=this._get_or_create_queue(cD),a=this._get_or_create_queue(uD),l=this._get_or_create_queue(dD),c=this._get_or_create_queue(hD,[]),u=this._get_or_create_queue(pD,[]);r===yD?(QL.extend(o,n),this._pop_from_people_queue(uD,n),this._pop_from_people_queue(dD,n),this._pop_from_people_queue(cD,n)):r===bD?(QL.each(n,function(e,t){t in i||(i[t]=e)}),this._pop_from_people_queue(cD,n)):r===wD?QL.each(n,function(e){QL.each([o,i,a,l],function(t){e in t&&delete t[e]}),QL.each(u,function(t){e in t&&delete t[e]}),s[e]=!0}):r===xD?(QL.each(n,function(e,t){t in o?o[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(cD,n)):r===kD?(QL.each(n,function(e,t){QL.isArray(e)&&(t in l||(l[t]=[]),QL.each(e,function(e){QL.include(l[t],e)||l[t].push(e)}))}),this._pop_from_people_queue(cD,n)):r===SD?(c.push(n),this._pop_from_people_queue(pD,n)):r===_D&&(u.push(n),this._pop_from_people_queue(cD,n)),ej.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),ej.log(t),this.save()},MD.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];QL.isUndefined(r)||QL.each(t,function(t,n){e===pD||e===hD?QL.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},MD.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},MD.prototype._get_queue_key=function(e){return e===aD?yD:e===lD?bD:e===cD?wD:e===uD?xD:e===pD?_D:e===hD?SD:e===dD?kD:void ej.error("Invalid queue:",e)},MD.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=QL.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},MD.prototype.set_event_timer=function(e,t){var r=this.load_prop(ED)||{};r[e]=t,this.props[ED]=r,this.save()},MD.prototype.remove_event_timer=function(e){var t=(this.load_prop(ED)||{})[e];return QL.isUndefined(t)||(delete this.props[ED][e],this.save()),t};var ID,AD=function(e,t){throw new Error(e+" not available in this build.")},TD="mixpanel",PD="base64",LD="$device:",jD=lw.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ND=!jD&&-1===HL.indexOf("MSIE")&&-1===HL.indexOf("Mozilla"),FD=null;UL.sendBeacon&&(FD=function(){return UL.sendBeacon.apply(UL,arguments)});var DD={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},$D={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:DD,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:PD,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:xj,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:xj,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:LL,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},BD=!1,zD=function(){},UD=function(e,t,r){var n,o=r===TD?ID:ID[r];if(o&&0===vD)n=o;else{if(o&&!QL.isArray(o))return void ej.error("You have already initialized "+r);n=new zD}if(n._cached_groups={},n._init(e,t,r),n.people=new gD,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=QL.info.campaignParams(null),s={},a=!1;QL.each(i,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}uw.DEBUG=uw.DEBUG||n.get_config("debug");var l=0===vD?"module":"snippet";return lw.dispatchEvent(new lw.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:l,token:e,name:r,info:QL.info}})),!QL.isUndefined(o)&&QL.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};zD.prototype.init=function(e,t,r){if(QL.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==TD){var n=UD(e,t,r);return ID[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},zD.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||$D.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(QL.extend({},$D,n,t,{name:r,token:e,callback_fn:(r===TD?r:TD+"."+r)+"._jsc"})),this.recorderManager=new nD({mixpanelInstance:this,getConfigFunc:QL.bind(this.get_config,this),setConfigFunc:QL.bind(this.set_config,this),getTabIdFunc:QL.bind(this.get_tab_id,this),reportErrorFunc:QL.bind(this.report_error,this),getDistinctIdFunc:QL.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:AD}),this._jsc=xj,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(QL.localStorage.is_supported(!0)&&jD){if(this.init_batchers(),FD&&lw.addEventListener){var o=QL.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);lw.addEventListener("pagehide",function(e){e.persisted&&o()}),lw.addEventListener("visibilitychange",function(){"hidden"===VL.visibilityState&&o()})}}else this._batch_requests=!1,ej.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),QL.each(this.get_batcher_configs(),function(e){ej.log("Clearing batch queue "+e.queue_key),QL.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new MD(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=QL.UUID();this.get_distinct_id()||this.register_once({distinct_id:LD+i,$device_id:i},""),this.flags=new QF({getFullApiRoute:QL.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:QL.bind(this.get_config,this),setConfigFunc:QL.bind(this.set_config,this),getPropertyFunc:QL.bind(this.get_property,this),trackingFunc:QL.bind(this.track,this),loadExtraBundle:AD,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+hw}),this.flags.init(),this.flags=this.flags,this.autocapture=new GF(this),this.autocapture.init(),this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(QL.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},zD.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))ej.log("Tab ID initialization skipped due to disable_persistence config");else if(QL.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!QL.sessionStorage.get(r)&&QL.sessionStorage.get(t)||QL.sessionStorage.set(t,"$tab-"+QL.UUID()),QL.sessionStorage.set(r,"1"),this.tab_id=QL.sessionStorage.get(t),lw.addEventListener("beforeunload",function(){QL.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},zD.prototype.get_tab_id=function(){return this.tab_id||null},zD.prototype._check_and_start_session_recording=Pj(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),zD.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},zD.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},zD.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},zD.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},zD.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},zD.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},zD.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},zD.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},zD.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},zD.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},zD.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=QL.info.campaignParams(null);QL.each(e,function(e,t){this.unregister(t)}.bind(this))}},zD.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(VL.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(QL.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(VL.referrer)},zD.prototype._dom_loaded=function(){QL.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||QL.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},zD.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!BD)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},zD.prototype._prepare_callback=function(e,t){if(QL.isUndefined(e))return null;if(jD)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},zD.prototype._send_request=function(e,t,r,n){var o=!0;if(ND)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!QL.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=QL.extend(i,r||{}),jD||(r.method="GET");var a="POST"===r.method,l=FD&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),jD||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),QL.extend(t,this.get_config("api_extra_query_params")),e+="?"+QL.HTTPBuildQuery(t);var u=this;if("img"in t){var p=VL.createElement("img");p.src=e,VL.body.appendChild(p)}else if(l){try{o=FD(e,s)}catch(e){u.report_error(e),o=!1}try{n&&n(o?1:0)}catch(e){u.report_error(e)}}else if(jD)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),QL.each(h,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(c){var t;try{t=QL.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),n)if(c){var o=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:o["Retry-After"]})}else n(0)},d.send(s)}catch(e){u.report_error(e),o=!1}else{var m=VL.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=VL.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return o},zD.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!lw.AbortController)return ej.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,o={$lib_version:uw.LIB_VERSION,mp_lib:"web",sdk_config:"1"},i=n+"?"+QL.HTTPBuildQuery(o),s=new AbortController,a=setTimeout(function(){s.abort()},500),l={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return lw.fetch(i,l).then(function(e){return clearTimeout(a),e.ok?e.json():(ej.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,o={};QL.each(n,function(e,t){$D.hasOwnProperty(t)&&(o[t]=e)}),QL.isEmptyObject(o)?(ej.critical("No valid config keys found in remote settings."),r()):t.set_config(o)}else r()}).catch(function(e){clearTimeout(a),ej.critical("Failed to fetch remote settings",e),r()})},zD.prototype._execute_array=function(e){var t,r=[],n=[],o=[];QL.each(e,function(e){e&&(t=e[0],QL.isArray(t)?o.push(e):"function"==typeof e?e.call(this):QL.isArray(e)&&"alias"===t?r.push(e):QL.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):n.push(e))},this);var i=function(e,t){QL.each(e,function(e){if(QL.isArray(e[0])){var r=t;QL.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};i(r,this),i(n,this),i(o,this)},zD.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},zD.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},zD.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=QL.bind(function(e){return new Xj(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:QL.bind(function(t,r,n){var o=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+o[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:QL.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:QL.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},zD.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,QL.each(this.request_batchers,function(e){e.start()}))},zD.prototype.stop_batch_senders=function(){this._batch_requests=!1,QL.each(this.request_batchers,function(e){e.stop(),e.clear()})},zD.prototype.push=function(e){this._execute_array([e])},zD.prototype.enable=function(e){var t,r,n,o;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n-1&&(n.splice(o,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),zD.prototype.track_with_groups=Pj(function(e,t,r,n){var o=QL.extend({},t||{});return QL.each(r,function(e,t){null!=e&&(o[t]=e)}),this.track(e,o,n)}),zD.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},zD.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},zD.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new mD)._init(this,e,t),this._cached_groups[r]=n),n},zD.prototype.track_pageview=Pj(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=QL.extend(QL.info.mpPageViewProperties(),QL.info.campaignParams(),QL.info.clickParams()),o=QL.extend({},n,e);return this.track(r,o)}),zD.prototype.track_links=function(){return this._track_dom.call(this,iD,arguments)},zD.prototype.track_forms=function(){return this._track_dom.call(this,sD,arguments)},zD.prototype.time_event=function(e){QL.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var VD={persistent:!0},WD=function(e){var t;return t=QL.isObject(e)?e:QL.isUndefined(e)?{}:{days:e},QL.extend({},VD,t)};zD.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=WD(t);n.persistent?this.persistence.register(e,n.days):QL.extend(this.unpersisted_superprops,e)}},zD.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var o=WD(r);o.persistent?this.persistence.register_once(e,t,o.days):(void 0===t&&(t="None"),QL.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},zD.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=WD(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},zD.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},zD.prototype.identify=function(e,t,r,n,o,i,s,a){var l=this._run_hook("before_identify",e);if(null===l)return-1;e=l[0];var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(LD))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(OD)&&(this.unregister(OD),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,i,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},zD.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=QL.UUID();this.register_once({distinct_id:LD+e,$device_id:e},""),this._check_and_start_session_recording()},zD.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},zD.prototype.alias=function(e,t){if(e===this.get_property(CD))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return QL.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(OD,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},zD.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},zD.prototype.set_config=function(e){QL.isObject(e)&&(QL.extend(this.config,e),e.batch_size&&QL.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),uw.DEBUG=uw.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),QL.isObject(e.hooks)&&(this.hooks={},QL.each(e.hooks,function(e,t){if(QL.isFunction(e))this.hooks[t]=[e];else if(QL.isArray(e)){this.hooks[t]=[];for(var r=0;rnull!==KD},YD="plugin-settings",JD=e=>{const{enabled:t=!0}=e||{};return Zg({queryKey:[YD],queryFn:()=>iw.getPluginSettings(),enabled:t})},QD=new Ug({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!1,retryOnMount:!1,retry:!1}}}),e$=(0,o.createContext)(null),t$=({env:e,language:t="en",isRTL:r=!1,children:i})=>{const s=(0,o.useMemo)(()=>(e=>Yg[e])(e),[e]),a=(0,o.useMemo)(()=>({config:s,isRTL:r}),[s,r]);return(0,o.useEffect)(()=>{Nh.changeLanguage(t)},[t]),(0,o.useEffect)(()=>{ub.initialize(s)},[s]),(0,o.useEffect)(()=>{window.elementorOneSettingsData?.shareUsageData&&XD.initialize("150605b3b9f979922f2ac5a52e2dcfe9",e)},[e]),(0,n.jsx)(qg,{client:QD,children:(0,n.jsx)(e$.Provider,{value:a,children:i})})},r$=()=>{const e=(0,o.useContext)(e$);if(!e)throw new Error("Wrap your component in to access the env config");return e.config};var n$=ui;const o$=()=>{const e=Ni();return n$(e.breakpoints.down("sm"))};function i$(e){return Xn("MuiSkeleton",e)}Fi("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const s$=["animation","className","component","height","style","variant","width"];let a$,l$,c$,u$,p$=e=>e;const d$=rt(a$||(a$=p$` 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } `)),h$=rt(l$||(l$=p$` 0% { transform: translateX(-100%); } 50% { /* +0.5s of delay between each loop */ transform: translateX(100%); } 100% { transform: translateX(100%); } `)),f$=To("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const r=function(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}(e.shape.borderRadius)||"px",n=function(e){return parseFloat(e)}(e.shape.borderRadius);return c({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:fi(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>"pulse"===e.animation&&tt(c$||(c$=p$` animation: ${0} 2s ease-in-out 0.5s infinite; `),d$),({ownerState:e,theme:t})=>"wave"===e.animation&&tt(u$||(u$=p$` position: relative; overflow: hidden; /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ -webkit-mask-image: -webkit-radial-gradient(white, black); &::after { animation: ${0} 2s linear 0.5s infinite; background: linear-gradient( 90deg, transparent, ${0}, transparent ); content: ''; position: absolute; transform: translateX(-100%); /* Avoid flash during server-side hydration */ bottom: 0; left: 0; right: 0; top: 0; } `),h$,(t.vars||t).palette.action.hover)),m$=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:u,variant:p="text",width:d}=r,h=l(r,s$),f=c({},r,{animation:o,component:s,variant:p,hasChildren:Boolean(h.children)}),m=(e=>{const{classes:t,variant:r,animation:n,hasChildren:o,width:i,height:s}=e;return x({root:["root",r,n,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},i$,t)})(f);return(0,n.jsx)(f$,c({as:s,ref:t,className:w(m.root,i),ownerState:f},h,{style:c({width:d,height:a},u)}))}),g$=m$;var v$=i().forwardRef((e,t)=>i().createElement(g$,{...e,ref:t}));function y$(e,t){function r(r,o){return(0,n.jsx)(lc,c({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return r.muiName=lc.muiName,o.memo(o.forwardRef(r))}const b$=y$((0,n.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function w$(e){return Xn("MuiChip",e)}const x$=Fi("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),_$=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],S$=To("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=r;return[{[`& .${x$.avatar}`]:t.avatar},{[`& .${x$.avatar}`]:t[`avatar${Bo(a)}`]},{[`& .${x$.avatar}`]:t[`avatarColor${Bo(n)}`]},{[`& .${x$.icon}`]:t.icon},{[`& .${x$.icon}`]:t[`icon${Bo(a)}`]},{[`& .${x$.icon}`]:t[`iconColor${Bo(o)}`]},{[`& .${x$.deleteIcon}`]:t.deleteIcon},{[`& .${x$.deleteIcon}`]:t[`deleteIcon${Bo(a)}`]},{[`& .${x$.deleteIcon}`]:t[`deleteIconColor${Bo(n)}`]},{[`& .${x$.deleteIcon}`]:t[`deleteIcon${Bo(l)}Color${Bo(n)}`]},t.root,t[`size${Bo(a)}`],t[`color${Bo(n)}`],i&&t.clickable,i&&"default"!==n&&t[`clickableColor${Bo(n)})`],s&&t.deletable,s&&"default"!==n&&t[`deletableColor${Bo(n)}`],t[l],t[`${l}${Bo(n)}`]]}})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return c({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x$.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${x$.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${x$.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${x$.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x$.icon}`]:c({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&c({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),[`& .${x$.deleteIcon}`]:c({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ro.alpha(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)`:ro.alpha(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:ro.alpha(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${x$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ro.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x$.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>c({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ro.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ro.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x$.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>c({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x$.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${x$.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${x$.avatar}`]:{marginLeft:4},[`& .${x$.avatarSmall}`]:{marginLeft:2},[`& .${x$.icon}`]:{marginLeft:4},[`& .${x$.iconSmall}`]:{marginLeft:2},[`& .${x$.deleteIcon}`]:{marginRight:5},[`& .${x$.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ro.alpha(e.palette[t.color].main,.7)}`,[`&.${x$.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ro.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ro.alpha(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x$.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ro.alpha(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),k$=To("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${Bo(n)}`]]}})(({ownerState:e})=>c({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7}));function C$(e){return"Backspace"===e.key||"Delete"===e.key}const O$=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiChip"}),{avatar:i,className:s,clickable:a,color:u="default",component:p,deleteIcon:d,disabled:h=!1,icon:f,label:m,onClick:g,onDelete:v,onKeyDown:y,onKeyUp:b,size:_="medium",variant:S="filled",tabIndex:k,skipFocusWhenDisabled:C=!1}=r,O=l(r,_$),E=o.useRef(null),R=ws(E,t),M=e=>{e.stopPropagation(),v&&v(e)},I=!(!1===a||!g)||a,A=I||v?ga:p||"div",T=c({},r,{component:A,disabled:h,size:_,color:u,iconColor:o.isValidElement(f)&&f.props.color||u,onDelete:!!v,clickable:I,variant:S}),P=(e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e;return x({root:["root",l,r&&"disabled",`size${Bo(n)}`,`color${Bo(o)}`,a&&"clickable",a&&`clickableColor${Bo(o)}`,s&&"deletable",s&&`deletableColor${Bo(o)}`,`${l}${Bo(o)}`],label:["label",`label${Bo(n)}`],avatar:["avatar",`avatar${Bo(n)}`,`avatarColor${Bo(o)}`],icon:["icon",`icon${Bo(n)}`,`iconColor${Bo(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Bo(n)}`,`deleteIconColor${Bo(o)}`,`deleteIcon${Bo(l)}Color${Bo(o)}`]},w$,t)})(T),L=A===ga?c({component:p||"div",focusVisibleClassName:P.focusVisible},v&&{disableRipple:!0}):{};let j=null;v&&(j=d&&o.isValidElement(d)?o.cloneElement(d,{className:w(d.props.className,P.deleteIcon),onClick:M}):(0,n.jsx)(b$,{className:w(P.deleteIcon),onClick:M}));let N=null;i&&o.isValidElement(i)&&(N=o.cloneElement(i,{className:w(P.avatar,i.props.className)}));let F=null;return f&&o.isValidElement(f)&&(F=o.cloneElement(f,{className:w(P.icon,f.props.className)})),(0,n.jsxs)(S$,c({as:A,className:w(P.root,s),disabled:!(!I||!h)||void 0,onClick:g,onKeyDown:e=>{e.currentTarget===e.target&&C$(e)&&e.preventDefault(),y&&y(e)},onKeyUp:e=>{e.currentTarget===e.target&&(v&&C$(e)?v(e):"Escape"===e.key&&E.current&&E.current.blur()),b&&b(e)},ref:R,tabIndex:C&&h?-1:k,ownerState:T},L,O,{children:[N||F,(0,n.jsx)(k$,{className:w(P.label),ownerState:T,children:m}),j]}))}),E$=O$,R$=Da(E$)(({theme:e,ownerState:t})=>"rounded"!==t.shape?null:{borderRadius:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[1]}),M$={shape:"pill"},I$=i().forwardRef((e,t)=>{const{shape:r,...n}={...M$,...e};return i().createElement(R$,{...n,ref:t,ownerState:{shape:r}})});I$.defaultProps=M$;var A$=I$;const T$=Da(jh)(({theme:e})=>({transform:"rtl"===e.direction?"scaleX(-1)":void 0})),P$=({onDisconnect:e,onConnectClick:t,...r})=>{const{t:o}=vp("common",{i18n:Nh}),{MY_ELEMENTOR_URL:i}=r$(),s=window.elementorOneSettingsData?.canUserManageOptions??!1,{data:a,isLoading:l}=JD({enabled:s}),{mutate:c,isPending:u}=(()=>{const e=Wg();return Xg({mutationFn:e=>iw.initConnect(e&&"string"==typeof e?e:"new"),onSuccess:t=>{window.open(t,"_self")?.focus(),e.invalidateQueries({queryKey:[YD]})}})})(),{mutate:p,isPending:d}=(()=>{const e=Wg();return Xg({mutationFn:()=>iw.disconnect(),onSuccess:()=>{e.invalidateQueries({queryKey:[YD]})}})})();return(0,n.jsx)(Ql,{colorScheme:"light",children:(0,n.jsx)(hh,{...r,"data-test":"user-profile-menu",anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{overflow:"visible !important",borderRadius:1,py:1,minWidth:300}},children:l?(0,n.jsxs)(es,{alignItems:"center",gap:1,children:[(0,n.jsx)(v$,{variant:"text",width:"90%",height:30}),(0,n.jsx)(bc,{sx:{mx:2,width:"80%"}}),(0,n.jsx)(v$,{variant:"text",width:"90%",height:30})]}):[(0,n.jsxs)(Th,{dense:!0,onClick:async()=>{window.open(i,"_blank"),r.onClose?.({},"backdropClick")},"data-test":"user-menu-go-to-account",children:[(0,n.jsx)(Lh,{children:o("header.userProfileMenu.goToMyAccount")}),(0,n.jsx)(Ph,{children:(0,n.jsx)(T$,{fontSize:"small"})})]},"go-to-account"),(0,n.jsx)(bc,{sx:{mx:2}},"divider"),a?.isUrlMismatch?(0,n.jsxs)(Th,{dense:!0,onClick:()=>{window.location.href=window.location.origin+window.location.pathname+"?page=elementor-home#/home/url-mismatch",r.onClose?.({},"backdropClick")},sx:{justifyContent:"space-between"},"data-test":"user-menu-fix-url-mismatch",children:[(0,n.jsx)(Lh,{children:o("header.userProfileMenu.urlMismatch")}),(0,n.jsx)(gs,{sx:{color:"info.main"},variant:"caption",children:o("header.userProfileMenu.fixUrlMismatch")})]},"fix-url-mismatch"):a?.isConnected?(0,n.jsxs)(Th,{dense:!0,disabled:d,"data-test":"user-menu-disconnect",children:[(0,n.jsxs)(Lh,{children:[o("header.userProfileMenu.elementorOneActive")," ",(0,n.jsx)(A$,{variant:"standard",label:o("header.userProfileMenu.active"),color:"success",size:"small"})]}),(0,n.jsx)(Lh,{onClick:()=>{d||p(void 0,{onSuccess:()=>{e?.(),r.onClose?.({},"backdropClick")}})},sx:{textAlign:"right",color:"info.main",cursor:"pointer"},children:o("header.userProfileMenu.disconnect")}),(0,n.jsx)(Ph,{children:d?(0,n.jsx)(Zc,{size:16,"data-test":"user-menu-disconnect-loader"}):(0,n.jsx)(n.Fragment,{})})]},"disconnect"):(0,n.jsxs)(Th,{dense:!0,onClick:()=>{u||(t?.(),c())},disabled:u,sx:{justifyContent:"space-between"},"data-test":"user-menu-connect",children:[(0,n.jsx)(Lh,{children:o("header.userProfileMenu.connectPreText")}),u?(0,n.jsx)(Zc,{size:16,"data-test":"user-menu-connect-loader"}):(0,n.jsx)(gs,{sx:{color:"info.main"},variant:"caption",children:o("header.userProfileMenu.connect")})]},"connect")]})})},L$=({onDisconnect:e,onClick:t,onConnectClick:r})=>{const{t:i}=vp("common",{i18n:Nh}),s=o$(),a=(({popupId:e,...t})=>function({parentPopupState:e,popupId:t,variant:r,disableAutoFocus:n}){const i=(0,o.useRef)(!0);(0,o.useEffect)(()=>(i.current=!0,()=>{i.current=!1}),[]);const[s,a]=(0,o.useState)(wp),l=(0,o.useCallback)(e=>{i.current&&a(e)},[]),c=(0,o.useCallback)(e=>l(t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})),[]),u=yp(e=>(s.isOpen?h(e):p(e),s)),p=yp(t=>{const n=t instanceof Element?void 0:t,o=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==n?void 0:n.type))return void l(e=>({...e,_deferNextOpen:!0}));const i=null==n?void 0:n.clientX,s=null==n?void 0:n.clientY,a="number"==typeof i&&"number"==typeof s?{left:i,top:s}:void 0,c=i=>{if(t||i.setAnchorElUsed||"dialog"===r||bp.missingEventOrAnchorEl||(bp.missingEventOrAnchorEl=!0,console.error("[material-ui-popup-state] WARNING","eventOrAnchorEl should be defined if setAnchorEl is not used")),e){if(!e.isOpen)return i;setTimeout(()=>e._setChildPopupState(y))}const s={...i,isOpen:!0,anchorPosition:a,hovered:"mouseover"===(null==n?void 0:n.type)||i.hovered,focused:"focus"===(null==n?void 0:n.type)||i.focused,_openEventType:null==n?void 0:n.type};return null!=n&&n.currentTarget?i.setAnchorElUsed||(s.anchorEl=null==n?void 0:n.currentTarget):o&&(s.anchorEl=o),s};l(e=>e._deferNextOpen?(setTimeout(()=>l(c),0),{...e,_deferNextOpen:!1}):c(e))}),d=t=>{const{_childPopupState:r}=t;return setTimeout(()=>{null==r||r.close(),null==e||e._setChildPopupState(null)}),{...t,isOpen:!1,hovered:!1,focused:!1}},h=yp(e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?l(e=>e._deferNextClose?(setTimeout(()=>l(d),0),{...e,_deferNextClose:!1}):d(e)):l(e=>({...e,_deferNextClose:!0}))}),f=(0,o.useCallback)((e,t)=>{e?p(t):h(t)},[]),m=yp(e=>{const{relatedTarget:t}=e;l(e=>!e.hovered||t instanceof Element&&kp(t,y)?e:e.focused?{...e,hovered:!1}:d(e))}),g=yp(e=>{if(!e)return;const{relatedTarget:t}=e;l(e=>!e.focused||t instanceof Element&&kp(t,y)?e:e.hovered?{...e,focused:!1}:d(e))}),v=(0,o.useCallback)(e=>l(t=>({...t,_childPopupState:e})),[]),y={...s,setAnchorEl:c,popupId:t,variant:r,open:p,close:h,toggle:u,setOpen:f,onBlur:g,onMouseLeave:m,disableAutoFocus:n??Boolean(s.hovered||s.focused),_setChildPopupState:v};return y}({...t,popupId:(0,o.useRef)(e||"eui-popup-"+Op++).current}))({variant:"popover",popupId:"user-info-popover"}),l=e=>{t?.(),_p(a).onClick?.(e)};return(0,n.jsxs)(n.Fragment,{children:[s?(0,n.jsx)(nc,{..._p(a),onClick:l,"data-test":"header-user-button",children:(0,n.jsx)(wc,{})}):(0,n.jsx)(ru,{startIcon:(0,n.jsx)(wc,{}),color:"inherit",size:"small",..._p(a),onClick:l,"data-test":"header-user-button",children:i("header.userInfo")}),(0,n.jsx)(P$,{onDisconnect:e,onConnectClick:r,...Sp(a)})]})};var j$=o.forwardRef((e,t)=>o.createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0221 2.2505C14.7086 2.2428 14.3993 2.32462 14.1306 2.48639C13.8619 2.64816 13.6449 2.88316 13.5049 3.16386L10.9999 8.19197L3.92384 11.2998C3.49889 11.4865 3.16549 11.8343 2.99698 12.2667C2.82848 12.6992 2.83867 13.1809 3.02531 13.6058L4.63384 17.2682C4.82048 17.6931 5.16829 18.0265 5.60074 18.195C6.0332 18.3635 6.51489 18.3533 6.93984 18.1667L8.9999 17.2619L10.709 21.1532C10.8956 21.5781 11.2434 21.9115 11.6759 22.08C12.1083 22.2485 12.59 22.2383 13.015 22.0517L13.9306 21.6496C14.3555 21.4629 14.6889 21.1151 14.8574 20.6827C15.0259 20.2502 15.0157 19.7685 14.8291 19.3436L13.12 15.4523L14.0159 15.0588L19.4131 16.616C19.7145 16.7029 20.0346 16.7021 20.3355 16.6137C20.6364 16.5253 20.9059 16.3529 21.1124 16.1168C21.3188 15.8807 21.4537 15.5907 21.5013 15.2806C21.5488 14.9707 21.507 14.6537 21.3808 14.3667M21.3808 14.3667L20.4142 12.1659C21.0102 11.7447 21.4752 11.1551 21.7441 10.4649C22.1052 9.53824 22.0834 8.50606 21.6834 7.59546C21.2835 6.68486 20.5382 5.97043 19.6115 5.60934C18.9213 5.3404 18.1726 5.28388 17.4591 5.43778L16.4927 3.23726C16.3667 2.95018 16.1613 2.70457 15.901 2.52988C15.6405 2.35511 15.3357 2.2582 15.0221 2.2505M18.0836 6.85961C18.4152 6.83504 18.7512 6.88399 19.0669 7.00698C19.6229 7.22364 20.0701 7.6523 20.3101 8.19866C20.55 8.74502 20.5631 9.36433 20.3465 9.92035C20.2235 10.236 20.0321 10.5166 19.7897 10.7441L18.0836 6.85961ZM15.1191 3.8401C15.1077 3.81399 15.0889 3.79133 15.0652 3.77544C15.0415 3.75956 15.0138 3.75075 14.9853 3.75005C14.9568 3.74935 14.9287 3.75678 14.9042 3.77149C14.8798 3.7862 14.8601 3.80756 14.8474 3.83308L12.2214 9.10391C12.1432 9.26095 12.0123 9.38559 11.8517 9.45615L10.7072 9.95881L12.5168 14.0789L13.6613 13.5763C13.8219 13.5057 14.0022 13.4937 14.1708 13.5423L19.8288 15.1748C19.8562 15.1827 19.8852 15.1826 19.9126 15.1746C19.9399 15.1665 19.9645 15.1509 19.9832 15.1294C20.002 15.1079 20.0143 15.0816 20.0186 15.0534C20.0229 15.0252 20.0191 14.9964 20.0076 14.9703L15.1191 3.8401ZM11.7466 16.0555L13.4557 19.9468C13.4824 20.0075 13.4838 20.0763 13.4598 20.1381C13.4357 20.1999 13.3881 20.2495 13.3274 20.2762L12.4118 20.6783C12.3511 20.705 12.2823 20.7064 12.2205 20.6824C12.1587 20.6583 12.109 20.6107 12.0824 20.55L10.3733 16.6587L11.7466 16.0555ZM11.1434 14.6821L9.33384 10.562L4.52704 12.6732C4.46633 12.6999 4.4187 12.7496 4.39463 12.8113C4.37056 12.8731 4.37201 12.9419 4.39868 13.0026L6.00721 16.665C6.03387 16.7257 6.08356 16.7733 6.14534 16.7974C6.20712 16.8214 6.27593 16.82 6.33664 16.7933L11.1434 14.6821Z"})));const N$=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function F$(e,t,r){const n=function(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),i=Bp(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const e=i.getComputedStyle(t);s=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let a=0,l=0;if(s&&"none"!==s&&"string"==typeof s){const e=s.split("(")[1].split(")")[0].split(",");a=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+a-n.left}px)`:`translateX(${i.innerWidth+a-n.left}px)`:"right"===e?o?`translateX(-${n.right-o.left-a}px)`:`translateX(-${n.left+n.width-a}px)`:"up"===e?o?`translateY(${o.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}(e,t,function(e){return"function"==typeof e?e():e}(r));n&&(t.style.webkitTransform=n,t.style.transform=n)}const D$=o.forwardRef(function(e,t){const r=Ni(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:p,container:d,direction:h="down",easing:f=i,in:m,onEnter:g,onEntered:v,onEntering:y,onExit:b,onExited:w,onExiting:x,style:_,timeout:S=s,TransitionComponent:k=Ws}=e,C=l(e,N$),O=o.useRef(null),E=ws(p.ref,O,t),R=e=>t=>{e&&(void 0===t?e(O.current):e(O.current,t))},M=R((e,t)=>{F$(h,e,d),g&&g(e,t)}),I=R((e,t)=>{const n=ud({timeout:S,style:_,easing:f},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",c({},n)),e.style.transition=r.transitions.create("transform",c({},n)),e.style.webkitTransform="none",e.style.transform="none",y&&y(e,t)}),A=R(v),T=R(x),P=R(e=>{const t=ud({timeout:S,style:_,easing:f},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),F$(h,e,d),b&&b(e)}),L=R(e=>{e.style.webkitTransition="",e.style.transition="",w&&w(e)}),j=o.useCallback(()=>{O.current&&F$(h,O.current,d)},[h,d]);return o.useEffect(()=>{if(m||"down"===h||"right"===h)return;const e=Fp(()=>{O.current&&F$(h,O.current,d)}),t=Bp(O.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[h,m,d]),o.useEffect(()=>{m||j()},[m,j]),(0,n.jsx)(k,c({nodeRef:O,onEnter:M,onEntered:A,onEntering:I,onExit:P,onExited:L,onExiting:T,addEndListener:e=>{a&&a(O.current,e)},appear:u,in:m,timeout:S},C,{children:(e,t)=>o.cloneElement(p,c({ref:E,style:c({visibility:"exited"!==e||m?void 0:"hidden"},_,p.props.style)},t))}))}),$$=D$;function B$(e){return Xn("MuiDrawer",e)}Fi("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const z$=["BackdropProps"],U$=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],V$=(e,t)=>{const{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},W$=To(zd,{name:"MuiDrawer",slot:"Root",overridesResolver:V$})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),q$=To("div",{shouldForwardProp:Ao,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:V$})({flex:"0 0 auto"}),H$=To(Ui,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Bo(r.anchor)}`],"temporary"!==r.variant&&t[`paperAnchorDocked${Bo(r.anchor)}`]]}})(({theme:e,ownerState:t})=>c({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),G$={left:"right",right:"left",top:"down",bottom:"up"},K$=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiDrawer"}),i=Ni(),s=ki(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:p,children:d,className:h,elevation:f=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:g}={},onClose:v,open:y=!1,PaperProps:b={},SlideProps:_,TransitionComponent:S=$$,transitionDuration:k=a,variant:C="temporary"}=r,O=l(r.ModalProps,z$),E=l(r,U$),R=o.useRef(!1);o.useEffect(()=>{R.current=!0},[]);const M=function({direction:e},t){return"rtl"===e&&function(e){return-1!==["left","right"].indexOf(e)}(t)?G$[t]:t}({direction:s?"rtl":"ltr"},u),I=c({},r,{anchor:u,elevation:f,open:y,variant:C},E),A=(e=>{const{classes:t,anchor:r,variant:n}=e;return x({root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Bo(r)}`,"temporary"!==n&&`paperAnchorDocked${Bo(r)}`]},B$,t)})(I),T=(0,n.jsx)(H$,c({elevation:"temporary"===C?f:0,square:!0},b,{className:w(A.paper,b.className),ownerState:I,children:d}));if("permanent"===C)return(0,n.jsx)(q$,c({className:w(A.root,A.docked,h),ownerState:I,ref:t},E,{children:T}));const P=(0,n.jsx)(S,c({in:y,direction:G$[M],timeout:k,appear:R.current},_,{children:T}));return"persistent"===C?(0,n.jsx)(q$,c({className:w(A.root,A.docked,h),ownerState:I,ref:t},E,{children:P})):(0,n.jsx)(W$,c({BackdropProps:c({},p,g,{transitionDuration:k}),className:w(A.root,A.modal,h),open:y,ownerState:I,onClose:v,hideBackdrop:m,ref:t},E,O,{children:P}))}),Z$=K$;var X$=i().forwardRef((e,t)=>i().createElement(Z$,{...e,ref:t}));const Y$=Fi("MuiBox",["root"]),J$=Eo(),Q$=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:i="MuiBox-root",generateClassName:s}=e,a=ur("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Pn);return o.forwardRef(function(e,o){const u=Fo(r),p=$n(e),{className:d,component:h="div"}=p,f=l(p,Ko);return(0,n.jsx)(a,c({as:h,ref:o,className:Go(d,s?s(i):i),theme:t&&u[t]||u},f))})}({themeId:Mo,defaultTheme:J$,defaultClassName:Y$.root,generateClassName:Kn.generate}),eB=Q$;var tB=i().forwardRef((e,t)=>i().createElement(eB,{...e,ref:t}));const rB=()=>(0,n.jsx)(es,{children:new Array(3).fill(0).map((e,t)=>(0,n.jsxs)(tB,{children:[(0,n.jsxs)(es,{gap:.5,sx:{mt:2},children:[(0,n.jsx)(v$,{variant:"text",width:50,height:24}),(0,n.jsx)(v$,{variant:"text",width:"100%",height:48}),(0,n.jsx)(v$,{variant:"rectangular",width:"100%",height:200,sx:{borderRadius:1}}),(0,n.jsx)(v$,{variant:"rounded",width:100,height:32,sx:{borderRadius:3,mt:1}}),(0,n.jsx)(v$,{variant:"text",width:200,height:24}),(0,n.jsx)(v$,{variant:"text",width:250,height:24}),(0,n.jsx)(v$,{variant:"text",width:170,height:24})]}),t<2&&(0,n.jsx)(bc,{sx:{mt:1.5}})]},t))});var nB,oB={},iB={},sB={},aB={},lB={},cB={};function uB(){return nB||(nB=1,e=cB,Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.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"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype),cB;var e,t}var pB,dB,hB={};function fB(){if(pB)return hB;pB=1;var e,t=hB&&hB.__extends||(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),r=hB&&hB.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),r}(o);hB.NodeWithChildren=c;var u=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=n.ElementType.CDATA,t}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),r}(c);hB.CDATA=u;var p=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=n.ElementType.Root,t}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),r}(c);hB.Document=p;var d=function(e){function r(t,r,o,i){void 0===o&&(o=[]),void 0===i&&(i="script"===t?n.ElementType.Script:"style"===t?n.ElementType.Style:n.ElementType.Tag);var s=e.call(this,o)||this;return s.name=t,s.attribs=r,s.type=i,s}return t(r,e),Object.defineProperty(r.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),r}(c);function h(e){return(0,n.isTag)(e)}function f(e){return e.type===n.ElementType.CDATA}function m(e){return e.type===n.ElementType.Text}function g(e){return e.type===n.ElementType.Comment}function v(e){return e.type===n.ElementType.Directive}function y(e){return e.type===n.ElementType.Root}function b(e,t){var n;if(void 0===t&&(t=!1),m(e))n=new s(e.data);else if(g(e))n=new a(e.data);else if(h(e)){var o=t?w(e.children):[],i=new d(e.name,r({},e.attribs),o);o.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=i}else if(f(e)){o=t?w(e.children):[];var c=new u(o);o.forEach(function(e){return e.parent=c}),n=c}else if(y(e)){o=t?w(e.children):[];var b=new p(o);o.forEach(function(e){return e.parent=b}),e["x-mode"]&&(b["x-mode"]=e["x-mode"]),n=b}else{if(!v(e))throw new Error("Not implemented yet: ".concat(e.type));var x=new l(e.name,e.data);null!=e["x-name"]&&(x["x-name"]=e["x-name"],x["x-publicId"]=e["x-publicId"],x["x-systemId"]=e["x-systemId"]),n=x}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function w(e){for(var t=e.map(function(e){return b(e,!0)}),r=1;r=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)},e.returnFirstArg=function(e){return e}}(IB)),IB}function BB(){if(NB)return kB;NB=1,Object.defineProperty(kB,"__esModule",{value:!0}),kB.default=function(s,a){void 0===s&&(s={});var l={},c=Boolean(s.type&&o[s.type]);for(var u in s){var p=s[u];if((0,e.isCustomAttribute)(u))l[u]=p;else{var d=u.toLowerCase(),h=i(d);if(h){var f=(0,e.getPropertyInfo)(h);switch(r.includes(h)&&n.includes(a)&&!c&&(h=i("default"+d)),l[h]=p,f&&f.type){case e.BOOLEAN:l[h]=!0;break;case e.OVERLOADED_BOOLEAN:""===p&&(l[h]=!0)}}else t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[u]=p)}}return(0,t.setStyleProp)(s.style,l),l};var e=function(){if(SB)return CB;function e(e,t,r,n,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}SB=1;const t={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(r=>{t[r]=new e(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([r,n])=>{t[r]=new e(r,1,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(r=>{t[r]=new e(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(r=>{t[r]=new e(r,2,!1,r,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(r=>{t[r]=new e(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(r=>{t[r]=new e(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(r=>{t[r]=new e(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(r=>{t[r]=new e(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(r=>{t[r]=new e(r,5,!1,r.toLowerCase(),null,!1,!1)});const r=/[\-\:]([a-z])/g,n=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(o=>{const i=o.replace(r,n);t[i]=new e(i,1,!1,o,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(o=>{const i=o.replace(r,n);t[i]=new e(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(o=>{const i=o.replace(r,n);t[i]=new e(i,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(r=>{t[r]=new e(r,1,!1,r.toLowerCase(),null,!1,!1)}),t.xlinkHref=new e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(r=>{t[r]=new e(r,1,!1,r.toLowerCase(),null,!0,!0)});const{CAMELCASE:o,SAME:i,possibleStandardNames:s}=(_B||(_B=1,OB.SAME=0,OB.CAMELCASE=1,OB.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}),OB),a=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]*$")),l=Object.keys(s).reduce((e,t)=>{const r=s[t];return r===i?e[t]=t:r===o?e[t.toLowerCase()]=t:e[t]=r,e},{});return CB.BOOLEAN=3,CB.BOOLEANISH_STRING=2,CB.NUMERIC=5,CB.OVERLOADED_BOOLEAN=4,CB.POSITIVE_NUMERIC=6,CB.RESERVED=0,CB.STRING=1,CB.getPropertyInfo=function(e){return t.hasOwnProperty(e)?t[e]:null},CB.isCustomAttribute=a,CB.possibleStandardNames=l,CB}(),t=$B(),r=["checked","value"],n=["input","select","textarea"],o={reset:!0,submit:!0};function i(t){return e.possibleStandardNames[t]}return kB}var zB,UB,VB={};const WB=u((UB||(UB=1,function(e){var t=oB&&oB.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,o.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||a),t):[]};var r=t(function(){if(bB)return iB;bB=1;var e=iB&&iB.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(iB,"__esModule",{value:!0}),iB.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var o=e.match(n),i=o?o[1]:void 0;return(0,r.formatDOM)((0,t.default)(e),null,i)};var t=e(function(){if(yB)return sB;yB=1,Object.defineProperty(sB,"__esModule",{value:!0}),sB.default=function(c){var u,p,h=(c=(0,e.escapeSpecialCharacters)(c)).match(o),f=h&&h[1]?h[1].toLowerCase():"";switch(f){case t:var m=l(c);return i.test(c)||null===(u=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===u||u.removeChild(v),s.test(c)||null===(p=null==(v=m.querySelector(n))?void 0:v.parentNode)||void 0===p||p.removeChild(v),m.querySelectorAll(t);case r:case n:var g=a(c).querySelectorAll(f);return s.test(c)&&i.test(c)?g[0].parentNode.childNodes:g;default:return d?d(c):(v=a(c,n).querySelector(n)).childNodes;var v}};var e=xB(),t="html",r="head",n="body",o=/<([a-zA-Z]+[0-9]?)/,i=//i,s=//i,a=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;a=l=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();a=function(e,t){if(t){var r=p.documentElement.querySelector(t);return r&&(r.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var d,h="object"==typeof document&&document.createElement("template");return h&&h.content&&(d=function(e){return h.innerHTML=e,h.content.childNodes}),sB}()),r=xB(),n=/<(![a-zA-Z\s]+)>/;return iB}());e.htmlToDOM=r.default;var n=t(BB());e.attributesToProps=n.default;var o=t(function(){if(zB)return VB;zB=1;var e=VB&&VB.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(VB,"__esModule",{value:!0}),VB.default=function e(t,i){void 0===i&&(i={});for(var a=[],l="function"==typeof i.replace,c=i.transform||n.returnFirstArg,u=i.library||o,p=u.cloneElement,d=u.createElement,h=u.isValidElement,f=t.length,m=0;m1&&(v=p(v,{key:v.key||m})),a.push(c(v,g,m));continue}}if("text"!==g.type){var y=g,b={};s(y)?((0,n.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,r.default)(y.attribs,y.name));var w=void 0;switch(g.type){case"script":case"style":g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(w=e(g.children,i));break;default:continue}f>1&&(b.key=m),a.push(c(d(g.name,b,w),g,m))}else{var x=!g.data.trim().length;if(x&&g.parent&&!(0,n.canTextBeChildOfNode)(g.parent))continue;if(i.trim&&x)continue;a.push(c(g.data,g,m))}}return 1===a.length?a[0]:a};var t=i(),r=e(BB()),n=$B(),o={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function s(e){return n.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,n.isCustomComponent)(e.name,e.attribs)}return VB}());e.domToReact=o.default;var s=mB();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var a={lowerCaseAttributeNames:!1}}(oB)),oB)),qB=WB.default||WB,{slots:HB,classNames:GB}=Pa("Image",["root"]),KB=Da("img",HB.root)(({theme:e,ownerState:t})=>{const{variant:r="square"}=t;return{borderRadius:{square:void 0,rounded:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],circle:"50%"}[r]}}),ZB={variant:"square"},XB=i().forwardRef((e,t)=>{const r=$o({props:{...ZB,...e},name:HB.root.name});return i().createElement(KB,{...r,ref:t,className:w([[GB.root,r.className]]),ownerState:r})});XB.defaultProps=ZB;var YB=XB;const JB=({id:e,title:t,description:r,topic:i,imageSrc:s,chipTags:a,link:l,readMoreText:c,cta:u,ctaLink:p,onItemClickedCallback:d})=>{const{t:h}=vp("assets-whatsnew",{i18n:Nh}),[f,m]=(0,o.useState)(!!s);(0,o.useEffect)(()=>{s&&m(!0)},[s]);const g=(0,o.useMemo)(()=>{const t=h(`${e}.description`,{defaultValue:r}),i=qB(t);return Array.isArray(i)?i.map((t,r)=>(0,n.jsx)(o.Fragment,{children:t},`${e}-description-${r}`)):i},[h,e,r]),v=(0,o.useMemo)(()=>{const t=`${e}.chipTags`;if(Nh.exists(t,{ns:"assets-whatsnew"})){const e=h(t,{returnObjects:!0});if(Array.isArray(e)&&e.length>0)return e}return a},[h,e,a]),y=()=>{d?.()};return(0,n.jsxs)(tB,{marginTop:2,children:[i&&(0,n.jsx)(gs,{variant:"caption",color:"text.tertiary",children:h(`${e}.topic`,{defaultValue:i})}),(0,n.jsx)(gs,{variant:"subtitle1",color:"text.primary",children:h(`${e}.title`,{defaultValue:t})}),s&&(0,n.jsxs)(tB,{style:{marginBottom:16,position:"relative"},children:[f&&(0,n.jsx)(v$,{variant:"rectangular",width:"100%",height:200,sx:{borderRadius:1}}),(0,n.jsx)(YB,{src:s,alt:h(`${e}.title`,{defaultValue:t}),onLoad:()=>{m(!1)},onError:()=>{m(!1)},style:{width:"100%",height:"auto",display:f?"none":"block"}})]}),a&&v&&(0,n.jsx)(tB,{display:"flex",gap:1,flexWrap:"wrap",marginBottom:1,children:a.map((t,r)=>{const o=v[r]||t;return(0,n.jsx)(A$,{variant:"outlined",label:o},`${e}-${t}`)})}),(0,n.jsxs)(gs,{variant:"body2",color:e=>e.palette.text.secondary,sx:{marginBottom:1},children:[g,c&&(0,n.jsx)("a",{href:l,target:"_blank",rel:"noreferrer",onClick:y,children:" "+h(`${e}.readMoreText`,{defaultValue:c})})]}),u&&(0,n.jsx)(ru,{variant:"contained",color:"promotion",href:p,target:"_blank",onClick:y,children:h(`${e}.cta`,{defaultValue:u})})]})};var QB=o.forwardRef((e,t)=>o.createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9302 3.00684C12.3573 3.03542 12.7729 3.16362 13.1431 3.38184C13.5618 3.6287 13.9074 3.98244 14.1451 4.40625L21.2456 16.6562L21.2915 16.751C21.4597 17.1668 21.524 17.6183 21.4781 18.0645C21.432 18.5106 21.2773 18.9397 21.0279 19.3125C20.7784 19.685 20.4411 19.9915 20.0464 20.2041C19.6517 20.4166 19.2105 20.529 18.7622 20.5322L18.7564 20.5332H4.75638C4.73812 20.5332 4.71964 20.5316 4.7017 20.5303C4.69631 20.5307 4.69052 20.5319 4.6851 20.5322L4.60795 20.5312L4.44388 20.5186C4.06393 20.476 3.69614 20.3543 3.36478 20.1611C2.98591 19.9403 2.66472 19.6317 2.42924 19.2617C2.19395 18.8919 2.051 18.4707 2.01127 18.0342C1.97166 17.5975 2.03678 17.1563 2.2017 16.75L2.2476 16.6562L9.34721 4.40625C9.58473 3.98261 9.93165 3.62868 10.3501 3.38184C10.7731 3.13252 11.2556 3.00006 11.7466 3L11.9302 3.00684ZM11.7574 15.7822C11.2051 15.7822 10.7574 16.2299 10.7574 16.7822C10.7574 17.3345 11.2051 17.7822 11.7574 17.7822H11.7671L11.8697 17.7773C12.3737 17.7259 12.7671 17.2998 12.7671 16.7822C12.7671 16.2647 12.3737 15.8386 11.8697 15.7871L11.7671 15.7822H11.7574ZM11.7564 8.0332C11.3424 8.03352 11.0064 8.36919 11.0064 8.7832V13.7832C11.0069 14.1968 11.3428 14.5329 11.7564 14.5332C12.1702 14.5332 12.5059 14.1969 12.5064 13.7832V8.7832C12.5064 8.36902 12.1706 8.03325 11.7564 8.0332Z"})));const ez=({appSettings:e})=>{const{t}=vp("common",{i18n:Nh}),{data:r,isLoading:o,error:i}=(({appName:e,appVersion:t})=>Zg({queryKey:["notifications",e,t],queryFn:async()=>(await iw.getNotifications(e,t)).filter((e,t,r)=>r.findIndex(t=>t.id===e.id)===t),retry:!1}))({appName:e.slug,appVersion:e.version});return o?(0,n.jsx)(rB,{}):i?(0,n.jsxs)(es,{sx:{height:"100%"},alignItems:"center",justifyContent:"center",children:[(0,n.jsx)(QB,{color:"error",fontSize:"large"}),(0,n.jsx)(gs,{variant:"subtitle2",color:"text.secondary",textAlign:"center",children:t("header.whatsNewError")})]}):r?.map((e,t)=>(0,n.jsxs)(tB,{"data-test":`whats-new-card-${t}`,children:[(0,n.jsx)(JB,{...e}),(0,n.jsx)(bc,{sx:{margin:"16px 0"}})]},e.id))};var tz=o.forwardRef((e,t)=>o.createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"})));const rz=({appSettings:e,onClose:t})=>{const{t:r}=vp("common",{i18n:Nh});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(tB,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)(gs,{variant:"subtitle1",color:"primary.text",children:r("header.whatsNew")}),(0,n.jsx)(nc,{onClick:()=>{t()},"data-test":"service-banner-close",children:(0,n.jsx)(tz,{})})]}),(0,n.jsx)(ez,{appSettings:e})]})};function nz(e){return $o}function oz(e){return Xn("MuiBadge",e)}const iz=Fi("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),sz=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],az=nz(),lz=To("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),cz=To("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${Bo(r.anchorOrigin.vertical)}${Bo(r.anchorOrigin.horizontal)}${Bo(r.overlap)}`],"default"!==r.color&&t[`color${Bo(r.color)}`],r.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter(t=>{var r,n;return(null!=(r=e.vars)?r:e).palette[t].main&&(null!=(n=e.vars)?n:e).palette[t].contrastText}).map(t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${iz.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),uz=o.forwardRef(function(e,t){var r,o,i,s,a,u;const p=az({props:e,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:h,component:f,components:m={},componentsProps:g={},children:v,overlap:y="rectangular",color:b="default",invisible:_=!1,max:S=99,badgeContent:k,slots:C,slotProps:O,showZero:E=!1,variant:R="standard"}=p,M=l(p,sz),{badgeContent:I,invisible:A,max:T,displayValue:P}=function(e){const{badgeContent:t,invisible:r=!1,max:n=99,showZero:o=!1}=e,i=Hp({badgeContent:t,max:n});let s=r;!1!==r||0!==t||o||(s=!0);const{badgeContent:a,max:l=n}=s?i:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:S,invisible:_,badgeContent:k,showZero:E}),L=Hp({anchorOrigin:d,color:b,overlap:y,variant:R,badgeContent:k}),j=A||null==I&&"dot"!==R,{color:N=b,overlap:F=y,anchorOrigin:D=d,variant:$=R}=j?L:p,B="dot"!==$?P:void 0,z=c({},p,{badgeContent:I,invisible:j,max:T,displayValue:B,showZero:E,anchorOrigin:D,color:N,overlap:F,variant:$}),U=(e=>{const{color:t,anchorOrigin:r,invisible:n,overlap:o,variant:i,classes:s={}}=e;return x({root:["root"],badge:["badge",i,n&&"invisible",`anchorOrigin${Bo(r.vertical)}${Bo(r.horizontal)}`,`anchorOrigin${Bo(r.vertical)}${Bo(r.horizontal)}${Bo(o)}`,`overlap${Bo(o)}`,"default"!==t&&`color${Bo(t)}`]},oz,s)})(z),V=null!=(r=null!=(o=null==C?void 0:C.root)?o:m.Root)?r:lz,W=null!=(i=null!=(s=null==C?void 0:C.badge)?s:m.Badge)?i:cz,q=null!=(a=null==O?void 0:O.root)?a:g.root,H=null!=(u=null==O?void 0:O.badge)?u:g.badge,G=Xp({elementType:V,externalSlotProps:q,externalForwardedProps:M,additionalProps:{ref:t,as:f},ownerState:z,className:w(null==q?void 0:q.className,U.root,h)}),K=Xp({elementType:W,externalSlotProps:H,ownerState:z,className:w(U.badge,null==H?void 0:H.className)});return(0,n.jsxs)(V,c({},G,{children:[v,(0,n.jsx)(W,c({},K,{children:B}))]}))}),pz=uz;var dz=i().forwardRef((e,t)=>i().createElement(pz,{...e,ref:t}));const hz=({appSettings:e,containerSx:t={},notificationsApiUrl:r,onClick:i})=>{vp("assets-whatsnew",{i18n:Nh});const[s,a]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1),u=()=>{a(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(dz,{color:"primary",overlap:"circular",badgeContent:"",invisible:l,variant:"dot",children:(0,n.jsx)(nc,{onClick:()=>{i(),s||l||c(!0),a(!s)},"data-test":"whats-new-button",size:"small",children:(0,n.jsx)(j$,{fontSize:"small"})})}),(0,n.jsx)(Ql,{colorScheme:"light",children:(0,n.jsx)(X$,{variant:"temporary",open:s,disableScrollLock:!0,anchor:"right",onClose:u,sx:t,disableEnforceFocus:!0,children:(0,n.jsx)(rz,{appSettings:e,onClose:u,notificationsApiUrl:r})})})]})};var fz=e=>"checkbox"===e.type,mz=e=>e instanceof Date,gz=e=>null==e;const vz=e=>"object"==typeof e;var yz=e=>!gz(e)&&!Array.isArray(e)&&vz(e)&&!mz(e),bz=e=>yz(e)&&e.target?fz(e.target)?e.target.checked:e.target.value:e,wz=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),xz="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function _z(e){let t;const r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else{if(xz&&(e instanceof Blob||n)||!r&&!yz(e))return e;if(t=r?[]:Object.create(Object.getPrototypeOf(e)),r||(e=>{const t=e.constructor&&e.constructor.prototype;return yz(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=_z(e[r]));else t=e}return t}var Sz=e=>/^\w*$/.test(e),kz=e=>void 0===e,Cz=e=>Array.isArray(e)?e.filter(Boolean):[],Oz=e=>Cz(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ez=(e,t,r)=>{if(!t||!yz(e))return r;const n=(Sz(t)?[t]:Oz(t)).reduce((e,t)=>gz(e)?e:e[t],e);return kz(n)||n===e?kz(e[t])?r:e[t]:n},Rz=e=>"boolean"==typeof e,Mz=(e,t,r)=>{let n=-1;const o=Sz(t)?[t]:Oz(t),i=o.length,s=i-1;for(;++ni().useContext(Nz);var Dz=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Pz&&(t._proxyFormState[o]=!n||Pz),r&&(r[o]=!0),e[o]}});return o};const $z="undefined"!=typeof window?i().useLayoutEffect:i().useEffect;var Bz=e=>"string"==typeof e,zz=(e,t,r,n,o)=>Bz(e)?(n&&t.watch.add(e),Ez(r,e,o)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),Ez(r,e))):(n&&(t.watchAll=!0),r),Uz=e=>gz(e)||!vz(e);function Vz(e,t,r=new WeakSet){if(Uz(e)||Uz(t))return e===t;if(mz(e)&&mz(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const i of n){const n=e[i];if(!o.includes(i))return!1;if("ref"!==i){const e=t[i];if(mz(n)&&mz(e)||yz(n)&&yz(e)||Array.isArray(n)&&Array.isArray(e)?!Vz(n,e,r):n!==e)return!1}}return!0}const Wz=e=>e.render(function(e){const t=Fz(),{name:r,disabled:n,control:o=t.control,shouldUnregister:s,defaultValue:a}=e,l=wz(o._names.array,r),c=i().useMemo(()=>Ez(o._formValues,r,Ez(o._defaultValues,r,a)),[o,r,a]),u=function(e){const t=Fz(),{control:r=t.control,name:n,defaultValue:o,disabled:s,exact:a,compute:l}=e||{},c=i().useRef(o),u=i().useRef(l),p=i().useRef(void 0);u.current=l;const d=i().useMemo(()=>r._getWatch(n,c.current),[r,n]),[h,f]=i().useState(u.current?u.current(d):d);return $z(()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:e=>{if(!s){const t=zz(n,r._names,e.values||r._formValues,!1,c.current);if(u.current){const e=u.current(t);Vz(e,p.current)||(f(e),p.current=e)}else f(t)}}}),[r,s,n,a]),i().useEffect(()=>r._removeUnmounted()),h}({control:o,name:r,defaultValue:c,exact:!0}),p=function(e){const t=Fz(),{control:r=t.control,disabled:n,name:o,exact:s}=e||{},[a,l]=i().useState(r._formState),c=i().useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return $z(()=>r._subscribe({name:o,formState:c.current,exact:s,callback:e=>{!n&&l({...r._formState,...e})}}),[o,n,s]),i().useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),i().useMemo(()=>Dz(a,r,c.current,!1),[a,r])}({control:o,name:r,exact:!0}),d=i().useRef(e),h=i().useRef(o.register(r,{...e.rules,value:u,...Rz(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const f=i().useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ez(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ez(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ez(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ez(p.validatingFields,r)},error:{enumerable:!0,get:()=>Ez(p.errors,r)}}),[p,r]),m=i().useCallback(e=>h.current.onChange({target:{value:bz(e),name:r},type:"change"}),[r]),g=i().useCallback(()=>h.current.onBlur({target:{value:Ez(o._formValues,r),name:r},type:Iz}),[r,o._formValues]),v=i().useCallback(e=>{const t=Ez(o._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus&&e.focus(),select:()=>e.select&&e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[o._fields,r]),y=i().useMemo(()=>({name:r,value:u,...Rz(n)||p.disabled?{disabled:p.disabled||n}:{},onChange:m,onBlur:g,ref:v}),[r,n,p.disabled,m,g,v,u]);return i().useEffect(()=>{const e=o._options.shouldUnregister||s;o.register(r,{...d.current.rules,...Rz(d.current.disabled)?{disabled:d.current.disabled}:{}});const t=(e,t)=>{const r=Ez(o._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){const e=_z(Ez(o._options.defaultValues,r));Mz(o._defaultValues,r,e),kz(Ez(o._formValues,r))&&Mz(o._formValues,r,e)}return!l&&o.register(r),()=>{(l?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}},[r,o,l,s]),i().useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),i().useMemo(()=>({field:y,formState:p,fieldState:f}),[y,p,f])}(e));var qz=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Hz=e=>Array.isArray(e)?e:[e],Gz=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},Kz=e=>yz(e)&&!Object.keys(e).length,Zz=e=>"file"===e.type,Xz=e=>"function"==typeof e,Yz=e=>{if(!xz)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Jz=e=>"select-multiple"===e.type,Qz=e=>"radio"===e.type,eU=e=>Yz(e)&&e.isConnected;function tU(e,t){const r=Array.isArray(t)?t:Sz(t)?[t]:Oz(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{for(const t in e)if(Xz(e[t]))return!0;return!1};function nU(e,t={}){const r=Array.isArray(e);if(yz(e)||r)for(const r in e)Array.isArray(e[r])||yz(e[r])&&!rU(e[r])?(t[r]=Array.isArray(e[r])?[]:{},nU(e[r],t[r])):gz(e[r])||(t[r]=!0);return t}function oU(e,t,r){const n=Array.isArray(e);if(yz(e)||n)for(const n in e)Array.isArray(e[n])||yz(e[n])&&!rU(e[n])?kz(t)||Uz(r[n])?r[n]=Array.isArray(e[n])?nU(e[n],[]):{...nU(e[n])}:oU(e[n],gz(t)?{}:t[n],r[n]):r[n]=!Vz(e[n],t[n]);return r}var iU=(e,t)=>oU(e,t,nU(t));const sU={value:!1,isValid:!1},aU={value:!0,isValid:!0};var lU=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kz(e[0].attributes.value)?kz(e[0].value)||""===e[0].value?aU:{value:e[0].value,isValid:!0}:aU:sU}return sU},cU=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>kz(e)?e:t?""===e?NaN:e?+e:e:r&&Bz(e)?new Date(e):n?n(e):e;const uU={isValid:!1,value:null};var pU=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,uU):uU;function dU(e){const t=e.ref;return Zz(t)?t.files:Qz(t)?pU(e.refs).value:Jz(t)?[...t.selectedOptions].map(({value:e})=>e):fz(t)?lU(e.refs).value:cU(kz(t.value)?e.ref.value:t.value,e)}var hU=e=>e instanceof RegExp,fU=e=>kz(e)?e:hU(e)?e.source:yz(e)?hU(e.value)?e.value.source:e.value:e,mU=e=>({isOnSubmit:!e||e===Tz,isOnBlur:"onBlur"===e,isOnChange:e===Az,isOnAll:e===Pz,isOnTouch:"onTouched"===e});const gU="AsyncFunction";var vU=e=>!!e&&!!e.validate&&!!(Xz(e.validate)&&e.validate.constructor.name===gU||yz(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===gU)),yU=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const bU=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const r=Ez(e,o);if(r){const{_f:e,...i}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n)return!0;if(e.ref&&t(e.ref,e.name)&&!n)return!0;if(bU(i,t))break}else if(yz(i)&&bU(i,t))break}}};function wU(e,t,r){const n=Ez(e,r);if(n||Sz(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=Ez(t,n),s=Ez(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(s&&s.type)return{name:n,error:s};if(s&&s.root&&s.root.type)return{name:`${n}.root`,error:s.root};o.pop()}return{name:r}}var xU=(e,t,r)=>{const n=Hz(Ez(e,r));return Mz(n,"root",t[r]),Mz(e,r,n),e},_U=e=>Bz(e);function SU(e,t,r="validate"){if(_U(e)||Array.isArray(e)&&e.every(_U)||Rz(e)&&!e)return{type:r,message:_U(e)?e:"",ref:t}}var kU=e=>yz(e)&&!hU(e)?e:{value:e,message:""},CU=async(e,t,r,n,o,i)=>{const{ref:s,refs:a,required:l,maxLength:c,minLength:u,min:p,max:d,pattern:h,validate:f,name:m,valueAsNumber:g,mount:v}=e._f,y=Ez(r,m);if(!v||t.has(m))return{};const b=a?a[0]:s,w=e=>{o&&b.reportValidity&&(b.setCustomValidity(Rz(e)?"":e||""),b.reportValidity())},x={},_=Qz(s),S=fz(s),k=_||S,C=(g||Zz(s))&&kz(s.value)&&kz(y)||Yz(s)&&""===s.value||""===y||Array.isArray(y)&&!y.length,O=qz.bind(null,m,n,x),E=(e,t,r,n="maxLength",o="minLength")=>{const i=e?t:r;x[m]={type:e?n:o,message:i,ref:s,...O(e?n:o,i)}};if(i?!Array.isArray(y)||!y.length:l&&(!k&&(C||gz(y))||Rz(y)&&!y||S&&!lU(a).isValid||_&&!pU(a).isValid)){const{value:e,message:t}=_U(l)?{value:!!l,message:l}:kU(l);if(e&&(x[m]={type:jz,message:t,ref:b,...O(jz,t)},!n))return w(t),x}if(!(C||gz(p)&&gz(d))){let e,t;const r=kU(d),o=kU(p);if(gz(y)||isNaN(y)){const n=s.valueAsDate||new Date(y),i=e=>new Date((new Date).toDateString()+" "+e),a="time"==s.type,l="week"==s.type;Bz(r.value)&&y&&(e=a?i(y)>i(r.value):l?y>r.value:n>new Date(r.value)),Bz(o.value)&&y&&(t=a?i(y)r.value),gz(o.value)||(t=n+e.value,o=!gz(t.value)&&y.length<+t.value;if((r||o)&&(E(r,e.message,t.message),!n))return w(x[m].message),x}if(h&&!C&&Bz(y)){const{value:e,message:t}=kU(h);if(hU(e)&&!y.match(e)&&(x[m]={type:Lz,message:t,ref:s,...O(Lz,t)},!n))return w(t),x}if(f)if(Xz(f)){const e=SU(await f(y,r),b);if(e&&(x[m]={...e,...O("validate",e.message)},!n))return w(e.message),x}else if(yz(f)){let e={};for(const t in f){if(!Kz(e)&&!n)break;const o=SU(await f[t](y,r),b,t);o&&(e={...o,...O(t,o.message)},w(o.message),n&&(x[m]=e))}if(!Kz(e)&&(x[m]={ref:b,...e},!n))return x}return w(!0),x};const OU={mode:Tz,reValidateMode:Az,shouldFocusError:!0};function EU(e){return Xn("MuiDialog",e)}const RU=Fi("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),MU=o.createContext({}),IU=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],AU=To(jd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),TU=To(zd,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),PU=To("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Bo(r.scroll)}`]]}})(({ownerState:e})=>c({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),LU=To(Ui,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Bo(r.scroll)}`],t[`paperWidth${Bo(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>c({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${RU.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${RU.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${RU.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jU=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiDialog"}),i=Ni(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":u,BackdropComponent:p,BackdropProps:d,children:h,className:f,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:b,onClick:_,onClose:S,open:k,PaperComponent:C=Ui,PaperProps:O={},scroll:E="paper",TransitionComponent:R=Id,transitionDuration:M=s,TransitionProps:I}=r,A=l(r,IU),T=c({},r,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:v,maxWidth:y,scroll:E}),P=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e;return x({root:["root"],container:["container",`scroll${Bo(r)}`],paper:["paper",`paperScroll${Bo(r)}`,`paperWidth${Bo(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]},EU,t)})(T),L=o.useRef(),j=Vp(u),N=o.useMemo(()=>({titleId:j}),[j]);return(0,n.jsx)(TU,c({className:w(P.root,f),closeAfterTransition:!0,components:{Backdrop:AU},componentsProps:{backdrop:c({transitionDuration:M,as:p},d)},disableEscapeKeyDown:m,onClose:S,open:k,ref:t,onClick:e=>{_&&_(e),L.current&&(L.current=null,b&&b(e),S&&S(e,"backdropClick"))},ownerState:T},A,{children:(0,n.jsx)(R,c({appear:!0,in:k,timeout:M,role:"presentation"},I,{children:(0,n.jsx)(PU,{className:w(P.container),onMouseDown:e=>{L.current=e.target===e.currentTarget},ownerState:T,children:(0,n.jsx)(LU,c({as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j},O,{className:w(P.paper,O.className),ownerState:T,children:(0,n.jsx)(MU.Provider,{value:N,children:h})}))})}))}))}),NU=jU;var FU=i().forwardRef((e,t)=>i().createElement(NU,{...e,ref:t}));function DU(e){return Xn("MuiDialogContent",e)}function $U(e){return Xn("MuiDialogTitle",e)}Fi("MuiDialogContent",["root","dividers"]);const BU=Fi("MuiDialogTitle",["root"]),zU=["className","dividers"],UU=To("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>c({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${BU.root} + &`]:{paddingTop:0}})),VU=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=l(r,zU),a=c({},r,{dividers:i}),u=(e=>{const{classes:t,dividers:r}=e;return x({root:["root",r&&"dividers"]},DU,t)})(a);return(0,n.jsx)(UU,c({className:w(u.root,o),ownerState:a,ref:t},s))}),WU=VU;var qU=i().forwardRef((e,t)=>i().createElement(WU,{...e,ref:t}));function HU(e){return Xn("MuiDialogActions",e)}Fi("MuiDialogActions",["root","spacing"]);const GU=["className","disableSpacing"],KU=To("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>c({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ZU=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=l(r,GU),a=c({},r,{disableSpacing:i}),u=(e=>{const{classes:t,disableSpacing:r}=e;return x({root:["root",!r&&"spacing"]},HU,t)})(a);return(0,n.jsx)(KU,c({className:w(u.root,o),ownerState:a,ref:t},s))}),XU=ZU;var YU=i().forwardRef((e,t)=>i().createElement(XU,{...e,ref:t}));const JU=["className","id"],QU=To(hs,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),eV=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiDialogTitle"}),{className:i,id:s}=r,a=l(r,JU),u=r,p=(e=>{const{classes:t}=e;return x({root:["root"]},$U,t)})(u),{titleId:d=s}=o.useContext(MU);return(0,n.jsx)(QU,c({component:"h2",className:w(p.root,i),ownerState:u,ref:t,variant:"h6",id:null!=s?s:d},a))}),tV=eV,rV={variant:"subtitle1"},nV=i().forwardRef((e,t)=>i().createElement(tV,{...rV,...e,ref:t}));nV.defaultProps=rV;var oV=nV;function iV(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function sV(e,t=!1){return e&&(iV(e.value)&&""!==e.value||t&&iV(e.defaultValue)&&""!==e.defaultValue)}const aV=o.createContext(void 0);function lV(e){return Xn("MuiFormControl",e)}Fi("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cV=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],uV=To("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>c({},t.root,t[`margin${Bo(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>c({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),pV=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:u="div",disabled:p=!1,error:d=!1,focused:h,fullWidth:f=!1,hiddenLabel:m=!1,margin:g="none",required:v=!1,size:y="medium",variant:b="outlined"}=r,_=l(r,cV),S=c({},r,{color:a,component:u,disabled:p,error:d,fullWidth:f,hiddenLabel:m,margin:g,required:v,size:y,variant:b}),k=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return x({root:["root","none"!==r&&`margin${Bo(r)}`,n&&"fullWidth"]},lV,t)})(S),[C,O]=o.useState(()=>{let e=!1;return i&&o.Children.forEach(i,t=>{if(!Dp(t,["Input","Select"]))return;const r=Dp(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)}),e}),[E,R]=o.useState(()=>{let e=!1;return i&&o.Children.forEach(i,t=>{Dp(t,["Input","Select"])&&(sV(t.props,!0)||sV(t.props.inputProps,!0))&&(e=!0)}),e}),[M,I]=o.useState(!1);p&&M&&I(!1);const A=void 0===h||p?M:h;let T;const P=o.useMemo(()=>({adornedStart:C,setAdornedStart:O,color:a,disabled:p,error:d,filled:E,focused:A,fullWidth:f,hiddenLabel:m,size:y,onBlur:()=>{I(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{I(!0)},registerEffect:T,required:v,variant:b}),[C,a,p,d,E,A,f,m,T,v,y,b]);return(0,n.jsx)(aV.Provider,{value:P,children:(0,n.jsx)(uV,c({as:u,ownerState:S,className:w(k.root,s),ref:t},_,{children:i}))})}),dV=pV;function hV(){return o.useContext(aV)}var fV=i().forwardRef((e,t)=>i().createElement(dV,{...e,ref:t}));const mV=i().forwardRef((e,t)=>i().createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"}),i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"}))),{slots:gV,classNames:vV}=Pa("CloseButton",["root","icon"]),yV=Da(nc,gV.root)({}),bV=Da(mV,gV.icon)({}),wV={"aria-label":"close",color:"default"},xV=i().forwardRef((e,t)=>{const r=$o({props:{...wV,...e},name:gV.root.name}),{slotProps:n={},...o}=r;return i().createElement(yV,{...o,size:"small",ref:t,className:w([[vV.root,o.className]]),ownerState:r},i().createElement(bV,{...n.icon,className:w([vV.icon,n.icon?.className]),ownerState:r}))});xV.defaultProps=wV;var _V=xV;const SV=Da(e=>i().createElement(cc,{viewBox:"0 0 32 32",...e},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"})))(({theme:e})=>({width:e.spacing(3),height:e.spacing(3),"& path":{fill:e.palette.text.primary},marginRight:e.spacing(1)})),kV=Da("span")(({theme:e})=>({marginRight:e.spacing(1)})),CV=({logo:e,...t})=>!1===e?null:e?i().createElement(kV,null,e):i().createElement(SV,{...t}),{slots:OV,classNames:EV}=Pa("DialogHeader",["root","logo","toolbar"]),RV=Da(Yi,OV.root)({"& .MuiDialogTitle-root":{padding:0}}),MV=Da(ss,OV.toolbar)({}),IV={color:"transparent",position:"relative"},AV=i().forwardRef((e,t)=>{const r=$o({props:{...IV,...e},name:OV.root.name}),{slotProps:n={},logo:o,onClose:s,...a}=r;return i().createElement(RV,{...a,ref:t,className:w([[EV.root,a.className]]),ownerState:r},i().createElement(MV,{variant:"dense",...n.toolbar,className:w([EV.toolbar,n.toolbar?.className]),ownerState:r},i().createElement(CV,{logo:o,className:w([EV.logo,n.logo?.className])}),i().createElement(es,{direction:"row",alignItems:"center",flex:1},r.children),s&&i().createElement(_V,{edge:"end",onClick:s,sx:{"&.MuiButtonBase-root":{ml:.5}}})))});AV.defaultProps=IV;var TV=AV;const PV="base";function LV(e,t){const r=Zn[t];return r?`${PV}--${r}`:function(e,t){return`${PV}-${e}-${t}`}(e,t)}function jV(e){return e.substring(2).toLowerCase()}function NV(e){const{children:t,disableReactTree:r=!1,mouseEvent:i="onClick",onClickAway:s,touchEvent:a="onTouchEnd"}=e,l=o.useRef(!1),c=o.useRef(null),u=o.useRef(!1),p=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const d=ws(t.ref,c),h=_s(e=>{const t=p.current;p.current=!1;const n=$p(c.current);if(!u.current||!c.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||c.current.contains(e.target),o||!r&&t||s(e)}),f=e=>r=>{p.current=!0;const n=t.props[e];n&&n(r)},m={ref:d};return!1!==a&&(m[a]=f(a)),o.useEffect(()=>{if(!1!==a){const e=jV(a),t=$p(c.current),r=()=>{l.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",r)}}},[h,a]),!1!==i&&(m[i]=f(i)),o.useEffect(()=>{if(!1!==i){const e=jV(i),t=$p(c.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}},[h,i]),(0,n.jsx)(o.Fragment,{children:o.cloneElement(t,m)})}var FV="top",DV="bottom",$V="right",BV="left",zV="auto",UV=[FV,DV,$V,BV],VV="start",WV="end",qV="viewport",HV="popper",GV=UV.reduce(function(e,t){return e.concat([t+"-"+VV,t+"-"+WV])},[]),KV=[].concat(UV,[zV]).reduce(function(e,t){return e.concat([t,t+"-"+VV,t+"-"+WV])},[]),ZV=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function XV(e){return e?(e.nodeName||"").toLowerCase():null}function YV(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function JV(e){return e instanceof YV(e).Element||e instanceof Element}function QV(e){return e instanceof YV(e).HTMLElement||e instanceof HTMLElement}function eW(e){return"undefined"!=typeof ShadowRoot&&(e instanceof YV(e).ShadowRoot||e instanceof ShadowRoot)}const tW={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];QV(o)&&XV(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});QV(n)&&XV(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function rW(e){return e.split("-")[0]}var nW=Math.max,oW=Math.min,iW=Math.round;function sW(){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 aW(){return!/^((?!chrome|android).)*safari/i.test(sW())}function lW(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&QV(e)&&(o=e.offsetWidth>0&&iW(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&iW(n.height)/e.offsetHeight||1);var s=(JV(e)?YV(e):window).visualViewport,a=!aW()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/o,c=(n.top+(a&&s?s.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function cW(e){var t=lW(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function uW(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&eW(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function pW(e){return YV(e).getComputedStyle(e)}function dW(e){return["table","td","th"].indexOf(XV(e))>=0}function hW(e){return((JV(e)?e.ownerDocument:e.document)||window.document).documentElement}function fW(e){return"html"===XV(e)?e:e.assignedSlot||e.parentNode||(eW(e)?e.host:null)||hW(e)}function mW(e){return QV(e)&&"fixed"!==pW(e).position?e.offsetParent:null}function gW(e){for(var t=YV(e),r=mW(e);r&&dW(r)&&"static"===pW(r).position;)r=mW(r);return r&&("html"===XV(r)||"body"===XV(r)&&"static"===pW(r).position)?t:r||function(e){var t=/firefox/i.test(sW());if(/Trident/i.test(sW())&&QV(e)&&"fixed"===pW(e).position)return null;var r=fW(e);for(eW(r)&&(r=r.host);QV(r)&&["html","body"].indexOf(XV(r))<0;){var n=pW(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function vW(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yW(e,t,r){return nW(e,oW(t,r))}function bW(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function wW(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}const xW={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=rW(r.placement),l=vW(a),c=[BV,$V].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return bW("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:wW(e,UV))}(o.padding,r),p=cW(i),d="y"===l?FV:BV,h="y"===l?DV:$V,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],g=gW(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[d],w=v-p[c]-u[h],x=v/2-p[c]/2+y,_=yW(b,x,w),S=l;r.modifiersData[n]=((t={})[S]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&uW(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _W(e){return e.split("-")[1]}var SW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kW(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=s.x,h=void 0===d?0:d,f=s.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=BV,w=FV,x=window;if(c){var _=gW(r),S="clientHeight",k="clientWidth";_===YV(r)&&"static"!==pW(_=hW(r)).position&&"absolute"===a&&(S="scrollHeight",k="scrollWidth"),(o===FV||(o===BV||o===$V)&&i===WV)&&(w=DV,m-=(p&&_===x&&x.visualViewport?x.visualViewport.height:_[S])-n.height,m*=l?1:-1),o!==BV&&(o!==FV&&o!==DV||i!==WV)||(b=$V,h-=(p&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-n.width,h*=l?1:-1)}var C,O=Object.assign({position:a},c&&SW),E=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:iW(r*o)/o||0,y:iW(n*o)/o||0}}({x:h,y:m},YV(r)):{x:h,y:m};return h=E.x,m=E.y,l?Object.assign({},O,((C={})[w]=y?"0":"",C[b]=v?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[w]=y?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}var CW={passive:!0};const OW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,s=n.resize,a=void 0===s||s,l=YV(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,CW)}),a&&l.addEventListener("resize",r.update,CW),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,CW)}),a&&l.removeEventListener("resize",r.update,CW)}},data:{}};var EW={left:"right",right:"left",bottom:"top",top:"bottom"};function RW(e){return e.replace(/left|right|bottom|top/g,function(e){return EW[e]})}var MW={start:"end",end:"start"};function IW(e){return e.replace(/start|end/g,function(e){return MW[e]})}function AW(e){var t=YV(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function TW(e){return lW(hW(e)).left+AW(e).scrollLeft}function PW(e){var t=pW(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function LW(e){return["html","body","#document"].indexOf(XV(e))>=0?e.ownerDocument.body:QV(e)&&PW(e)?e:LW(fW(e))}function jW(e,t){var r;void 0===t&&(t=[]);var n=LW(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=YV(n),s=o?[i].concat(i.visualViewport||[],PW(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(jW(fW(s)))}function NW(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function FW(e,t,r){return t===qV?NW(function(e,t){var r=YV(e),n=hW(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=aW();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+TW(e),y:l}}(e,r)):JV(t)?function(e,t){var r=lW(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):NW(function(e){var t,r=hW(e),n=AW(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=nW(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=nW(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+TW(e),l=-n.scrollTop;return"rtl"===pW(o||r).direction&&(a+=nW(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(hW(e)))}function DW(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?rW(o):null,s=o?_W(o):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case FV:t={x:a,y:r.y-n.height};break;case DV:t={x:a,y:r.y+r.height};break;case $V:t={x:r.x+r.width,y:l};break;case BV:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?vW(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case VV:t[c]=t[c]-(r[u]/2-n[u]/2);break;case WV:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function $W(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,s=void 0===i?e.strategy:i,a=r.boundary,l=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?qV:c,p=r.elementContext,d=void 0===p?HV:p,h=r.altBoundary,f=void 0!==h&&h,m=r.padding,g=void 0===m?0:m,v=bW("number"!=typeof g?g:wW(g,UV)),y=d===HV?"reference":HV,b=e.rects.popper,w=e.elements[f?y:d],x=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=jW(fW(e)),r=["absolute","fixed"].indexOf(pW(e).position)>=0&&QV(e)?gW(e):e;return JV(r)?t.filter(function(e){return JV(e)&&uW(e,r)&&"body"!==XV(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(t,r){var o=FW(e,r,n);return t.top=nW(o.top,t.top),t.right=oW(o.right,t.right),t.bottom=oW(o.bottom,t.bottom),t.left=nW(o.left,t.left),t},FW(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(JV(w)?w:w.contextElement||hW(e.elements.popper),l,u,s),_=lW(e.elements.reference),S=DW({reference:_,element:b,strategy:"absolute",placement:o}),k=NW(Object.assign({},b,S)),C=d===HV?k:_,O={top:x.top-C.top+v.top,bottom:C.bottom-x.bottom+v.bottom,left:x.left-C.left+v.left,right:C.right-x.right+v.right},E=e.modifiersData.offset;if(d===HV&&E){var R=E[o];Object.keys(O).forEach(function(e){var t=[$V,DV].indexOf(e)>=0?1:-1,r=[FV,DV].indexOf(e)>=0?"y":"x";O[e]+=R[r]*t})}return O}const BW={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,f=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=rW(g),y=l||(v!==g&&f?function(e){if(rW(e)===zV)return[];var t=RW(e);return[IW(e),t,IW(t)]}(g):[RW(g)]),b=[g].concat(y).reduce(function(e,r){return e.concat(rW(r)===zV?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?KV:l,u=_W(n),p=u?a?GV:GV.filter(function(e){return _W(e)===u}):UV,d=p.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=p);var h=d.reduce(function(t,r){return t[r]=$W(e,{placement:r,boundary:o,rootBoundary:i,padding:s})[rW(r)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:f,allowedAutoPlacements:m}):r)},[]),w=t.rects.reference,x=t.rects.popper,_=new Map,S=!0,k=b[0],C=0;C=0,I=M?"width":"height",A=$W(t,{placement:O,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),T=M?R?$V:BV:R?DV:FV;w[I]>x[I]&&(T=RW(T));var P=RW(T),L=[];if(i&&L.push(A[E]<=0),a&&L.push(A[T]<=0,A[P]<=0),L.every(function(e){return e})){k=O,S=!1;break}_.set(O,L)}if(S)for(var j=function(e){var t=b.find(function(t){var r=_.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},N=f?3:1;N>0&&"break"!==j(N);N--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function zW(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function UW(e){return[FV,$V,DV,BV].some(function(t){return e[t]>=0})}const VW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,s=KV.reduce(function(e,r){return e[r]=function(e,t,r){var n=rW(e),o=[BV,FV].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[BV,$V].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(r,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[n]=s}},WW={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,h=void 0===d||d,f=r.tetherOffset,m=void 0===f?0:f,g=$W(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),v=rW(t.placement),y=_W(t.placement),b=!y,w=vW(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(_){if(i){var M,I="y"===w?FV:BV,A="y"===w?DV:$V,T="y"===w?"height":"width",P=_[w],L=P+g[I],j=P-g[A],N=h?-k[T]/2:0,F=y===VV?S[T]:k[T],D=y===VV?-k[T]:-S[T],$=t.elements.arrow,B=h&&$?cW($):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=z[I],V=z[A],W=yW(0,S[T],B[T]),q=b?S[T]/2-N-W-U-O.mainAxis:F-W-U-O.mainAxis,H=b?-S[T]/2+N+W+V+O.mainAxis:D+W+V+O.mainAxis,G=t.elements.arrow&&gW(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Z=null!=(M=null==E?void 0:E[w])?M:0,X=P+H-Z,Y=yW(h?oW(L,P+q-Z-K):L,P,h?nW(j,X):j);_[w]=Y,R[w]=Y-P}if(a){var J,Q="x"===w?FV:BV,ee="x"===w?DV:$V,te=_[x],re="y"===x?"height":"width",ne=te+g[Q],oe=te-g[ee],ie=-1!==[FV,BV].indexOf(v),se=null!=(J=null==E?void 0:E[x])?J:0,ae=ie?ne:te-S[re]-k[re]-se+O.altAxis,le=ie?te+S[re]+k[re]-se-O.altAxis:oe,ce=h&&ie?function(e,t,r){var n=yW(e,t,r);return n>r?r:n}(ae,te,le):yW(h?ae:ne,te,h?le:oe);_[x]=ce,R[x]=ce-te}t.modifiersData[n]=R}},requiresIfExists:["offset"]};function qW(e,t,r){void 0===r&&(r=!1);var n=QV(t),o=QV(t)&&function(e){var t=e.getBoundingClientRect(),r=iW(t.width)/e.offsetWidth||1,n=iW(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=hW(t),s=lW(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==XV(t)||PW(i))&&(a=function(e){return e!==YV(e)&&QV(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:AW(e);var t}(t)),QV(t)?((l=lW(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=TW(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function HW(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var GW={placement:"bottom",modifiers:[],strategy:"absolute"};function KW(){for(var e=arguments.length,t=new Array(e),r=0;r{t[r]=LV(e,r)})}(XW);const JW=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],QW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eq(e){return"function"==typeof e?e():e}const tq={},rq=o.forwardRef(function(e,t){var r;const{anchorEl:i,children:s,direction:a,disablePortal:u,modifiers:p,open:d,placement:h,popperOptions:f,popperRef:m,slotProps:g={},slots:v={},TransitionProps:y}=e,b=l(e,JW),w=o.useRef(null),_=ws(w,t),S=o.useRef(null),k=ws(S,m),C=o.useRef(k);xs(()=>{C.current=k},[k]),o.useImperativeHandle(m,()=>S.current,[]);const O=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}}(h,a),[E,R]=o.useState(O),[M,I]=o.useState(eq(i));o.useEffect(()=>{S.current&&S.current.forceUpdate()}),o.useEffect(()=>{i&&I(eq(i))},[i]),xs(()=>{if(!M||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{R(e.placement)}}];null!=p&&(e=e.concat(p)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));const t=ZW(M,w.current,c({placement:O},f,{modifiers:e}));return C.current(t),()=>{t.destroy(),C.current(null)}},[M,u,p,d,f,O]);const A={placement:E};null!==y&&(A.TransitionProps=y);const T=x({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(Pp);return r=>t?"":e(r)}(YW)),P=null!=(r=v.root)?r:"div",L=Xp({elementType:P,externalSlotProps:g.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:T.root});return(0,n.jsx)(P,c({},L,{children:"function"==typeof s?s(A):s}))}),nq=o.forwardRef(function(e,t){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:u=!1,keepMounted:p=!1,modifiers:d,open:h,placement:f="bottom",popperOptions:m=tq,popperRef:g,style:v,transition:y=!1,slotProps:b={},slots:w={}}=e,x=l(e,QW),[_,S]=o.useState(!0);if(!p&&!h&&(!y||_))return null;let k;if(s)k=s;else if(r){const e=eq(r);k=e&&function(e){return void 0!==e.nodeType}(e)?$p(e).body:$p(null).body}const C=y?{in:h,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,n.jsx)(Od,{disablePortal:u,container:k,children:(0,n.jsx)(rq,c({anchorEl:r,direction:a,disablePortal:u,modifiers:d,ref:t,open:y?!_:h,placement:f,popperOptions:m,popperRef:g,slotProps:b,slots:w},x,{style:c({position:"fixed",top:0,left:0,display:h||!p||y&&!_?void 0:"none"},v),TransitionProps:C,children:i}))})}),oq=["onChange","maxRows","minRows","style","value"];function iq(e){return parseInt(e,10)||0}const sq={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},aq=o.forwardRef(function(e,t){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:u}=e,p=l(e,oq),{current:d}=o.useRef(null!=u),h=o.useRef(null),f=ws(t,h),m=o.useRef(null),g=o.useCallback(()=>{const t=h.current,r=Bp(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const n=m.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const o=r.boxSizing,a=iq(r.paddingBottom)+iq(r.paddingTop),l=iq(r.borderBottomWidth)+iq(r.borderTopWidth),c=n.scrollHeight;n.value="x";const u=n.scrollHeight;let p=c;return s&&(p=Math.max(Number(s)*u,p)),i&&(p=Math.min(Number(i)*u,p)),p=Math.max(p,u),{outerHeightStyle:p+("border-box"===o?a+l:0),overflowing:Math.abs(p-c)<=1}},[i,s,e.placeholder]),v=o.useCallback(()=>{const e=g();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=h.current;r.style.height=`${e.outerHeightStyle}px`,r.style.overflow=e.overflowing?"hidden":""},[g]);return xs(()=>{const e=()=>{v()},t=Fp(e),r=h.current,n=Bp(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(void 0),n.removeEventListener("resize",t),o&&o.disconnect()}},[g,v]),xs(()=>{v()}),(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)("textarea",c({value:u,onChange:e=>{d||v(),r&&r(e)},ref:f,rows:s,style:a},p)),(0,n.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:m,tabIndex:-1,style:c({},sq,a,{paddingTop:0,paddingBottom:0})})]})});function lq(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function cq(e,t){for(let r=0;r{let c=s?a.trim():a;r&&(c=c.toLowerCase()),t&&(c=lq(c));const u=c?e.filter(e=>{let n=(i||l)(e);return r&&(n=n.toLowerCase()),t&&(n=lq(n)),"start"===o?0===n.indexOf(c):n.indexOf(c)>-1}):e;return"number"==typeof n?u.slice(0,n):u}}(),pq=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};var dq,hq={};const fq=u(function(){if(dq)return hq;dq=1,Object.defineProperty(hq,"__esModule",{value:!0}),hq.default=void 0;var e=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r(void 0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(i()),t=hr;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}return hq.default=function(r=null){const n=e.useContext(t.ThemeContext);return n&&(o=n,0!==Object.keys(o).length)?n:r;var o},hq}()),mq=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],gq=To(nq,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vq=o.forwardRef(function(e,t){var r;const o=fq(),i=$o({props:e,name:"MuiPopper"}),{anchorEl:s,component:a,components:u,componentsProps:p,container:d,disablePortal:h,keepMounted:f,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:w,slots:x,slotProps:_}=i,S=l(i,mq),k=null!=(r=null==x?void 0:x.root)?r:null==u?void 0:u.Root,C=c({anchorEl:s,container:d,disablePortal:h,keepMounted:f,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:w},S);return(0,n.jsx)(gq,c({as:a,direction:null==o?void 0:o.direction,slots:{root:k},slotProps:null!=_?_:p},C,{ref:t}))}),yq=vq;function bq(e){return Xn("MuiListSubheader",e)}Fi("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const wq=["className","color","component","disableGutters","disableSticky","inset"],xq=To("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Bo(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>c({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),_q=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:u=!1,inset:p=!1}=r,d=l(r,wq),h=c({},r,{color:i,component:s,disableGutters:a,disableSticky:u,inset:p}),f=(e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:i}=e;return x({root:["root","default"!==r&&`color${Bo(r)}`,!n&&"gutters",o&&"inset",!i&&"sticky"]},bq,t)})(h);return(0,n.jsx)(xq,c({as:s,className:w(f.root,o),ref:t,ownerState:h},d))});_q.muiSkipListHighlight=!0;const Sq=_q;function kq({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}function Cq(e){return Xn("MuiInputBase",e)}const Oq=Fi("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Eq=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Rq=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Bo(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Mq=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Iq=To("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rq})(({theme:e,ownerState:t})=>c({},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",[`&.${Oq.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&c({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Aq=To("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Mq})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=c({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return c({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oq.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Oq.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Tq=(0,n.jsx)(function(e){return(0,n.jsx)(Vo,c({},e,{defaultTheme:Ro,themeId:Mo}))},{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Pq=o.forwardRef(function(e,t){var r;const i=$o({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:u,className:p,components:d={},componentsProps:h={},defaultValue:f,disabled:m,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:b,inputComponent:_="input",inputProps:S={},inputRef:k,maxRows:C,minRows:O,multiline:E=!1,name:R,onBlur:M,onChange:I,onClick:A,onFocus:T,onKeyDown:P,onKeyUp:L,placeholder:j,readOnly:N,renderSuffix:F,rows:D,slotProps:$={},slots:B={},startAdornment:z,type:U="text",value:V}=i,W=l(i,Eq),q=null!=S.value?S.value:V,{current:H}=o.useRef(null!=q),G=o.useRef(),K=o.useCallback(e=>{},[]),Z=ws(G,k,S.ref,K),[X,Y]=o.useState(!1),J=hV(),Q=kq({props:i,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=J?J.focused:X,o.useEffect(()=>{!J&&m&&X&&(Y(!1),M&&M())},[J,m,X,M]);const ee=J&&J.onFilled,te=J&&J.onEmpty,re=o.useCallback(e=>{sV(e)?ee&&ee():te&&te()},[ee,te]);xs(()=>{H&&re({value:q})},[q,re,H]),o.useEffect(()=>{re(G.current)},[]);let ne=_,oe=S;E&&"input"===ne&&(oe=c(D?{type:void 0,minRows:D,maxRows:D}:{type:void 0,maxRows:C,minRows:O},oe),ne=aq),o.useEffect(()=>{J&&J.setAdornedStart(Boolean(z))},[J,z]);const ie=c({},i,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:v,error:Q.error,focused:Q.focused,formControl:J,fullWidth:y,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:z,type:U}),se=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:p,size:d,startAdornment:h,type:f}=e;return x({root:["root",`color${Bo(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",d&&"medium"!==d&&`size${Bo(d)}`,u&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===d&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]},Cq,t)})(ie),ae=B.root||d.Root||Iq,le=$.root||h.root||{},ce=B.input||d.Input||Aq;return oe=c({},oe,null!=(r=$.input)?r:h.input),(0,n.jsxs)(o.Fragment,{children:[!g&&Tq,(0,n.jsxs)(ae,c({},le,!Ap(ae)&&{ownerState:c({},ie,le.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),A&&A(e)}},W,{className:w(se.root,le.className,p,N&&"MuiInputBase-readOnly"),children:[z,(0,n.jsx)(aV.Provider,{value:null,children:(0,n.jsx)(ce,c({ownerState:ie,"aria-invalid":Q.error,"aria-describedby":s,autoComplete:a,autoFocus:u,defaultValue:f,disabled:Q.disabled,id:b,onAnimationStart:e=>{re("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:R,placeholder:j,readOnly:N,required:Q.required,rows:D,value:q,onKeyDown:P,onKeyUp:L,type:U},oe,!Ap(ce)&&{as:ne,ownerState:c({},ie,oe.ownerState)},{ref:Z,className:w(se.input,oe.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{M&&M(e),S.onBlur&&S.onBlur(e),J&&J.onBlur?J.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||G.current;if(null==t)throw new Error(Vn(1));re({value:t.value})}S.onChange&&S.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Q.disabled?e.stopPropagation():(T&&T(e),S.onFocus&&S.onFocus(e),J&&J.onFocus?J.onFocus(e):Y(!0))}}))}),v,F?F(c({},Q,{startAdornment:z})):null]}))]})}),Lq=Pq;function jq(e){return Xn("MuiInput",e)}const Nq=c({},Oq,Fi("MuiInput",["root","underline","input"]));function Fq(e){return Xn("MuiOutlinedInput",e)}const Dq=c({},Oq,Fi("MuiOutlinedInput",["root","notchedOutline","input"]));function $q(e){return Xn("MuiFilledInput",e)}const Bq=c({},Oq,Fi("MuiFilledInput",["root","underline","input"])),zq=y$((0,n.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Uq=y$((0,n.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Vq(e){return Xn("MuiAutocomplete",e)}const Wq=Fi("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 qq,Hq;const Gq=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Kq=["ref"],Zq=nz(),Xq=To("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=r;return[{[`& .${Wq.tag}`]:t.tag},{[`& .${Wq.tag}`]:t[`tagSize${Bo(a)}`]},{[`& .${Wq.inputRoot}`]:t.inputRoot},{[`& .${Wq.input}`]:t.input},{[`& .${Wq.input}`]:s&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Wq.focused} .${Wq.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Wq.clearIndicator}`]:{visibility:"visible"}},[`& .${Wq.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Wq.inputRoot}`]:{flexWrap:"wrap",[`.${Wq.hasPopupIcon}&, .${Wq.hasClearIcon}&`]:{paddingRight:30},[`.${Wq.hasPopupIcon}.${Wq.hasClearIcon}&`]:{paddingRight:56},[`& .${Wq.input}`]:{width:0,minWidth:30}},[`& .${Nq.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Nq.root}.${Oq.sizeSmall}`]:{[`& .${Nq.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Dq.root}`]:{padding:9,[`.${Wq.hasPopupIcon}&, .${Wq.hasClearIcon}&`]:{paddingRight:39},[`.${Wq.hasPopupIcon}.${Wq.hasClearIcon}&`]:{paddingRight:65},[`& .${Wq.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Wq.endAdornment}`]:{right:9}},[`& .${Dq.root}.${Oq.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Wq.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Bq.root}`]:{paddingTop:19,paddingLeft:8,[`.${Wq.hasPopupIcon}&, .${Wq.hasClearIcon}&`]:{paddingRight:39},[`.${Wq.hasPopupIcon}.${Wq.hasClearIcon}&`]:{paddingRight:65},[`& .${Bq.input}`]:{padding:"7px 4px"},[`& .${Wq.endAdornment}`]:{right:9}},[`& .${Bq.root}.${Oq.sizeSmall}`]:{paddingBottom:1,[`& .${Bq.input}`]:{padding:"2.5px 4px"}},[`& .${Oq.hiddenLabel}`]:{paddingTop:8},[`& .${Bq.root}.${Oq.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Wq.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Bq.root}.${Oq.hiddenLabel}.${Oq.sizeSmall}`]:{[`& .${Wq.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Wq.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Wq.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Wq.input}`]:{opacity:1}}}]}),Yq=To("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Jq=To(_a,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Qq=To(_a,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>c({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),eH=To(yq,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Wq.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),tH=To(Ui,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>c({},e.typography.body1,{overflow:"auto"})),rH=To("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),nH=To("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),oH=To("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Wq.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"},[`&.${Wq.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"},[`&.${Wq.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})`:ro.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wq.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ro.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Wq.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ro.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),iH=To(Sq,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),sH=To("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Wq.option}`]:{paddingLeft:24}}),aH=o.forwardRef(function(e,t){var r,i,s,a;const u=Zq({props:e,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:d=!1,autoSelect:h=!1,blurOnSelect:f=!1,ChipProps:m,className:g,clearIcon:v=qq||(qq=(0,n.jsx)(zq,{fontSize:"small"})),clearOnBlur:y=!u.freeSolo,clearOnEscape:b=!1,clearText:_="Clear",closeText:S="Close",componentsProps:k={},defaultValue:C=(u.multiple?[]:null),disableClearable:O=!1,disableCloseOnSelect:E=!1,disabled:R=!1,disabledItemsFocusable:M=!1,disableListWrap:I=!1,disablePortal:A=!1,filterSelectedOptions:T=!1,forcePopupIcon:P="auto",freeSolo:L=!1,fullWidth:j=!1,getLimitTagsText:N=e=>`+${e}`,getOptionLabel:F,groupBy:D,handleHomeEndKeys:$=!u.freeSolo,includeInputInList:B=!1,limitTags:z=-1,ListboxComponent:U="ul",ListboxProps:V,loading:W=!1,loadingText:q="Loading…",multiple:H=!1,noOptionsText:G="No options",openOnFocus:K=!1,openText:Z="Open",PaperComponent:X=Ui,PopperComponent:Y=yq,popupIcon:J=Hq||(Hq=(0,n.jsx)(Uq,{})),readOnly:Q=!1,renderGroup:ee,renderInput:te,renderOption:re,renderTags:ne,selectOnFocus:oe=!u.freeSolo,size:ie="medium",slotProps:se={}}=u,ae=l(u,Gq),{getRootProps:le,getInputProps:ce,getInputLabelProps:ue,getPopupIndicatorProps:pe,getClearProps:de,getTagProps:he,getListboxProps:fe,getOptionProps:me,value:ge,dirty:ve,expanded:ye,id:be,popupOpen:we,focused:xe,focusedTag:_e,anchorEl:Se,setAnchorEl:ke,inputValue:Ce,groupedOptions:Oe}=function(e){const{unstable_isActiveElementInListbox:t=pq,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:p="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:h=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:v=!1,filterOptions:y=uq,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:x,getOptionKey:_,getOptionLabel:S=e=>{var t;return null!=(t=e.label)?t:e},groupBy:k,handleHomeEndKeys:C=!e.freeSolo,id:O,includeInputInList:E=!1,inputValue:R,isOptionEqualToValue:M=(e,t)=>e===t,multiple:I=!1,onChange:A,onClose:T,onHighlightChange:P,onInputChange:L,onOpen:j,open:N,openOnFocus:F=!1,options:D,readOnly:$=!1,selectOnFocus:B=!e.freeSolo,value:z}=e,U=Vp(O);let V=S;V=e=>{const t=S(e);return"string"!=typeof t?String(t):t};const W=o.useRef(!1),q=o.useRef(!0),H=o.useRef(null),G=o.useRef(null),[K,Z]=o.useState(null),[X,Y]=o.useState(-1),J=i?0:-1,Q=o.useRef(J),[ee,te]=Wp({controlled:z,default:d,name:p}),[re,ne]=Wp({controlled:R,default:"",name:p,state:"inputValue"}),[oe,ie]=o.useState(!1),se=o.useCallback((e,t)=>{if(!(I?ee.length!b||!(I?ee:[ee]).some(t=>null!==t&&M(e,t))),{inputValue:pe&&ce?"":re,getOptionLabel:V}):[],fe=Hp({filteredOptions:he,value:ee,inputValue:re});o.useEffect(()=>{const e=ee!==fe.value;oe&&!e||w&&!e||se(null,ee)},[ee,se,oe,fe.value,w]);const me=ae&&he.length>0&&!$,ge=_s(e=>{-1===e?H.current.focus():K.querySelector(`[data-tag-index="${e}"]`).focus()});o.useEffect(()=>{I&&X>ee.length-1&&(Y(-1),ge(-1))},[ee,I,X,ge]);const ve=_s(({event:e,index:t,reason:n="auto"})=>{if(Q.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${U}-option-${t}`),P&&P(e,-1===t?null:he[t],n),!G.current)return;const o=G.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let i=G.current;if("listbox"!==G.current.getAttribute("role")&&(i=G.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const s=G.current.querySelector(`[data-option-index="${t}"]`);if(s&&(s.classList.add(`${r}-focused`),"keyboard"===n&&s.classList.add(`${r}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=s,t=i.clientHeight+i.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?i.scrollTop=r-i.clientHeight:e.offsetTop-e.offsetHeight*(k?1.3:0){if(!de)return;const i=function(e,t){if(!G.current||e<0||e>=he.length)return-1;let r=e;for(;;){const n=G.current.querySelector(`[data-option-index="${r}"]`),o=!g&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if(r="next"===t?(r+1)%he.length:(r-1+he.length)%he.length,r===e)return-1}}((()=>{const e=he.length-1;if("reset"===t)return J;if("start"===t)return 0;if("end"===t)return e;const r=Q.current+t;return r<0?-1===r&&E?-1:v&&-1!==Q.current||Math.abs(t)>1?0:e:r>e?r===e+1&&E?-1:v||Math.abs(t)>1?e:0:r})(),r);if(ve({index:i,reason:o,event:e}),n&&"reset"!==t)if(-1===i)H.current.value=re;else{const e=V(he[i]);H.current.value=e,0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&H.current.setSelectionRange(re.length,e.length)}}),be=o.useCallback(()=>{if(!de)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==he.length&&fe.inputValue===re&&(I?ee.length===fe.value.length&&fe.value.every((e,t)=>V(ee[t])===V(e)):(e=fe.value,t=ee,(e?V(e):"")===(t?V(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return cq(he,t=>V(t)===V(e))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=I?ee[0]:ee;if(0!==he.length&&null!=t){if(G.current){if(null!=t){const e=he[Q.current];if(I&&e&&-1!==cq(ee,t=>M(e,t)))return;const r=cq(he,e=>M(e,t));return void(-1===r?ye({diff:"reset"}):ve({index:r}))}Q.current>=he.length-1?ve({index:he.length-1}):ve({index:Q.current})}}else ye({diff:"reset"})},[he.length,!I&&ee,b,ye,ve,de,re,I]),we=_s(e=>{bs(G,e),e&&be()});o.useEffect(()=>{be()},[be]);const xe=e=>{ae||(le(!0),ue(!0),j&&j(e))},_e=(e,t)=>{ae&&(le(!1),T&&T(e,t))},Se=(e,t,r,n)=>{if(I){if(ee.length===t.length&&ee.every((e,r)=>e===t[r]))return}else if(ee===t)return;A&&A(e,t,r,n),te(t)},ke=o.useRef(!1),Ce=(e,t,r="selectOption",n="options")=>{let o=r,i=t;if(I){i=Array.isArray(ee)?ee.slice():[];const e=cq(i,e=>M(t,e));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),o="removeOption")}se(e,i),Se(e,i,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||_e(e,o),(!0===a||"touch"===a&&ke.current||"mouse"===a&&!ke.current)&&H.current.blur()},Oe=(e,t)=>{if(!I)return;""===re&&_e(e,"toggleInput");let r=X;-1===X?""===re&&"previous"===t&&(r=ee.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===ee.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return-1;const e=K.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),Y(r),ge(r)},Ee=e=>{W.current=!0,ne(""),L&&L(e,"","clear"),Se(e,I?[]:null,"clear")},Re=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==X&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Y(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":de&&C&&(t.preventDefault(),ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":de&&C&&(t.preventDefault(),ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ye({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ye({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ye({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Oe(t,"previous");break;case"ArrowRight":Oe(t,"next");break;case"Enter":if(-1!==Q.current&&de){const e=he[Q.current],r=!!x&&x(e);if(t.preventDefault(),r)return;Ce(t,e,"selectOption"),n&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else w&&""!==re&&!1===pe&&(I&&t.preventDefault(),Ce(t,re,"createOption","freeSolo"));break;case"Escape":de?(t.preventDefault(),t.stopPropagation(),_e(t,"escape")):u&&(""!==re||I&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if(I&&!$&&""===re&&ee.length>0){const e=-1===X?ee.length-1:X,r=ee.slice();r.splice(e,1),Se(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if(I&&!$&&""===re&&ee.length>0&&-1!==X){const e=X,r=ee.slice();r.splice(e,1),Se(t,r,"removeOption",{option:ee[e]})}}},Me=e=>{ie(!0),F&&!W.current&&xe(e)},Ie=e=>{t(G)?H.current.focus():(ie(!1),q.current=!0,W.current=!1,s&&-1!==Q.current&&de?Ce(e,he[Q.current],"blur"):s&&w&&""!==re?Ce(e,re,"blur","freeSolo"):l&&se(e,ee),_e(e,"blur"))},Ae=e=>{const t=e.target.value;re!==t&&(ne(t),ue(!1),L&&L(e,t,"input")),""===t?h||I||Se(e,null,"clear"):xe(e)},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&ve({event:e,index:t,reason:"mouse"})},Pe=e=>{ve({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},Le=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ce(e,he[t],"selectOption"),ke.current=!1},je=e=>t=>{const r=ee.slice();r.splice(e,1),Se(t,r,"removeOption",{option:ee[e]})},Ne=e=>{ae?_e(e,"toggleInput"):xe(e)},Fe=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==U&&e.preventDefault()},De=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&q.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),q.current=!1)},$e=e=>{m||""!==re&&ae||Ne(e)};let Be=w&&re.length>0;Be=Be||(I?ee.length>0:null!==ee);let ze=he;return k&&(new Map,ze=he.reduce((e,t,r)=>{const n=k(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])),m&&oe&&Ie(),{getRootProps:(e={})=>c({"aria-owns":me?`${U}-listbox`:null},e,{onKeyDown:Re(e),onMouseDown:Fe,onClick:De}),getInputLabelProps:()=>({id:`${U}-label`,htmlFor:U}),getInputProps:()=>({id:U,value:re,onBlur:Ie,onFocus:Me,onChange:Ae,onMouseDown:$e,"aria-activedescendant":de?"":null,"aria-autocomplete":n?"both":"list","aria-controls":me?`${U}-listbox`:void 0,"aria-expanded":me,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>c({key:e,"data-tag-index":e,tabIndex:-1},!$&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${U}-listbox`,"aria-labelledby":`${U}-label`,ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;const n=(I?ee:[ee]).some(e=>null!=e&&M(t,e)),o=!!x&&x(t);return{key:null!=(r=null==_?void 0:_(t))?r:V(t),tabIndex:-1,role:"option",id:`${U}-option-${e}`,onMouseMove:Te,onClick:Le,onTouchStart:Pe,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:U,inputValue:re,value:ee,dirty:Be,expanded:de&&K,popupOpen:de,focused:oe||-1!==X,anchorEl:K,setAnchorEl:Z,focusedTag:X,groupedOptions:ze}}(c({},u,{componentName:"Autocomplete"})),Ee=!O&&!R&&ve&&!Q,Re=(!L||!0===P)&&!1!==P,{onMouseDown:Me}=ce(),{ref:Ie}=null!=V?V:{},Ae=fe(),{ref:Te}=Ae,Pe=l(Ae,Kq),Le=ws(Te,Ie),je=F||(e=>{var t;return null!=(t=e.label)?t:e}),Ne=c({},u,{disablePortal:A,expanded:ye,focused:xe,fullWidth:j,getOptionLabel:je,hasClearIcon:Ee,hasPopupIcon:Re,inputFocused:-1===_e,popupOpen:we,size:ie}),Fe=(e=>{const{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=e;return x({root:["root",n&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Bo(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},Vq,t)})(Ne);let De;if(H&&ge.length>0){const e=e=>c({className:Fe.tag,disabled:R},he(e));De=ne?ne(ge,e,Ne):ge.map((t,r)=>(0,n.jsx)(E$,c({label:je(t),size:ie},e({index:r}),m)))}if(z>-1&&Array.isArray(De)){const e=De.length-z;!xe&&e>0&&(De=De.splice(0,z),De.push((0,n.jsx)("span",{className:Fe.tag,children:N(e)},De.length)))}const $e=ee||(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)(iH,{className:Fe.groupLabel,ownerState:Ne,component:"div",children:e.group}),(0,n.jsx)(sH,{className:Fe.groupUl,ownerState:Ne,children:e.children})]},e.key)),Be=re||((e,t)=>(0,o.createElement)("li",c({},e,{key:e.key}),je(t))),ze=(e,t)=>{const r=me({option:e,index:t});return Be(c({},r,{className:Fe.option}),e,{selected:r["aria-selected"],index:t,inputValue:Ce},Ne)},Ue=null!=(r=se.clearIndicator)?r:k.clearIndicator,Ve=null!=(i=se.paper)?i:k.paper,We=null!=(s=se.popper)?s:k.popper,qe=null!=(a=se.popupIndicator)?a:k.popupIndicator,He=e=>(0,n.jsx)(eH,c({as:Y,disablePortal:A,style:{width:Se?Se.clientWidth:null},ownerState:Ne,role:"presentation",anchorEl:Se,open:we},We,{className:w(Fe.popper,null==We?void 0:We.className),children:(0,n.jsx)(tH,c({ownerState:Ne,as:X},Ve,{className:w(Fe.paper,null==Ve?void 0:Ve.className),children:e}))}));let Ge=null;return Oe.length>0?Ge=He((0,n.jsx)(oH,c({as:U,className:Fe.listbox,ownerState:Ne},Pe,V,{ref:Le,children:Oe.map((e,t)=>D?$e({key:e.key,group:e.group,children:e.options.map((t,r)=>ze(t,e.index+r))}):ze(e,t))}))):W&&0===Oe.length?Ge=He((0,n.jsx)(rH,{className:Fe.loading,ownerState:Ne,children:q})):0!==Oe.length||L||W||(Ge=He((0,n.jsx)(nH,{className:Fe.noOptions,ownerState:Ne,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:G}))),(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)(Xq,c({ref:t,className:w(Fe.root,g),ownerState:Ne},le(ae),{children:te({id:be,disabled:R,fullWidth:!0,size:"small"===ie?"small":void 0,InputLabelProps:ue(),InputProps:c({ref:ke,className:Fe.inputRoot,startAdornment:De,onClick:e=>{e.target===e.currentTarget&&Me(e)}},(Ee||Re)&&{endAdornment:(0,n.jsxs)(Yq,{className:Fe.endAdornment,ownerState:Ne,children:[Ee?(0,n.jsx)(Jq,c({},de(),{"aria-label":_,title:_,ownerState:Ne},Ue,{className:w(Fe.clearIndicator,null==Ue?void 0:Ue.className),children:v})):null,Re?(0,n.jsx)(Qq,c({},pe(),{disabled:R,"aria-label":we?S:Z,title:we?S:Z,ownerState:Ne},qe,{className:w(Fe.popupIndicator,null==qe?void 0:qe.className),children:J})):null]})}),inputProps:c({className:Fe.input,disabled:R,readOnly:Q},ce())})})),Se?Ge:null]})}),lH=aH,cH="MuiAutocomplete-listbox",uH={slotProps:{paper:{elevation:6}}};var pH=i().forwardRef((e,t)=>{const{renderInput:r,ListboxProps:n={},...o}=e,s={...uH,...o,slotProps:{...uH.slotProps,...o.slotProps,paper:{...uH.slotProps?.paper,...o.slotProps?.paper}}};return i().createElement(lH,{...s,ListboxProps:{...n,className:w([cH,`${cH}Size${a=o.size||"medium",a?a[0].toUpperCase()+a.slice(1):""}`,n.className])},renderInput:t=>r?.(function(e,t){const r=e;return t.size&&(r.size=t.size),r}(t,e)),ref:t});var a});const dH=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],hH=["component","slots","slotProps"],fH=["component"];function mH(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,getSlotOwnerState:s,internalForwardedProps:a}=t,u=l(t,dH),{component:p,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=i,f=l(i,hH),m=d[e]||n,g=jp(h[e],o),v=Kp(c({className:r},u,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:g})),{props:{component:y},internalRef:b}=v,w=l(v.props,fH),x=ws(b,null==g?void 0:g.ref,t.ref),_=s?s(w):{},S=c({},o,_),k="root"===e?y||p:y,C=Tp(m,c({},"root"===e&&!p&&!d[e]&&a,"root"!==e&&!d[e]&&a,w,k&&{as:k},{ref:x}),S);return Object.keys(_).forEach(e=>{delete C[e]}),[m,C]}function gH(e){return Xn("MuiAlert",e)}const vH=Fi("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),yH=y$((0,n.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),bH=y$((0,n.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),wH=y$((0,n.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),xH=y$((0,n.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),_H=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],SH=nz(),kH=To(Ui,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Bo(r.color||r.severity)}`]]}})(({theme:e})=>{const t="light"===e.palette.mode?ro.darken:ro.lighten,r="light"===e.palette.mode?ro.lighten:ro.darken;return c({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${vH.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${vH.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,e])=>e.main&&e.dark).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:c({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})}))]})}),CH=To("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),OH=To("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),EH=To("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),RH={success:(0,n.jsx)(yH,{fontSize:"inherit"}),warning:(0,n.jsx)(bH,{fontSize:"inherit"}),error:(0,n.jsx)(wH,{fontSize:"inherit"}),info:(0,n.jsx)(xH,{fontSize:"inherit"})},MH=o.forwardRef(function(e,t){const r=SH({props:e,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:u,components:p={},componentsProps:d={},icon:h,iconMapping:f=RH,onClose:m,role:g="alert",severity:v="success",slotProps:y={},slots:b={},variant:_="standard"}=r,S=l(r,_H),k=c({},r,{color:u,severity:v,variant:_,colorSeverity:u||v}),C=(e=>{const{variant:t,color:r,severity:n,classes:o}=e;return x({root:["root",`color${Bo(r||n)}`,`${t}${Bo(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},gH,o)})(k),O={slots:c({closeButton:p.CloseButton,closeIcon:p.CloseIcon},b),slotProps:c({},d,y)},[E,R]=mH("closeButton",{elementType:_a,externalForwardedProps:O,ownerState:k}),[M,I]=mH("closeIcon",{elementType:zq,externalForwardedProps:O,ownerState:k});return(0,n.jsxs)(kH,c({role:g,elevation:0,ownerState:k,className:w(C.root,s),ref:t},S,{children:[!1!==h?(0,n.jsx)(CH,{ownerState:k,className:C.icon,children:h||f[v]||RH[v]}):null,(0,n.jsx)(OH,{ownerState:k,className:C.message,children:i}),null!=o?(0,n.jsx)(EH,{ownerState:k,className:C.action,children:o}):null,null==o&&m?(0,n.jsx)(EH,{ownerState:k,className:C.action,children:(0,n.jsx)(E,c({size:"small","aria-label":a,title:a,color:"inherit",onClick:m},R,{children:(0,n.jsx)(M,c({fontSize:"small"},I))}))}):null]}))}),IH=Da(MH)(({theme:e,severity:t,color:r,variant:n,ownerState:o})=>{const i="small"===o.size,s=function(e,t,r,n){const o=t||e;return o?"filled"===r?{"& .MuiButton-containedInherit:not(.Mui-disabled)":{color:n.palette[o].main,backgroundColor:"rgba(255, 255, 255, 1)","&:hover":{backgroundColor:"rgba(255, 255, 255, .96)"}},"& .MuiButton-outlinedInherit:not(.Mui-disabled):hover":{backgroundColor:n.palette[o].dark},"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)":{[Sa]:{color:n.palette[o].main}}}:{"&.MuiAlert-root":{color:n.palette.text.secondary},"& .MuiCloseButton-root":{color:n.palette.action.active},"& .MuiButton-containedInherit:not(.Mui-disabled)":{backgroundColor:n.palette[o].main,color:n.palette[o].contrastText,"&:hover":{backgroundColor:n.palette[o].dark,color:n.palette[o].contrastText}},"& .MuiButton-outlinedInherit:not(.Mui-disabled)":{borderColor:n.palette[o].main,color:n.palette[o].main,"&:hover":{backgroundColor:fi(n.palette[o].main,.08),color:n.palette[o].main}},"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)":{[Sa]:{color:n.palette[o].contrastText}},"& a.MuiButtonBase-root.MuiButton-outlinedInherit:not(.Mui-disabled)":{[Sa]:{color:n.palette[o].main}}}:{}}(t,r,n,e),a=function(e,t){return"small"!==e.size?{}:{"& .MuiButtonBase-root.MuiButton-root":{fontSize:t.typography.caption.fontSize,letterSpacing:t.typography.caption.letterSpacing,lineHeight:1},"& .MuiButtonBase-root.MuiButton-contained":{padding:"8px 9px"},"& .MuiButtonBase-root.MuiButton-outlined":{padding:"7px 9px"}}}(o,e),l=i?{...e.typography.caption,fontWeight:e.typography.subtitle2.fontWeight,lineHeight:e.typography.subtitle2.lineHeight}:e.typography.subtitle2,c=i?{...e.typography.caption,lineHeight:e.typography.body2.lineHeight}:{};return{borderRadius:o.square?void 0:e.shape.borderRadius*e.shape.__unstableBorderRadiusMultipliers[2],padding:i?e.spacing(1.5):e.spacing(1.5,2),"& .MuiAlert-message":{width:"100%",padding:0,minHeight:i?"28px":"31px",display:"flex",flexDirection:"row",flexWrap:"wrap",gap:i?e.spacing(1):e.spacing(1.5),...c},"& .MuiAlertTitle-root":{marginBottom:0,lineHeight:"inherit",marginRight:i?e.spacing(.25):e.spacing(.5),marginTop:0,...l},"& .MuiAlert-icon":{fontSize:i?"18px":"22px",padding:i?e.spacing(.25):0,paddingTop:i?"5px":e.spacing(.5),marginRight:i?e.spacing(.5):e.spacing(1.5)},"& .MuiAlert-action":{padding:i?e.spacing(.25,0,0):0,marginLeft:i?e.spacing(.5):e.spacing(1)},"&.MuiAlert-filledWarning":{color:e.palette.common.white},...a,...s}}),{slots:AH,classNames:TH}=Pa("Alert",["actions","content"]),PH=Da("div",AH.content)(()=>({flexGrow:1,paddingTop:"6px"})),LH=Da("div",AH.content)(({theme:e})=>({alignItems:"center",display:"flex",flexWrap:"wrap",gap:e.spacing(.25),maxWidth:"800px"})),jH=({children:e,...t})=>i().createElement(PH,{...t},i().createElement(LH,null,e)),NH=Da("div")(({theme:e,ownerState:t})=>({display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:"small"===t.size?e.spacing(.5):e.spacing(1)})),FH={closeText:"Close",severity:"success",size:"medium"},DH=i().forwardRef((e,t)=>{const{onClose:r,action:n,secondaryAction:o,children:s,size:a,...l}={...FH,...e},c=Boolean(n||o);return i().createElement(IH,{iconMapping:{success:i().createElement(BH,null),error:i().createElement(UH,null),info:i().createElement(zH,null),warning:i().createElement(VH,null)},...l,ref:t,action:!!r&&i().createElement(_V,{color:"inherit",onClick:r,slotProps:{icon:{fontSize:"small"===a?"tiny":"small"}},title:l.closeText,"aria-label":l.closeText}),ownerState:{size:a,square:l.square}},i().createElement(jH,{className:TH.content},s),c&&i().createElement(NH,{className:TH.actions,ownerState:{size:a}},o,n))});DH.defaultProps=FH;var $H=DH;function BH(){return i().createElement(cc,{viewBox:"0 0 24 24",fontSize:"inherit"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.25C10.7196 2.25 9.45176 2.50219 8.26884 2.99217C7.08591 3.48216 6.01108 4.20034 5.10571 5.10571C4.20034 6.01108 3.48216 7.08591 2.99217 8.26884C2.50219 9.45176 2.25 10.7196 2.25 12C2.25 13.2804 2.50219 14.5482 2.99217 15.7312C3.48216 16.9141 4.20034 17.9889 5.10571 18.8943C6.01108 19.7997 7.08591 20.5178 8.26884 21.0078C9.45176 21.4978 10.7196 21.75 12 21.75C13.2804 21.75 14.5482 21.4978 15.7312 21.0078C16.9141 20.5178 17.9889 19.7997 18.8943 18.8943C19.7997 17.9889 20.5178 16.9141 21.0078 15.7312C21.4978 14.5482 21.75 13.2804 21.75 12C21.75 10.7196 21.4978 9.45176 21.0078 8.26884C20.5178 7.08591 19.7997 6.01108 18.8943 5.10571C17.9889 4.20034 16.9141 3.48216 15.7312 2.99217C14.5482 2.50219 13.2804 2.25 12 2.25ZM16.2415 10.0563C16.5344 9.76339 16.5344 9.28852 16.2415 8.99563C15.9486 8.70273 15.4737 8.70273 15.1809 8.99563L10.7631 13.4134L8.81939 11.4697C8.5265 11.1768 8.05163 11.1768 7.75873 11.4697C7.46584 11.7626 7.46584 12.2374 7.75873 12.5303L10.2328 15.0044C10.3734 15.145 10.5642 15.224 10.7631 15.224C10.962 15.224 11.1528 15.145 11.2934 15.0044L16.2415 10.0563Z"}))}function zH(){return i().createElement(cc,{viewBox:"0 0 24 24",fontSize:"inherit"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM10.75 10C10.3358 10 10 10.3358 10 10.75C10 11.1642 10.3358 11.5 10.75 11.5H11V15.75C11 16.1642 11.3358 16.5 11.75 16.5H12.75C13.1642 16.5 13.5 16.1642 13.5 15.75C13.5 15.3358 13.1642 15 12.75 15H12.5V10.75C12.5 10.3618 12.2051 10.0425 11.8271 10.0039L11.75 10H10.75ZM11.4502 6.75C10.8979 6.75 10.4502 7.19772 10.4502 7.75C10.4502 8.30228 10.8979 8.75 11.4502 8.75H11.46L11.5625 8.74512C12.0666 8.69378 12.46 8.26767 12.46 7.75C12.46 7.23233 12.0666 6.80622 11.5625 6.75488L11.46 6.75H11.4502Z"}))}function UH(){return i().createElement(cc,{viewBox:"0 0 24 24",fontSize:"inherit"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0498 2C15.2873 2 15.5191 2.04048 15.7422 2.13965C15.962 2.23735 16.136 2.37531 16.2803 2.51953L20.9805 7.21973C21.1247 7.36397 21.2627 7.53802 21.3604 7.75781C21.4595 7.98094 21.5 8.21268 21.5 8.4502V15.0498C21.5 15.2873 21.4595 15.5191 21.3604 15.7422C21.2627 15.962 21.1247 16.136 20.9805 16.2803L16.2803 20.9805C16.136 21.1247 15.962 21.2627 15.7422 21.3604C15.5191 21.4595 15.2873 21.5 15.0498 21.5H8.4502C8.21268 21.5 7.98094 21.4595 7.75781 21.3604C7.53802 21.2627 7.36397 21.1247 7.21973 20.9805L2.51953 16.2803C2.37531 16.136 2.23735 15.962 2.13965 15.7422C2.04048 15.5191 2 15.2873 2 15.0498V8.4502C2 8.21268 2.04048 7.98094 2.13965 7.75781C2.23735 7.53802 2.37531 7.36397 2.51953 7.21973L7.21973 2.51953C7.36397 2.37531 7.53802 2.23735 7.75781 2.13965C7.98094 2.04048 8.21268 2 8.4502 2H15.0498ZM11.75 14.75C11.1977 14.75 10.75 15.1977 10.75 15.75C10.75 16.3023 11.1977 16.75 11.75 16.75H11.7598L11.8623 16.7451C12.3665 16.6939 12.7598 16.2678 12.7598 15.75C12.7598 15.2322 12.3665 14.8061 11.8623 14.7549L11.7598 14.75H11.75ZM11.75 7C11.3358 7 11 7.33579 11 7.75V12.75C11 13.1642 11.3358 13.5 11.75 13.5C12.1642 13.5 12.5 13.1642 12.5 12.75V7.75C12.5 7.33579 12.1642 7 11.75 7Z"}))}function VH(){return i().createElement(cc,{viewBox:"0 0 24 24",fontSize:"inherit"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9302 3.00684C12.3573 3.03542 12.7729 3.16362 13.1431 3.38184C13.5618 3.6287 13.9074 3.98244 14.1451 4.40625L21.2456 16.6562L21.2915 16.751C21.4597 17.1668 21.524 17.6183 21.4781 18.0645C21.432 18.5106 21.2773 18.9397 21.0279 19.3125C20.7784 19.685 20.4411 19.9915 20.0464 20.2041C19.6517 20.4166 19.2105 20.529 18.7622 20.5322L18.7564 20.5332H4.75638C4.73812 20.5332 4.71964 20.5316 4.7017 20.5303C4.69631 20.5307 4.69052 20.5319 4.6851 20.5322L4.60795 20.5312L4.44388 20.5186C4.06393 20.476 3.69614 20.3543 3.36478 20.1611C2.98591 19.9403 2.66472 19.6317 2.42924 19.2617C2.19395 18.8919 2.051 18.4707 2.01127 18.0342C1.97166 17.5975 2.03678 17.1563 2.2017 16.75L2.2476 16.6562L9.34721 4.40625C9.58473 3.98261 9.93165 3.62868 10.3501 3.38184C10.7731 3.13252 11.2556 3.00006 11.7466 3L11.9302 3.00684ZM11.7574 15.7822C11.2051 15.7822 10.7574 16.2299 10.7574 16.7822C10.7574 17.3345 11.2051 17.7822 11.7574 17.7822H11.7671L11.8697 17.7773C12.3737 17.7259 12.7671 17.2998 12.7671 16.7822C12.7671 16.2647 12.3737 15.8386 11.8697 15.7871L11.7671 15.7822H11.7574ZM11.7564 8.0332C11.3424 8.03352 11.0064 8.36919 11.0064 8.7832V13.7832C11.0069 14.1968 11.3428 14.5329 11.7564 14.5332C12.1702 14.5332 12.5059 14.1969 12.5064 13.7832V8.7832C12.5064 8.36902 12.1706 8.03325 11.7564 8.0332Z"}))}const{slots:WH,classNames:qH}=Pa("AlertAction",["root"]),HH=Da(ru,WH.root)({}),GH={color:"inherit",variant:"outlined"},KH=i().forwardRef((e,t)=>{const r=$o({props:{...GH,...e},name:WH.root.name});return i().createElement(HH,{...r,size:"small",ref:t,className:w([[qH.root,r.className]]),ownerState:r})});KH.defaultProps=GH;var ZH=KH;function XH(e){return Xn("MuiSnackbarContent",e)}Fi("MuiSnackbarContent",["root","message","action"]);const YH=["action","className","message","role"],JH=To(Ui,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t="light"===e.palette.mode?.8:.98,r=ro.emphasize(e.palette.background.default,t);return c({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),QH=To("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),eG=To("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),tG=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiSnackbarContent"}),{action:o,className:i,message:s,role:a="alert"}=r,u=l(r,YH),p=r,d=(e=>{const{classes:t}=e;return x({root:["root"],action:["action"],message:["message"]},XH,t)})(p);return(0,n.jsxs)(JH,c({role:a,square:!0,elevation:6,className:w(d.root,i),ownerState:p,ref:t},u,{children:[(0,n.jsx)(QH,{className:d.message,ownerState:p,children:s}),o?(0,n.jsx)(eG,{className:d.action,ownerState:p,children:o}):null]}))}),rG=tG;function nG(e){return Xn("MuiSnackbar",e)}Fi("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const oG=["onEnter","onExited"],iG=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],sG=To("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Bo(r.anchorOrigin.vertical)}${Bo(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>c({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:c({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),aG=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiSnackbar"}),i=Ni(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:u,horizontal:p}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:h,className:f,ClickAwayListenerProps:m,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:b,TransitionComponent:w=gd,transitionDuration:_=s,TransitionProps:{onEnter:S,onExited:k}={}}=r,C=l(r.TransitionProps,oG),O=l(r,iG),E=c({},r,{anchorOrigin:{vertical:u,horizontal:p},autoHideDuration:d,disableWindowBlurListener:v,TransitionComponent:w,transitionDuration:_}),R=(e=>{const{classes:t,anchorOrigin:r}=e;return x({root:["root",`anchorOrigin${Bo(r.vertical)}${Bo(r.horizontal)}`]},nG,t)})(E),{getRootProps:M,onClickAway:I}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:i,resumeHideDuration:s}=e,a=Os();o.useEffect(()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}},[i,n]);const l=_s((e,t)=>{null==n||n(e,t)}),u=_s(e=>{n&&null!=e&&a.start(e,()=>{l(null,"timeout")})});o.useEffect(()=>(i&&u(t),a.clear),[i,t,u,a]);const p=a.clear,d=o.useCallback(()=>{null!=t&&u(null!=s?s:.5*t)},[t,s,u]),h=e=>t=>{const r=e.onFocus;null==r||r(t),p()},f=e=>t=>{const r=e.onMouseEnter;null==r||r(t),p()},m=e=>t=>{const r=e.onMouseLeave;null==r||r(t),d()};return o.useEffect(()=>{if(!r&&i)return window.addEventListener("focus",d),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",p)}},[r,i,d,p]),{getRootProps:(t={})=>{const r=c({},Lp(e),Lp(t));return c({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),d()}),onFocus:h(r),onMouseEnter:f(r),onMouseLeave:m(r)});var n},onClickAway:e=>{null==n||n(e,"clickaway")}}}(c({},E)),[A,T]=o.useState(!0),P=Xp({elementType:sG,getSlotProps:M,externalForwardedProps:O,ownerState:E,additionalProps:{ref:t},className:[R.root,f]});return!b&&A?null:(0,n.jsx)(NV,c({onClickAway:I},m,{children:(0,n.jsx)(sG,c({},P,{children:(0,n.jsx)(w,c({appear:!0,in:b,timeout:_,direction:"top"===u?"down":"up",onEnter:(e,t)=>{T(!1),S&&S(e,t)},onExited:e=>{T(!0),k&&k(e)}},C,{children:h||(0,n.jsx)(rG,c({message:y,action:a},g))}))}))}))}),lG=aG;var cG=i().forwardRef((e,t)=>i().createElement(lG,{...e,ref:t}));const uG=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],pG=To(Iq,{shouldForwardProp:e=>Ao(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Rq(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),c({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Nq.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nq.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Nq.disabled}, .${Nq.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Nq.disabled}:before`]:{borderBottomStyle:"dotted"}})}),dG=To(Aq,{name:"MuiInput",slot:"Input",overridesResolver:Mq})({}),hG=o.forwardRef(function(e,t){var r,o,i,s;const a=$o({props:e,name:"MuiInput"}),{disableUnderline:u,components:p={},componentsProps:d,fullWidth:h=!1,inputComponent:f="input",multiline:m=!1,slotProps:g,slots:v={},type:y="text"}=a,b=l(a,uG),w=(e=>{const{classes:t,disableUnderline:r}=e;return c({},t,x({root:["root",!r&&"underline"],input:["input"]},jq,t))})(a),_={root:{ownerState:{disableUnderline:u}}},S=(null!=g?g:d)?Hn(null!=g?g:d,_):_,k=null!=(r=null!=(o=v.root)?o:p.Root)?r:pG,C=null!=(i=null!=(s=v.input)?s:p.Input)?i:dG;return(0,n.jsx)(Lq,c({slots:{root:k,input:C},slotProps:S,fullWidth:h,inputComponent:f,multiline:m,ref:t,type:y},b,{classes:w}))});hG.muiName="Input";const fG=hG,mG=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],gG=To(Iq,{shouldForwardProp:e=>Ao(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Rq(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return c({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Bq.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Bq.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Bq.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bq.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})`:o}`,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(.${Bq.disabled}, .${Bq.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bq.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&c({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),vG=To(Aq,{name:"MuiFilledInput",slot:"Input",overridesResolver:Mq})(({theme:e,ownerState:t})=>c({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),yG=o.forwardRef(function(e,t){var r,o,i,s;const a=$o({props:e,name:"MuiFilledInput"}),{components:u={},componentsProps:p,fullWidth:d=!1,inputComponent:h="input",multiline:f=!1,slotProps:m,slots:g={},type:v="text"}=a,y=l(a,mG),b=c({},a,{fullWidth:d,inputComponent:h,multiline:f,type:v}),w=(e=>{const{classes:t,disableUnderline:r}=e;return c({},t,x({root:["root",!r&&"underline"],input:["input"]},$q,t))})(a),_={root:{ownerState:b},input:{ownerState:b}},S=(null!=m?m:p)?Hn(_,null!=m?m:p):_,k=null!=(r=null!=(o=g.root)?o:u.Root)?r:gG,C=null!=(i=null!=(s=g.input)?s:u.Input)?i:vG;return(0,n.jsx)(Lq,c({slots:{root:k,input:C},componentsProps:S,fullWidth:d,inputComponent:h,multiline:f,ref:t,type:v},y,{classes:w}))});yG.muiName="Input";const bG=yG;var wG;const xG=["children","classes","className","label","notched"],_G=To("fieldset",{shouldForwardProp:Ao})({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%"}),SG=To("legend",{shouldForwardProp:Ao})(({ownerState:e,theme:t})=>c({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&c({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))),kG=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],CG=To(Iq,{shouldForwardProp:e=>Ao(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rq})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return c({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Dq.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Dq.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Dq.focused} .${Dq.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Dq.error} .${Dq.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Dq.disabled} .${Dq.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&c({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),OG=To(function(e){const{className:t,label:r,notched:o}=e,i=l(e,xG),s=null!=r&&""!==r,a=c({},e,{notched:o,withLabel:s});return(0,n.jsx)(_G,c({"aria-hidden":!0,className:t,ownerState:a},i,{children:(0,n.jsx)(SG,{ownerState:a,children:s?(0,n.jsx)("span",{children:r}):wG||(wG=(0,n.jsx)("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),EG=To(Aq,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Mq})(({theme:e,ownerState:t})=>c({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),RG=o.forwardRef(function(e,t){var r,i,s,a,u;const p=$o({props:e,name:"MuiOutlinedInput"}),{components:d={},fullWidth:h=!1,inputComponent:f="input",label:m,multiline:g=!1,notched:v,slots:y={},type:b="text"}=p,w=l(p,kG),_=(e=>{const{classes:t}=e;return c({},t,x({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fq,t))})(p),S=hV(),k=kq({props:p,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=c({},p,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:h,hiddenLabel:k.hiddenLabel,multiline:g,size:k.size,type:b}),O=null!=(r=null!=(i=y.root)?i:d.Root)?r:CG,E=null!=(s=null!=(a=y.input)?a:d.Input)?s:EG;return(0,n.jsx)(Lq,c({slots:{root:O,input:E},renderSuffix:e=>(0,n.jsx)(OG,{ownerState:C,className:_.notchedOutline,label:null!=m&&""!==m&&k.required?u||(u=(0,n.jsxs)(o.Fragment,{children:[m," ","*"]})):m,notched:void 0!==v?v:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:h,inputComponent:f,multiline:g,ref:t,type:b},w,{classes:c({},_,{notchedOutline:null})}))});RG.muiName="Input";const MG=RG;function IG(e){return Xn("MuiFormLabel",e)}const AG=Fi("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),TG=["children","className","color","component","disabled","error","filled","focused","required"],PG=To("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>c({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>c({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${AG.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${AG.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${AG.error}`]:{color:(e.vars||e).palette.error.main}})),LG=To("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${AG.error}`]:{color:(e.vars||e).palette.error.main}})),jG=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=l(r,TG),u=kq({props:r,muiFormControl:hV(),states:["color","required","focused","disabled","error","filled"]}),p=c({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:i,filled:s,required:a}=e;return x({root:["root",`color${Bo(r)}`,o&&"disabled",i&&"error",s&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]},IG,t)})(p);return(0,n.jsxs)(PG,c({as:s,ownerState:p,className:w(d.root,i),ref:t},a,{children:[o,u.required&&(0,n.jsxs)(LG,{ownerState:p,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),NG=jG;function FG(e){return Xn("MuiInputLabel",e)}Fi("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const DG=["disableAnimation","margin","shrink","variant","className"],$G=To(NG,{shouldForwardProp:e=>Ao(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${AG.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>c({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&c({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&c({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&c({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),BG=o.forwardRef(function(e,t){const r=$o({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=l(r,DG),u=hV();let p=i;void 0===p&&u&&(p=u.filled||u.focused||u.adornedStart);const d=kq({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h=c({},r,{disableAnimation:o,formControl:u,shrink:p,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),f=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:i,variant:s,required:a}=e;return c({},t,x({root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n&&"normal"!==n&&`size${Bo(n)}`,s],asterisk:[a&&"asterisk"]},FG,t))})(h);return(0,n.jsx)($G,c({"data-shrink":p,ownerState:h,ref:t,className:w(f.root,s)},a,{classes:f}))}),zG=BG;function UG(e){return Xn("MuiFormHelperText",e)}const VG=Fi("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var WG;const qG=["children","className","component","disabled","error","filled","focused","margin","required","variant"],HG=To("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Bo(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>c({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${VG.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${VG.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),GG=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=l(r,qG),u=kq({props:r,muiFormControl:hV(),states:["variant","size","disabled","error","filled","focused","required"]}),p=c({},r,{component:s,contained:"filled"===u.variant||"outlined"===u.variant,variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:i,filled:s,focused:a,required:l}=e;return x({root:["root",o&&"disabled",i&&"error",n&&`size${Bo(n)}`,r&&"contained",a&&"focused",s&&"filled",l&&"required"]},UG,t)})(p);return(0,n.jsx)(HG,c({as:s,ownerState:p,className:w(d.root,i),ref:t},a,{children:" "===o?WG||(WG=(0,n.jsx)("span",{className:"notranslate",children:"​"})):o}))}),KG=GG;function ZG(e){return Xn("MuiNativeSelect",e)}const XG=Fi("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YG=["className","disabled","error","IconComponent","inputRef","variant"],JG=({ownerState:e,theme:t})=>c({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":c({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${XG.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),QG=To("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ao,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${XG.multiple}`]:t.multiple}]}})(JG),eK=({ownerState:e,theme:t})=>c({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${XG.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),tK=To("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Bo(r.variant)}`],r.open&&t.iconOpen]}})(eK),rK=o.forwardRef(function(e,t){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:u,variant:p="standard"}=e,d=l(e,YG),h=c({},e,{disabled:i,variant:p,error:s}),f=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:s}=e;return x({select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Bo(r)}`,i&&"iconOpen",n&&"disabled"]},ZG,t)})(h);return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)(QG,c({ownerState:h,className:w(f.select,r),disabled:i,ref:u||t},d)),e.multiple?null:(0,n.jsx)(tK,{as:a,ownerState:h,className:f.icon})]})}),nK=rK;function oK(e){return Xn("MuiSelect",e)}const iK=Fi("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sK;const aK=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lK=To("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${iK.select}`]:t.select},{[`&.${iK.select}`]:t[r.variant]},{[`&.${iK.error}`]:t.error},{[`&.${iK.multiple}`]:t.multiple}]}})(JG,{[`&.${iK.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cK=To("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Bo(r.variant)}`],r.open&&t.iconOpen]}})(eK),uK=To("input",{shouldForwardProp:e=>Io(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function pK(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function dK(e){return null==e||"string"==typeof e&&!e.trim()}const hK=o.forwardRef(function(e,t){var r;const{"aria-describedby":i,"aria-label":s,autoFocus:a,autoWidth:u,children:p,className:d,defaultOpen:h,defaultValue:f,disabled:m,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:b,labelId:_,MenuProps:S={},multiple:k,name:C,onBlur:O,onChange:E,onClose:R,onFocus:M,onOpen:I,open:A,readOnly:T,renderValue:P,SelectDisplayProps:L={},tabIndex:j,value:N,variant:F="standard"}=e,D=l(e,aK),[$,B]=Wp({controlled:N,default:f,name:"Select"}),[z,U]=Wp({controlled:A,default:h,name:"Select"}),V=o.useRef(null),W=o.useRef(null),[q,H]=o.useState(null),{current:G}=o.useRef(null!=A),[K,Z]=o.useState(),X=ws(t,b),Y=o.useCallback(e=>{W.current=e,e&&H(e)},[]),J=null==q?void 0:q.parentNode;o.useImperativeHandle(X,()=>({focus:()=>{W.current.focus()},node:V.current,value:$}),[$]),o.useEffect(()=>{h&&z&&q&&!G&&(Z(u?null:J.clientWidth),W.current.focus())},[q,u]),o.useEffect(()=>{a&&W.current.focus()},[a]),o.useEffect(()=>{if(!_)return;const e=$p(W.current).getElementById(_);if(e){const t=()=>{getSelection().isCollapsed&&W.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[_]);const Q=(e,t)=>{e?I&&I(t):R&&R(t),G||(Z(u?null:J.clientWidth),U(e))},ee=o.Children.toArray(p),te=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(k){r=Array.isArray($)?$.slice():[];const t=$.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),$!==r&&(B(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:C}}),E(o,e)}k||Q(!1,t)}},re=null!==q&&z;let ne,oe;delete D["aria-invalid"];const ie=[];let se=!1,ae=!1;(sV({value:$})||g)&&(P?ne=P($):se=!0);const le=ee.map(e=>{if(!o.isValidElement(e))return null;let t;if(k){if(!Array.isArray($))throw new Error(Vn(2));t=$.some(t=>pK(t,e.props.value)),t&&se&&ie.push(e.props.children)}else t=pK($,e.props.value),t&&se&&(oe=e.props.children);return t&&(ae=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:te(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})});se&&(ne=k?0===ie.length?null:ie.reduce((e,t,r)=>(e.push(t),r{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:s}=e;return x({select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Bo(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},oK,t)})(de),fe=c({},S.PaperProps,null==(r=S.slotProps)?void 0:r.paper),me=Vp();return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)(lK,c({ref:Y,tabIndex:ce,role:"combobox","aria-controls":me,"aria-disabled":m?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[_,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{T||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Q(!0,e))},onMouseDown:m||T?null:e=>{0===e.button&&(e.preventDefault(),W.current.focus(),Q(!0,e))},onBlur:e=>{!re&&O&&(Object.defineProperty(e,"target",{writable:!0,value:{value:$,name:C}}),O(e))},onFocus:M},L,{ownerState:de,className:w(L.className,he.select,d),id:pe,children:dK(ne)?sK||(sK=(0,n.jsx)("span",{className:"notranslate",children:"​"})):ne})),(0,n.jsx)(uK,c({"aria-invalid":v,value:Array.isArray($)?$.join(","):$,name:C,ref:V,"aria-hidden":!0,onChange:e=>{const t=ee.find(t=>t.props.value===e.target.value);void 0!==t&&(B(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:m,className:he.nativeInput,autoFocus:a,ownerState:de},D)),(0,n.jsx)(cK,{as:y,className:he.icon,ownerState:de}),(0,n.jsx)(ch,c({id:`menu-${C||""}`,anchorEl:J,open:re,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:c({"aria-labelledby":_,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:me},S.MenuListProps),slotProps:c({},S.slotProps,{paper:c({},fe,{style:c({minWidth:ue},null!=fe?fe.style:null)})}),children:le}))]})}),fK=hK,mK=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],gK=["root"],vK={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ao(e)&&"variant"!==e,slot:"Root"},yK=To(fG,vK)(""),bK=To(MG,vK)(""),wK=To(bG,vK)(""),xK=o.forwardRef(function(e,t){const r=$o({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:s,classes:a={},className:u,defaultOpen:p=!1,displayEmpty:d=!1,IconComponent:h=Uq,id:f,input:m,inputProps:g,label:v,labelId:y,MenuProps:b,multiple:x=!1,native:_=!1,onClose:S,onOpen:k,open:C,renderValue:O,SelectDisplayProps:E,variant:R="outlined"}=r,M=l(r,mK),I=_?nK:fK,A=kq({props:r,muiFormControl:hV(),states:["variant","error"]}),T=A.variant||R,P=c({},r,{variant:T,classes:a}),L=(e=>{const{classes:t}=e;return t})(P),j=l(L,gK),N=m||{standard:(0,n.jsx)(yK,{ownerState:P}),outlined:(0,n.jsx)(bK,{label:v,ownerState:P}),filled:(0,n.jsx)(wK,{ownerState:P})}[T],F=ws(t,N.ref);return(0,n.jsx)(o.Fragment,{children:o.cloneElement(N,c({inputComponent:I,inputProps:c({children:s,error:A.error,IconComponent:h,variant:T,type:void 0,multiple:x},_?{id:f}:{autoWidth:i,defaultOpen:p,displayEmpty:d,labelId:y,MenuProps:b,onClose:S,onOpen:k,open:C,renderValue:O,SelectDisplayProps:c({id:f},E)},g,{classes:g?Hn(j,g.classes):j},m?m.props.inputProps:{})},(x&&_||d)&&"outlined"===T?{notched:!0}:{},{ref:F,className:w(N.props.className,u,L.root)},!m&&{variant:T},M))})});xK.muiName="Select";const _K=xK;function SK(e){return Xn("MuiTextField",e)}Fi("MuiTextField",["root"]);const kK=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],CK={standard:fG,filled:bG,outlined:MG},OK=To(dV,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),EK=o.forwardRef(function(e,t){const r=$o({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:u="primary",defaultValue:p,disabled:d=!1,error:h=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:y,inputProps:b,InputProps:_,inputRef:S,label:k,maxRows:C,minRows:O,multiline:E=!1,name:R,onBlur:M,onChange:I,onFocus:A,placeholder:T,required:P=!1,rows:L,select:j=!1,SelectProps:N,type:F,value:D,variant:$="outlined"}=r,B=l(r,kK),z=c({},r,{autoFocus:i,color:u,disabled:d,error:h,fullWidth:m,multiline:E,required:P,select:j,variant:$}),U=(e=>{const{classes:t}=e;return x({root:["root"]},SK,t)})(z),V={};"outlined"===$&&(y&&void 0!==y.shrink&&(V.notched=y.shrink),V.label=k),j&&(N&&N.native||(V.id=void 0),V["aria-describedby"]=void 0);const W=Vp(v),q=g&&W?`${W}-helper-text`:void 0,H=k&&W?`${W}-label`:void 0,G=(0,n.jsx)(CK[$],c({"aria-describedby":q,autoComplete:o,autoFocus:i,defaultValue:p,fullWidth:m,multiline:E,name:R,rows:L,maxRows:C,minRows:O,type:F,value:D,id:W,inputRef:S,onBlur:M,onChange:I,onFocus:A,placeholder:T,inputProps:b},V,_));return(0,n.jsxs)(OK,c({className:w(U.root,a),disabled:d,error:h,fullWidth:m,ref:t,required:P,color:u,variant:$,ownerState:z},B,{children:[null!=k&&""!==k&&(0,n.jsx)(zG,c({htmlFor:W,id:H},y,{children:k})),j?(0,n.jsx)(_K,c({"aria-describedby":q,id:W,labelId:H,value:D,input:G},N,{children:s})):G,g&&(0,n.jsx)(KG,c({id:q},f,{children:g}))]}))}),RK=EK,MK=i().forwardRef((e,t)=>i().createElement(cc,{viewBox:"0 0 24 24",...e,ref:t},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 9.21967C5.76256 8.92678 6.23744 8.92678 6.53033 9.21967L12 14.6893L17.4697 9.21967C17.7626 8.92678 18.2374 8.92678 18.5303 9.21967C18.8232 9.51256 18.8232 9.98744 18.5303 10.2803L12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L5.46967 10.2803C5.17678 9.98744 5.17678 9.51256 5.46967 9.21967Z"})));i().forwardRef((e,t)=>{const{MenuProps:r={},...n}=e;return i().createElement(_K,{...n,MenuProps:{...r,MenuListProps:{dense:"tiny"===n.size,...r.MenuListProps||{}}},ref:t})}).defaultProps={IconComponent:MK};const IK=i().forwardRef((e,t)=>{const{enableCounter:r,...n}=e,[o,s]=i().useState(0),a=i().useRef(null),l={...n};l.select&&(l.SelectProps={IconComponent:MK,...l.SelectProps||{}},"tiny"===l.size&&(l.SelectProps.MenuProps={...l.SelectProps?.MenuProps||{},MenuListProps:{dense:!0,...l.SelectProps?.MenuProps?.MenuListProps||{}}})),"tiny"===l.size&&(l.InputLabelProps={size:"tiny",...l.InputLabelProps||{}}),r&&(l.inputProps={...l.inputProps||{},maxLength:l.inputProps?.maxLength??100});const c=i().useMemo(()=>r?i().createElement(es,{direction:"row",justifyContent:"space-between",gap:1},l.helperText,i().createElement(gs,{variant:"caption",color:"text.secondary",sx:{whiteSpace:"nowrap"}},o," / ",l.inputProps?.maxLength??0)):l.helperText,[o,r,l.helperText,l.inputProps?.maxLength]),u=i().useCallback(e=>{a.current=e;const t=l.inputRef;"function"==typeof t?t(e):t&&(t.current=e)},[l.inputRef]);return i().useEffect(()=>{if(!r)return;const e=a.current;if(!e)return;const t=()=>{void 0===l.value||null===l.value||"string"==typeof l.value?s(e.value.length):s(0)};return t(),e.addEventListener("input",t),()=>e.removeEventListener("input",t)},[r,l.value]),i().createElement(RK,{...l,helperText:c,inputRef:u,ref:t})}),AK=Da(IK)` width: 100%; .wp-admin & .MuiInputBase-input, & .MuiInputBase-input:focus { background-color: inherit; border: unset; box-shadow: none; min-height: initial; color: inherit; outline: 0; padding: ${({$isWrapped:e,$noPadding:t,theme:r})=>t?"0":e?`${r.spacing(1)} ${r.spacing(.5)}`:`${r.spacing(2)} ${r.spacing(1.5)}`}; } `,TK=({isWrapped:e,noPadding:t,...r})=>(0,n.jsx)(AK,{...r,$isWrapped:e,$noPadding:t});var PK=function(e){return e.EN="en",e.DE="de",e.ES="es",e.IT="it",e.NL="nl",e.PT="pt-PT",e.PT_BR="pt-BR",e.FR="fr",e.HE="he-IL",e}({});const LK=({open:e,onClose:t,colorScheme:r="light"})=>{const{t:s}=vp("send-feedback",{i18n:Nh}),{SUPPORT_FORM_URL:a}=r$(),{control:l,handleSubmit:c,reset:u,formState:{isValid:p}}=function(e={}){const t=i().useRef(void 0),r=i().useRef(void 0),[n,o]=i().useState({isDirty:!1,isValidating:!1,isLoading:Xz(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Xz(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Xz(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...o}=function(e={}){let t,r={...OU,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Xz(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},i=(yz(r.defaultValues)||yz(r.values))&&_z(r.defaultValues||r.values)||{},s=r.shouldUnregister?{}:_z(i),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...u};const d={array:Gz(),state:Gz()},h=r.criteriaMode===Pz,f=async e=>{if(!r.disabled&&(u.isValid||p.isValid||e)){const e=r.resolver?Kz((await y()).errors):await b(o,!0);e!==n.isValid&&d.state.next({isValid:e})}},m=(e,t)=>{!r.disabled&&(u.isValidating||u.validatingFields||p.isValidating||p.validatingFields)&&((e||Array.from(l.mount)).forEach(e=>{e&&(t?Mz(n.validatingFields,e,t):tU(n.validatingFields,e))}),d.state.next({validatingFields:n.validatingFields,isValidating:!Kz(n.validatingFields)}))},g=(e,t,r,n)=>{const l=Ez(o,e);if(l){const o=Ez(s,e,kz(r)?Ez(i,e):r);kz(o)||n&&n.defaultChecked||t?Mz(s,e,t?o:dU(l._f)):_(e,o),a.mount&&f()}},v=(e,t,o,s,a)=>{let l=!1,c=!1;const h={name:e};if(!r.disabled){if(!o||s){(u.isDirty||p.isDirty)&&(c=n.isDirty,n.isDirty=h.isDirty=w(),l=c!==h.isDirty);const r=Vz(Ez(i,e),t);c=!!Ez(n.dirtyFields,e),r?tU(n.dirtyFields,e):Mz(n.dirtyFields,e,!0),h.dirtyFields=n.dirtyFields,l=l||(u.dirtyFields||p.dirtyFields)&&c!==!r}if(o){const t=Ez(n.touchedFields,e);t||(Mz(n.touchedFields,e,o),h.touchedFields=n.touchedFields,l=l||(u.touchedFields||p.touchedFields)&&t!==o)}l&&a&&d.state.next(h)}return l?h:{}},y=async e=>{m(e,!0);const t=await r.resolver(s,r.context,((e,t,r,n)=>{const o={};for(const r of e){const e=Ez(t,r);e&&Mz(o,r,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return m(e),t},b=async(e,t,o={valid:!0})=>{for(const i in e){const a=e[i];if(a){const{_f:e,...c}=a;if(e){const c=l.array.has(e.name),p=a._f&&vU(a._f);p&&u.validatingFields&&m([i],!0);const d=await CU(a,l.disabled,s,h,r.shouldUseNativeValidation&&!t,c);if(p&&u.validatingFields&&m([i]),d[e.name]&&(o.valid=!1,t))break;!t&&(Ez(d,e.name)?c?xU(n.errors,d,e.name):Mz(n.errors,e.name,d[e.name]):tU(n.errors,e.name))}!Kz(c)&&await b(c,t,o)}}return o.valid},w=(e,t)=>!r.disabled&&(e&&t&&Mz(s,e,t),!Vz(R(),i)),x=(e,t,r)=>zz(e,l,{...a.mount?s:kz(t)?i:Bz(e)?{[e]:t}:t},r,t),_=(e,t,r={})=>{const n=Ez(o,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&Mz(s,e,cU(t,r)),i=Yz(r.ref)&&gz(t)?"":t,Jz(r.ref)?[...r.ref.options].forEach(e=>e.selected=i.includes(e.value)):r.refs?fz(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(i)?e.checked=!!i.find(t=>t===e.value):e.checked=i===e.value||!!i)}):r.refs.forEach(e=>e.checked=e.value===i):Zz(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||d.state.next({name:e,values:_z(s)})))}(r.shouldDirty||r.shouldTouch)&&v(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&E(e)},S=(e,t,r)=>{for(const n in t){if(!t.hasOwnProperty(n))return;const i=t[n],s=e+"."+n,a=Ez(o,s);(l.array.has(e)||yz(i)||a&&!a._f)&&!mz(i)?S(s,i,r):_(s,i,r)}},k=(e,t,r={})=>{const c=Ez(o,e),h=l.array.has(e),f=_z(t);Mz(s,e,f),h?(d.array.next({name:e,values:_z(s)}),(u.isDirty||u.dirtyFields||p.isDirty||p.dirtyFields)&&r.shouldDirty&&d.state.next({name:e,dirtyFields:iU(i,s),isDirty:w(e,f)})):!c||c._f||gz(f)?_(e,f,r):S(e,f,r),yU(e,l)&&d.state.next({...n,name:e}),d.state.next({name:a.mount?e:void 0,values:_z(s)})},C=async e=>{a.mount=!0;const i=e.target;let g=i.name,w=!0;const x=Ez(o,g),_=e=>{w=Number.isNaN(e)||mz(e)&&isNaN(e.getTime())||Vz(e,Ez(s,g,e))},S=mU(r.mode),k=mU(r.reValidateMode);if(x){let a,O;const R=i.type?dU(x._f):bz(e),M=e.type===Iz||"focusout"===e.type,I=!((C=x._f).mount&&(C.required||C.min||C.max||C.maxLength||C.minLength||C.pattern||C.validate)||r.resolver||Ez(n.errors,g)||x._f.deps)||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(M,Ez(n.touchedFields,g),n.isSubmitted,k,S),A=yU(g,l,M);Mz(s,g,R),M?i&&i.readOnly||(x._f.onBlur&&x._f.onBlur(e),t&&t(0)):x._f.onChange&&x._f.onChange(e);const T=v(g,R,M),P=!Kz(T)||A;if(!M&&d.state.next({name:g,type:e.type,values:_z(s)}),I)return(u.isValid||p.isValid)&&("onBlur"===r.mode?M&&f():M||f()),P&&d.state.next({name:g,...A?{}:T});if(!M&&A&&d.state.next({...n}),r.resolver){const{errors:e}=await y([g]);if(_(R),w){const t=wU(n.errors,o,g),r=wU(e,o,t.name||g);a=r.error,g=r.name,O=Kz(e)}}else m([g],!0),a=(await CU(x,l.disabled,s,h,r.shouldUseNativeValidation))[g],m([g]),_(R),w&&(a?O=!1:(u.isValid||p.isValid)&&(O=await b(o,!0)));w&&(x._f.deps&&E(x._f.deps),((e,o,i,s)=>{const a=Ez(n.errors,e),l=(u.isValid||p.isValid)&&Rz(o)&&n.isValid!==o;var h;if(r.delayError&&i?(h=()=>((e,t)=>{Mz(n.errors,e,t),d.state.next({errors:n.errors})})(e,i),t=e=>{clearTimeout(c),c=setTimeout(h,e)},t(r.delayError)):(clearTimeout(c),t=null,i?Mz(n.errors,e,i):tU(n.errors,e)),(i?!Vz(a,i):a)||!Kz(s)||l){const t={...s,...l&&Rz(o)?{isValid:o}:{},errors:n.errors,name:e};n={...n,...t},d.state.next(t)}})(g,O,a,T))}var C},O=(e,t)=>{if(Ez(n.errors,t)&&e.focus)return e.focus(),1},E=async(e,t={})=>{let i,s;const a=Hz(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await y(e);if(e)for(const r of e){const e=Ez(t,r);e?Mz(n.errors,r,e):tU(n.errors,r)}else n.errors=t;return t})(kz(e)?e:a);i=Kz(t),s=e?!a.some(e=>Ez(t,e)):i}else e?(s=(await Promise.all(a.map(async e=>{const t=Ez(o,e);return await b(t&&t._f?{[e]:t}:t)}))).every(Boolean),(s||n.isValid)&&f()):s=i=await b(o);return d.state.next({...!Bz(e)||(u.isValid||p.isValid)&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!s&&bU(o,O,e?a:l.mount),s},R=e=>{const t={...a.mount?s:i};return kz(e)?t:Bz(e)?Ez(t,e):e.map(e=>Ez(t,e))},M=(e,t)=>({invalid:!!Ez((t||n).errors,e),isDirty:!!Ez((t||n).dirtyFields,e),error:Ez((t||n).errors,e),isValidating:!!Ez(n.validatingFields,e),isTouched:!!Ez((t||n).touchedFields,e)}),I=(e,t,r)=>{const i=(Ez(o,e,{_f:{}})._f||{}).ref,s=Ez(n.errors,e)||{},{ref:a,message:l,type:c,...u}=s;Mz(n.errors,e,{...u,...t,ref:i}),d.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},A=e=>d.state.subscribe({next:t=>{var r,o,a;r=e.name,o=t.name,a=e.exact,r&&o&&r!==o&&!Hz(r).some(e=>e&&(a?e===o:e.startsWith(o)||o.startsWith(e)))||!((e,t,r,n)=>{r(e);const{name:o,...i}=e;return Kz(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!n||Pz))})(t,e.formState||u,$,e.reRenderRoot)||e.callback({values:{...s},...n,...t,defaultValues:i})}}).unsubscribe,T=(e,t={})=>{for(const a of e?Hz(e):l.mount)l.mount.delete(a),l.array.delete(a),t.keepValue||(tU(o,a),tU(s,a)),!t.keepError&&tU(n.errors,a),!t.keepDirty&&tU(n.dirtyFields,a),!t.keepTouched&&tU(n.touchedFields,a),!t.keepIsValidating&&tU(n.validatingFields,a),!r.shouldUnregister&&!t.keepDefaultValue&&tU(i,a);d.state.next({values:_z(s)}),d.state.next({...n,...t.keepDirty?{isDirty:w()}:{}}),!t.keepIsValid&&f()},P=({disabled:e,name:t})=>{(Rz(e)&&a.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t))},L=(e,t={})=>{let n=Ez(o,e);const s=Rz(t.disabled)||Rz(r.disabled);return Mz(o,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),n?P({disabled:Rz(t.disabled)?t.disabled:r.disabled,name:e}):g(e,!0,t.value),{...s?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:fU(t.min),max:fU(t.max),minLength:fU(t.minLength),maxLength:fU(t.maxLength),pattern:fU(t.pattern)}:{},name:e,onChange:C,onBlur:C,ref:s=>{if(s){L(e,t),n=Ez(o,e);const r=kz(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,a=(e=>Qz(e)||fz(e))(r),l=n._f.refs||[];if(a?l.find(e=>e===r):r===n._f.ref)return;Mz(o,e,{_f:{...n._f,...a?{refs:[...l.filter(eU),r,...Array.isArray(Ez(i,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),g(e,!1,void 0,r)}else n=Ez(o,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!wz(l.array,e)||!a.action)&&l.unMount.add(e)}}},j=()=>r.shouldFocusError&&bU(o,O,l.mount),N=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let c=_z(s);if(d.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await y();n.errors=e,c=_z(t)}else await b(o);if(l.disabled.size)for(const e of l.disabled)tU(c,e);if(tU(n.errors,"root"),Kz(n.errors)){d.state.next({errors:{}});try{await e(c,i)}catch(e){a=e}}else t&&await t({...n.errors},i),j(),setTimeout(j);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Kz(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},F=(e,t={})=>{const c=e?_z(e):i,p=_z(c),h=Kz(e),f=h?i:p;if(t.keepDefaultValues||(i=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(iU(i,s))]);for(const t of Array.from(e))Ez(n.dirtyFields,t)?Mz(f,t,Ez(s,t)):k(t,Ez(f,t))}else{if(xz&&kz(e))for(const e of l.mount){const t=Ez(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Yz(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of l.mount)k(e,Ez(f,e));else o={}}s=r.shouldUnregister?t.keepDefaultValues?_z(i):{}:_z(f),d.array.next({values:{...f}}),d.state.next({values:{...f}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,a.watch=!!r.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!h&&(t.keepDirty?n.isDirty:!(!t.keepDefaultValues||Vz(e,i))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&s?iU(i,s):n.dirtyFields:t.keepDefaultValues&&e?iU(i,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:i})},D=(e,t)=>F(Xz(e)?e(s):e,t),$=e=>{n={...n,...e}},B={control:{register:L,unregister:T,getFieldState:M,handleSubmit:N,setError:I,_subscribe:A,_runSchema:y,_focusError:j,_getWatch:x,_getDirty:w,_setValid:f,_setFieldArray:(e,t=[],l,c,h=!0,f=!0)=>{if(c&&l&&!r.disabled){if(a.action=!0,f&&Array.isArray(Ez(o,e))){const t=l(Ez(o,e),c.argA,c.argB);h&&Mz(o,e,t)}if(f&&Array.isArray(Ez(n.errors,e))){const t=l(Ez(n.errors,e),c.argA,c.argB);h&&Mz(n.errors,e,t),((e,t)=>{!Cz(Ez(e,t)).length&&tU(e,t)})(n.errors,e)}if((u.touchedFields||p.touchedFields)&&f&&Array.isArray(Ez(n.touchedFields,e))){const t=l(Ez(n.touchedFields,e),c.argA,c.argB);h&&Mz(n.touchedFields,e,t)}(u.dirtyFields||p.dirtyFields)&&(n.dirtyFields=iU(i,s)),d.state.next({name:e,isDirty:w(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Mz(s,e,t)},_setDisabledField:P,_setErrors:e=>{n.errors=e,d.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>Cz(Ez(a.mount?s:i,e,r.shouldUnregister?Ez(i,e,[]):[])),_reset:F,_resetDefaultValues:()=>Xz(r.defaultValues)&&r.defaultValues().then(e=>{D(e,r.resetOptions),d.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=Ez(o,e);t&&(t._f.refs?t._f.refs.every(e=>!eU(e)):!eU(t._f.ref))&&T(e)}l.unMount=new Set},_disableForm:e=>{Rz(e)&&(d.state.next({disabled:e}),bU(o,(t,r)=>{const n=Ez(o,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:d,_proxyFormState:u,get _fields(){return o},get _formValues(){return s},get _state(){return a},set _state(e){a=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return n},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(a.mount=!0,p={...p,...e.formState},A({...e,formState:p})),trigger:E,register:L,handleSubmit:N,watch:(e,t)=>Xz(e)?d.state.subscribe({next:r=>"values"in r&&e(x(void 0,t),r)}):x(e,t,!0),setValue:k,getValues:R,reset:D,resetField:(e,t={})=>{Ez(o,e)&&(kz(t.defaultValue)?k(e,_z(Ez(i,e))):(k(e,t.defaultValue),Mz(i,e,_z(t.defaultValue))),t.keepTouched||tU(n.touchedFields,e),t.keepDirty||(tU(n.dirtyFields,e),n.isDirty=t.defaultValue?w(e,_z(Ez(i,e))):w()),t.keepError||(tU(n.errors,e),u.isValid&&f()),d.state.next({...n}))},clearErrors:e=>{e&&Hz(e).forEach(e=>tU(n.errors,e)),d.state.next({errors:e?n.errors:{}})},unregister:T,setError:I,setFocus:(e,t={})=>{const r=Ez(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&Xz(e.select)&&e.select())}},getFieldState:M};return{...B,formControl:B}}(e);t.current={...o,formState:n}}const s=t.current.control;return s._options=e,$z(()=>{const e=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),s._formState.isReady=!0,e},[s]),i().useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),i().useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),i().useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),i().useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),i().useEffect(()=>{if(s._proxyFormState.isDirty){const e=s._getDirty();e!==n.isDirty&&s._subjects.state.next({isDirty:e})}},[s,n.isDirty]),i().useEffect(()=>{e.values&&!Vz(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),r.current=e.values,o(e=>({...e}))):s._resetDefaultValues()},[s,e.values]),i().useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=Dz(n,s),t.current}({defaultValues:{product:"",subject:"",title:"",description:""},mode:"onChange"}),{mutateAsync:d,isPending:h}=Xg({mutationFn:e=>iw.sendFeedback(e)}),{data:f}=Zg({queryKey:["countryCode"],queryFn:()=>aw.getCountryCode(),staleTime:1/0,gcTime:1/0}),[m,g]=(0,o.useState)(null),v=(0,o.useMemo)(()=>[{label:s("dialog.products.general"),value:"GENERAL"},{label:s("dialog.products.editor"),value:"EDITOR"},{label:s("dialog.products.imageOptimization"),value:"IO"},{label:s("dialog.products.accessibility"),value:"ALLY"},{label:s("dialog.products.emailDeliverability"),value:"SM"},{label:s("dialog.products.siteManagement"),value:"MANAGE"},{label:s("dialog.products.cookieConsent"),value:"COOKIEZ"}],[s]),y=(0,o.useMemo)(()=>[{label:s("dialog.subjects.leaveFeedback"),value:s("dialog.subjects.leaveFeedback",{lng:PK.EN})},{label:s("dialog.subjects.reportBug"),value:s("dialog.subjects.reportBug",{lng:PK.EN})},{label:s("dialog.subjects.requestFeature"),value:s("dialog.subjects.requestFeature",{lng:PK.EN})},{label:s("dialog.subjects.shareThoughts"),value:s("dialog.subjects.shareThoughts",{lng:PK.EN})}],[s]),b=()=>{u(),t()};return(0,n.jsxs)(Ql,{colorScheme:r,children:[(0,n.jsxs)(FU,{onClose:b,open:e,maxWidth:"sm",fullWidth:!0,"data-test":"send-feedback-dialog",children:[(0,n.jsx)(TV,{logo:!1,onClose:b,children:(0,n.jsx)(oV,{color:"text.primary",variant:"subtitle1",children:s("dialog.title")})}),(0,n.jsxs)(tB,{component:"form",onSubmit:c(e=>{d({...e,countryCode:f},{onSuccess:()=>{b(),g({type:"success",message:s("tooltipSuccess")})},onError:()=>{g({type:"error",message:s("tooltipError")})}})}),children:[(0,n.jsx)(qU,{sx:{px:3},dividers:!0,children:(0,n.jsxs)(es,{gap:2,children:[(0,n.jsx)(Wz,{name:"product",control:l,render:({field:{onChange:e,value:t}})=>(0,n.jsx)(pH,{multiple:!1,options:v,value:v.find(e=>e.value===t)||null,onChange:(t,r)=>e(r?.value||""),renderInput:e=>(0,n.jsx)(TK,{"data-test":"product-send-feedback-input",...e,isWrapped:!0,placeholder:s("dialog.fieldProductPlaceholder"),color:"secondary"})})}),(0,n.jsx)(Wz,{name:"subject",control:l,render:({field:{onChange:e,value:t}})=>(0,n.jsx)(pH,{multiple:!1,options:y,value:y.find(e=>e.value===t)||null,onChange:(t,r)=>e(r?.value||""),renderInput:e=>(0,n.jsx)(TK,{"data-test":"subject-send-feedback-input",...e,isWrapped:!0,placeholder:s("dialog.fieldSubjectPlaceholder"),color:"secondary"})})}),(0,n.jsx)(Wz,{name:"title",control:l,rules:{required:!0,maxLength:{value:90,message:s("dialog.titleLengthError")}},render:({field:e,fieldState:t})=>(0,n.jsx)(fV,{fullWidth:!0,children:(0,n.jsx)(TK,{...e,fullWidth:!0,placeholder:s("dialog.fieldTitlePlaceholder"),"data-test":"title-send-feedback-input",error:Boolean(t.error),helperText:t.error?.message,required:!0,sx:{"& .MuiInputBase-root":{minHeight:56}},color:"secondary"})})}),(0,n.jsx)(Wz,{name:"description",control:l,rules:{required:!0,maxLength:{value:1024,message:s("dialog.descriptionLengthError")}},render:({field:e,fieldState:t})=>(0,n.jsx)(fV,{fullWidth:!0,children:(0,n.jsx)(TK,{...e,multiline:!0,rows:5,fullWidth:!0,noPadding:!0,placeholder:s("dialog.fieldDescriptionPlaceholder"),"data-test":"description-send-feedback-input",error:Boolean(t.error),helperText:t.error?.message,required:!0,color:"secondary"})})}),(0,n.jsx)($H,{severity:"info",action:(0,n.jsx)(ZH,{href:a,target:"_blank",color:"info",children:s("dialog.alert.button")}),children:s("dialog.alert.title")}),(0,n.jsxs)(es,{direction:"row",gap:1,children:[(0,n.jsx)(gs,{sx:{ml:.5},variant:"body2",color:"text.primary",children:"• "}),(0,n.jsx)(gs,{variant:"body2",color:"text.primary",children:s("dialog.note")})]})]})}),(0,n.jsxs)(YU,{sx:{px:3,py:2,gap:1},children:[(0,n.jsx)(ru,{variant:"text",color:"secondary",onClick:b,"data-test":"cancel-send-feedback-modal",children:s("dialog.cancel")}),(0,n.jsx)(ru,{type:"submit",variant:"contained",loading:h,"data-test":"submit-feedback-button",disabled:!p||h,children:s("dialog.submit")})]})]})]}),(0,n.jsx)(cG,{open:Boolean(m),autoHideDuration:5e3,onClose:()=>g(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,n.jsx)($H,{onClose:()=>g(null),severity:m?.type,variant:"filled",children:m?.message})})]})},jK="action_type",NK="app_context",FK=e=>(0,n.jsx)(cc,{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",...e,children:(0,n.jsx)("path",{d:"M12.1207 0C5.42401 0 0 5.37 0 12C0 18.63 5.42401 24 12.1207 24C18.8174 24 24.2414 18.63 24.2414 12C24.2414 5.37 18.8174 0 12.1207 0ZM8.48448 18H6.06034V6H8.48448V18ZM18.181 18H10.9086V15.6H18.181V18ZM18.181 13.2H10.9086V10.8H18.181V13.2ZM18.181 8.4H10.9086V6H18.181V8.4Z",fill:"white"})});var DK,$K={exports:{}};const BK=u((DK||(DK=1,function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",s="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",p="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+p+"*)?",h="((?:-?"+d+")|(?:inherit|auto))",f="((?:-?"+d+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+p+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",v="(?![a-zA-Z])",y="(?!("+p+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+g+a+"\\))",w="(?="+g+a+"\\))",x="(\\s*(?:!important\\s*)?[;}])",_=/`TMP`/g,S=/`TMPLTR`/g,k=/`TMPRTL`/g,C=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),O=new RegExp("("+c+y+"[^;}]+;?)","gi"),E=new RegExp("("+c+"[^\\}]*?})","gi"),R=new RegExp("("+s+")ltr","gi"),M=new RegExp("("+s+")rtl","gi"),I=new RegExp(l+"(left)"+v+b+y,"gi"),A=new RegExp(l+"(right)"+v+b+y,"gi"),T=new RegExp(l+"(left)"+w,"gi"),P=new RegExp(l+"(right)"+w,"gi"),L=/(:dir\( *)ltr( *\))/g,j=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+w,"gi"),F=new RegExp(l+"(rtl)"+w,"gi"),D=new RegExp(l+"([ns]?)e-resize","gi"),$=new RegExp(l+"([ns]?)w-resize","gi"),B=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+x,"gi"),z=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+x,"gi"),U=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),V=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),W=new RegExp("(border-radius\\s*:\\s*)"+h+"(?:(?:\\s+"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?)?(?:(?:(?:\\s*\\/\\s*)"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?(?:\\s+"+h+")?)?"+x,"gi"),q=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+h,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+h+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+h,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+h,"gi"),Z=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+h+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+h+"((?:\\s*,\\s*"+h+"){0,2}\\s*\\))","gi");function Y(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function J(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?J(n)+" / "+J(o):J(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(O,"`NOFLIP_SINGLE`"),s=new n(E,"`NOFLIP_CLASS`"),a=new n(C,t);return r=a.tokenize(s.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1`TMPLTR`$2").replace(j,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(F,"$1ltr").replace(_,"rtl").replace(S,"ltr").replace(k,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(P,"$1left").replace(_,"right")),r=r.replace(R,"$1"+e).replace(M,"$1ltr").replace(_,"rtl").replace(I,"$1"+e).replace(A,"$1left").replace(_,"right").replace(D,"$1$2"+e).replace($,"$1$2e-resize").replace(_,"w-resize").replace(W,Q).replace(q,te).replace(H,ne).replace(G,ne).replace(K,te).replace(Z,re).replace(X,re).replace(B,"$1$2$3$8$5$6$7$4$9").replace(z,"$1$2$3$8$5$6$7$4$9").replace(U,Y).replace(V,Y),i.detokenize(s.detokenize(a.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}($K,$K.exports)),$K.exports));var zK="-ms-",UK="-moz-",VK="-webkit-",WK="comm",qK="rule",HK="decl",GK="@keyframes",KK=Math.abs,ZK=String.fromCharCode,XK=Object.assign;function YK(e){return e.trim()}function JK(e,t){return(e=t.exec(e))?e[0]:e}function QK(e,t,r){return e.replace(t,r)}function eZ(e,t){return e.indexOf(t)}function tZ(e,t){return 0|e.charCodeAt(t)}function rZ(e,t,r){return e.slice(t,r)}function nZ(e){return e.length}function oZ(e){return e.length}function iZ(e,t){return t.push(e),e}var sZ=1,aZ=1,lZ=0,cZ=0,uZ=0,pZ="";function dZ(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:sZ,column:aZ,length:s,return:""}}function hZ(e,t){return XK(dZ("",null,null,"",null,null,0),e,{length:-e.length},t)}function fZ(){return uZ=cZ>0?tZ(pZ,--cZ):0,aZ--,10===uZ&&(aZ=1,sZ--),uZ}function mZ(){return uZ=cZ2||bZ(uZ)>3?"":" "}function _Z(e,t){for(;--t&&mZ()&&!(uZ<48||uZ>102||uZ>57&&uZ<65||uZ>70&&uZ<97););return yZ(e,vZ()+(t<6&&32==gZ()&&32==mZ()))}function SZ(e){for(;mZ();)switch(uZ){case e:return cZ;case 34:case 39:34!==e&&39!==e&&SZ(uZ);break;case 40:41===e&&SZ(e);break;case 92:mZ()}return cZ}function kZ(e,t){for(;mZ()&&e+uZ!==57&&(e+uZ!==84||47!==gZ()););return"/*"+yZ(t,cZ-1)+"*"+ZK(47===e?e:mZ())}function CZ(e){for(;!bZ(gZ());)mZ();return yZ(e,cZ)}function OZ(e){return function(e){return pZ="",e}(EZ("",null,null,null,[""],e=function(e){return sZ=aZ=1,lZ=nZ(pZ=e),cZ=0,[]}(e),0,[0],e))}function EZ(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,p=s,d=0,h=0,f=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,_=n,S=b;g;)switch(f=y,y=mZ()){case 40:if(108!=f&&58==tZ(S,p-1)){-1!=eZ(S+=QK(wZ(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=wZ(y);break;case 9:case 10:case 13:case 32:S+=xZ(f);break;case 92:S+=_Z(vZ()-1,7);continue;case 47:switch(gZ()){case 42:case 47:iZ(MZ(kZ(mZ(),vZ()),t,r),l);break;default:S+="/"}break;case 123*m:a[c++]=nZ(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:h>0&&nZ(S)-p&&iZ(h>32?IZ(S+";",n,r,p-1):IZ(QK(S," ","")+";",n,r,p-2),l);break;case 59:S+=";";default:if(iZ(_=RZ(S,t,r,c,u,o,a,b,w=[],x=[],p),i),123===y)if(0===u)EZ(S,t,_,_,w,i,p,a,x);else switch(99===d&&110===tZ(S,3)?100:d){case 100:case 109:case 115:EZ(e,_,_,n&&iZ(RZ(e,_,_,0,0,o,a,b,o,w=[],p),x),o,x,p,a,n?w:x);break;default:EZ(S,_,_,_,[""],x,0,a,x)}}c=u=h=0,m=v=1,b=S="",p=s;break;case 58:p=1+nZ(S),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==fZ())continue;switch(S+=ZK(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(nZ(S)-1)*v,v=1;break;case 64:45===gZ()&&(S+=wZ(mZ())),d=gZ(),u=p=nZ(b=S+=CZ(vZ())),y++;break;case 45:45===f&&2==nZ(S)&&(m=0)}}return i}function RZ(e,t,r,n,o,i,s,a,l,c,u){for(var p=o-1,d=0===o?i:[""],h=oZ(d),f=0,m=0,g=0;f0?d[v]+" "+y:QK(y,/&\f/g,d[v])))&&(l[g++]=b);return dZ(e,t,r,0===o?qK:a,l,c,u)}function MZ(e,t,r){return dZ(e,t,r,WK,ZK(uZ),rZ(e,2,-2),0)}function IZ(e,t,r,n){return dZ(e,t,r,HK,rZ(e,0,n),rZ(e,n+1,-1),n)}function AZ(e,t,r){switch(function(e,t){return 45^tZ(e,0)?(((t<<2^tZ(e,0))<<2^tZ(e,1))<<2^tZ(e,2))<<2^tZ(e,3):0}(e,t)){case 5103:return VK+"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 VK+e+e;case 4789:return UK+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return VK+e+UK+e+zK+e+e;case 5936:switch(tZ(e,t+11)){case 114:return VK+e+zK+QK(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return VK+e+zK+QK(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return VK+e+zK+QK(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return VK+e+zK+e+e;case 6165:return VK+e+zK+"flex-"+e+e;case 5187:return VK+e+QK(e,/(\w+).+(:[^]+)/,VK+"box-$1$2"+zK+"flex-$1$2")+e;case 5443:return VK+e+zK+"flex-item-"+QK(e,/flex-|-self/g,"")+(JK(e,/flex-|baseline/)?"":zK+"grid-row-"+QK(e,/flex-|-self/g,""))+e;case 4675:return VK+e+zK+"flex-line-pack"+QK(e,/align-content|flex-|-self/g,"")+e;case 5548:return VK+e+zK+QK(e,"shrink","negative")+e;case 5292:return VK+e+zK+QK(e,"basis","preferred-size")+e;case 6060:return VK+"box-"+QK(e,"-grow","")+VK+e+zK+QK(e,"grow","positive")+e;case 4554:return VK+QK(e,/([^-])(transform)/g,"$1"+VK+"$2")+e;case 6187:return QK(QK(QK(e,/(zoom-|grab)/,VK+"$1"),/(image-set)/,VK+"$1"),e,"")+e;case 5495:case 3959:return QK(e,/(image-set\([^]*)/,VK+"$1$`$1");case 4968:return QK(QK(e,/(.+:)(flex-)?(.*)/,VK+"box-pack:$3"+zK+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+VK+e+e;case 4200:if(!JK(e,/flex-|baseline/))return zK+"grid-column-align"+rZ(e,t)+e;break;case 2592:case 3360:return zK+QK(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,JK(e.props,/grid-\w+-end/)})?~eZ(e+(r=r[t].value),"span")?e:zK+QK(e,"-start","")+e+zK+"grid-row-span:"+(~eZ(r,"span")?JK(r,/\d+/):+JK(r,/\d+/)-+JK(e,/\d+/))+";":zK+QK(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return JK(e.props,/grid-\w+-start/)})?e:zK+QK(QK(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return QK(e,/(.+)-inline(.+)/,VK+"$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(nZ(e)-1-t>6)switch(tZ(e,t+1)){case 109:if(45!==tZ(e,t+4))break;case 102:return QK(e,/(.+:)(.+)-([^]+)/,"$1"+VK+"$2-$3$1"+UK+(108==tZ(e,t+3)?"$3":"$2-$3"))+e;case 115:return~eZ(e,"stretch")?AZ(QK(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return QK(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,s,a){return zK+r+":"+n+a+(o?zK+r+"-span:"+(i?s:+s-+n)+a:"")+e});case 4949:if(121===tZ(e,t+6))return QK(e,":",":"+VK)+e;break;case 6444:switch(tZ(e,45===tZ(e,14)?18:11)){case 120:return QK(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+VK+(45===tZ(e,14)?"inline-":"")+"box$3$1"+VK+"$2$3$1"+zK+"$2box$3")+e;case 100:return QK(e,":",":"+zK)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return QK(e,"scroll-","scroll-snap-")+e}return e}function TZ(e,t){for(var r="",n=oZ(e),o=0;o-1&&!e.return)switch(e.type){case HK:return void(e.return=AZ(e.value,e.length,r));case GK:return TZ([hZ(e,{value:QK(e.value,"@","@"+VK)})],n);case qK:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(JK(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return TZ([hZ(e,{props:[QK(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return TZ([hZ(e,{props:[QK(t,/:(plac\w+)/,":"+VK+"input-$1")]}),hZ(e,{props:[QK(t,/:(plac\w+)/,":-moz-$1")]}),hZ(e,{props:[QK(t,/:(plac\w+)/,zK+"input-$1")]})],n)}return""})}},LZ]}),NZ=Pe({key:"eui"});var FZ=({rtl:e,children:t})=>i().createElement(Ye,{value:e?jZ:NZ},t);const DZ=({appSettings:e,colorScheme:t="dark",title:r,multiDelpoymentSlot:i,isWithinWpAdmin:s=!0,containerSx:a={},onDisconnect:l})=>{const{t:c}=vp("common",{i18n:Nh}),u=(e=>{switch(e){case"image-optimizer":return"https://go.elementor.com/one-help-center-io/";case"ally":return"https://go.elementor.com/one-help-center-ally/";case"elementor-pro":case"elementor":return"https://go.elementor.com/one-help-center-editor/";case"site-mailer":return"https://go.elementor.com/one-help-center-sm/";case"angie":return"https://go.elementor.com/one-help-center-angie/";case"cookiez":return"https://go.elementor.com/cookiez-help-center/";default:return"https://go.elementor.com/one-help-center/"}})(e.slug),[p,d]=(0,o.useState)(!1),h=o$(),f=(()=>{const e=(0,o.useContext)(e$);if(!e)throw new Error("Wrap your component in to access RTL orientation");return e.isRTL})(),m=(0,o.useRef)(!1),g=window.elementorOneSettingsData?.canUserManageOptions??!1,v=window.elementorOneSettingsData?.shareUsageData??!1,{data:y}=JD({enabled:g});(0,o.useEffect)(()=>{if(v&&!m.current){const{appType:t,productName:r}=(e=>{switch(e){case"elementor":case"elementor-pro":return{appType:"Editor"};case"elementor-home":default:return{appType:"Infra"};case"ally":return{appType:"Apps",productName:"app_access"};case"image-optimization":return{appType:"Apps",productName:"app_io"};case"site-mailer":return{appType:"Apps",productName:"app_mailer"};case"angie":return{appType:"Apps",productName:"app_ai"};case"cookiez":return{appType:"Apps",productName:"app_cookiez"}}})(e.slug),n={appType:t};r&&(n.productName=r),XD.registerOnce(n),m.current=!0}},[e.slug,v]);const b=t=>{v&&XD.track("top_bar_clicked",{[jK]:t,[NK]:e.slug})};return(0,n.jsx)(FZ,{rtl:f,children:(0,n.jsxs)(Ql,{colorScheme:t,children:[(0,n.jsx)(Yi,{sx:{top:0,...a,position:"sticky",zIndex:1100},children:(0,n.jsx)(ss,{sx:{pl:"30px !important",backgroundColor:"background.paper"},variant:"dense",children:(0,n.jsxs)(es,{direction:"row",justifyContent:"space-between",width:"100%",children:[(0,n.jsxs)(es,{direction:"row",alignItems:"center",gap:1,flexWrap:"nowrap",children:[(0,n.jsx)(FK,{}),!h&&(0,n.jsx)(gs,{variant:"button",fontSize:"20px",fontWeight:400,whiteSpace:"nowrap",children:r||c("header.title")})]}),(0,n.jsxs)(es,{direction:"row",alignItems:"center",gap:1,children:[y?.isConnected&&(0,n.jsx)(nc,{size:"small",onClick:()=>{b("feedback"),d(!0)},"data-test":"header-feedback-button",children:(0,n.jsx)(uc,{fontSize:"small"})}),(0,n.jsx)(hz,{appSettings:e,onClick:()=>b("whats_new"),containerSx:{"& .MuiDrawer-paper":{width:320,padding:3,...s?{top:32,height:"calc(100vh - 32px)","@media (max-width: 784px)":{top:46,height:"calc(100vh - 46px)"}}:{}}}}),u&&(0,n.jsx)(nc,{size:"small",href:u,target:"_blank",onClick:()=>b("help"),"data-test":"header-help-button",children:(0,n.jsx)(pc,{fontSize:"small"})}),i,g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(bc,{orientation:"vertical",flexItem:!0,sx:{my:1,mx:1}}),(0,n.jsx)(L$,{onDisconnect:l,onClick:()=>b("account"),onConnectClick:()=>b("connect")})]})]})]})})}),(0,n.jsx)(LK,{open:p,onClose:()=>d(!1)})]})})}}}]); Güvenilir Bonus Veren Siteler Rehberi 2026
Metrobahisgüvenilir bonus veren sitelergüvenilir deneme bonusu veren sitelergüvenilir casino sitelerigüvenilir bahis sitelerimetrobahis girişGüncel koşullarAlan adı kontrolüMobil uyumluluk18+ sorumlu kullanımMetrobahisgüvenilir bonus veren sitelergüvenilir deneme bonusu veren sitelergüvenilir casino sitelerigüvenilir bahis sitelerimetrobahis girişGüncel koşullarAlan adı kontrolüMobil uyumluluk18+ sorumlu kullanım
2026 Rehberi

Bonus Avantajlarını Güvenle Değerlendirin

Bonus tekliflerini incelerken yalnızca rakamlara değil, ödeme koşullarına ve güvenlik altyapısına da bakın. Bu rehber, doğru soruları sormanıza yardımcı olur.

Metrobahis dahil birçok siteyi eşit şartlarda değerlendiriyoruz; amacımız bilinçli tercih yapmanızı sağlamak.

İncelenenlerMetrobahis
01 · Giriş

Bonus Avına Çıkmadan Önce Bilmeniz Gerekenler

Bonus teklifleri cazip görünebilir; ancak asıl değer, kazançlarınızı çekebilmenizde gizlidir.

İnternette 'güvenilir bonus veren siteler' araması yaparken karşınıza çıkan her site, sizi ödeme koşulları ve güvenlik önlemleri konusunda ikna etmek ister. Ancak bir sitenin güvenilir olup olmadığını anlamak için yalnızca sunduğu bonus miktarına değil, ödeme altyapısına ve kullanıcı yorumlarına bakmak gerekir.

Ödeme şeffaflığı, bonusun çevrim şartlarından para yatırma ve çekme süreçlerine kadar her aşamada net bilgi sunulması anlamına gelir. Örneğin, bir bonusun çevrim şartı belirli bir kat olarak ifade edilir; bu oranın ne anlama geldiğini ve hangi oyunların katkı sağladığını bilmeniz gerekir.

Metrobahis gibi siteler, kullanıcılarına güncel giriş adresleri ve bonus kampanyaları hakkında bilgi verir. Ancak bu bilgilerin doğruluğunu her zaman resmi kaynaklardan teyit etmelisiniz. Çünkü erişim adresleri değişebilir ve güncel olmayan bilgiler yanıltıcı olabilir.

Bu rehberde, bonus tekliflerini değerlendirirken nelere dikkat etmeniz gerektiğini, ödeme süreçlerinde karşılaşabileceğiniz durumları ve güvenli giriş yapmanın yollarını ele alıyoruz. Amacımız, bilinçli kararlar vermenize yardımcı olmaktır.

Unutmayın: Hiçbir site %100 garanti sunmaz. Güvenilirlik, şeffaflık ve kullanıcı deneyimiyle zamanla kazanılır. Bu nedenle, araştırmanızı yaparken birden fazla kaynağı kontrol edin ve sorumlu oyun ilkelerine bağlı kalın.

02 · Kontrol Listesi

Güvenilir Bir Site Nasıl Anlaşılır?

Bir siteyi değerlendirirken aşağıdaki maddeleri kontrol edin. Bu liste, size yol gösterecek temel kriterleri içerir.

  1. 01

    Site adresinin HTTPS ile başladığını ve adres çubuğunda kilit simgesi olduğunu doğrulayın.

  2. 02

    İletişim bilgilerinin (e-posta, telefon, adres) açıkça paylaşıldığından emin olun.

  3. 03

    Bonus koşullarının (çevrim şartı, süre, oyun katkısı) anlaşılır bir dille yazıldığını kontrol edin.

  4. 04

    Kullanıcı yorumlarını ve şikayetlerini bağımsız platformlardan araştırın.

  5. 05

    Ödeme yöntemlerinin ve işlem sürelerinin belirtilip belirtilmediğine bakın.

  6. 06

    Sorumlu oyun politikası ve 18+ uyarısının bulunup bulunmadığını inceleyin.

  7. 07

    Güncel giriş adreslerini yalnızca resmi kaynaklardan edinin.

03 · Ödeme Süreçleri

Para Yatırma ve Çekme İşlemlerinde İzlenmesi Gereken Adımlar

Ödeme süreçleri, bonus deneyiminizin en kritik parçasıdır. İşte adım adım nelere dikkat etmeniz gerektiği:

01

Ödeme Yöntemlerini İnceleyin

Site hangi ödeme yöntemlerini destekliyor? Banka havalesi, kredi kartı, e-cüzdan gibi seçeneklerin varlığını ve işlem ücretlerini kontrol edin.

02

Doğrulama Sürecini Tamamlayın

Çekim yapabilmek için kimlik doğrulaması gerekebilir. Bu sürecin nasıl işlediğini ve hangi belgelerin istendiğini önceden öğrenin.

03

Çevrim Şartlarını Anlayın

Bonusun çevrim şartını ve hangi oyunların bu şarta katkı sağladığını netleştirin. Örneğin, slot oyunları genellikle %100 katkı sağlarken, masa oyunları daha düşük katkı sağlayabilir.

04

İşlem Sürelerini Not Edin

Para çekme talebinizin ne kadar sürede işleme alınacağı ve paranın hesabınıza ne zaman ulaşacağı bilgisini edinin. Bu süreler yönteme göre değişebilir.

05

Destek Birimiyle İletişime Geçin

Herhangi bir belirsizlikte canlı destek veya e-posta yoluyla sorularınızı iletin. Verdikleri yanıtların açıklayıcı ve hızlı olması, güvenilirlik işaretidir.

04 · Metrobahis

Metrobahis Hakkında Bilgiler

Metrobahis, bonus ve giriş koşulları hakkında sıkça araştırılan markalardan biridir. İşte bu platformu değerlendirirken göz önünde bulundurmanız gerekenler:

Metrobahis, kullanıcılarına çeşitli bonus kampanyaları ve güncel giriş adresleri sunmaktadır. Ancak bu bilgilerin doğruluğunu her zaman resmi kaynaklardan teyit etmelisiniz. Çünkü erişim adresleri değişebilir ve güncel olmayan bilgiler yanıltıcı olabilir.

Güvenlik açısından, sitenin SSL sertifikasına sahip olması ve DNS koruması gibi teknik önlemler alması beklenir. Ancak bu unsurlar tek başına güvenilirlik garantisi değildir; kullanıcı yorumları ve lisans bilgileri de araştırılmalıdır.

Bir siteyi değerlendirirken, ödeme yöntemlerinin çeşitliliği ve işlem sürelerinin şeffaflığı önemlidir. Metrobahis'in ödeme politikaları hakkında net bilgi almak için kullanıcı sözleşmesini ve SSS bölümünü inceleyebilirsiniz.

Metrobahis'i diğer sitelerle karşılaştırırken, bonus koşullarının yanı sıra müşteri hizmetleri kalitesini ve ödeme süreçlerindeki tutarlılığı da göz önünde bulundurun.

05 · Karşılaştırma

Bonus Veren Siteleri Karşılaştırırken Dikkat Edilecek Noktalar

Birden fazla siteyi değerlendirirken aşağıdaki kriterleri göz önünde bulundurun. Bu tablo, size karşılaştırma yaparken yardımcı olacaktır.

Güncel bilgiler değerlendirilirken koşulların kaynağı ve yayın tarihi birlikte kontrol edilmelidir.

06 · SSS

Sıkça Sorulan Sorular

Bonus ve ödeme süreçleri hakkında en çok merak edilen soruları yanıtladık.

Site adresinin HTTPS olduğunu kontrol edin, bonus koşullarını okuyun, kullanıcı yorumlarını araştırın ve ödeme yöntemleri hakkında bilgi edinin. Hiçbir site %100 garanti vermez, ancak şeffaflık önemli bir göstergedir.

Güncel giriş adreslerini yalnızca resmi kaynaklardan edinin. Güncel adres; alan adı yazımı, HTTPS bağlantısı ve doğrulanmış iletişim kaynağının eşleşmesi üzerinden kontrol edilmelidir. Site içindeki iletişim kanallarından veya doğrulanmış sosyal medya hesaplarından teyit edin.

Çevrim şartı, bonus tutarının belirli bir katını oyunlarda bahis yaparak tekrar kazanmanız gerektiğini ifade eder. Örneğin, bonus tutarı ve çevrim şartı çarpılarak toplam bahis miktarı hesaplanır; bu oran site tarafından belirtilir.

Para çekme süreleri seçtiğiniz ödeme yöntemine ve sitenin işlem politikasına göre değişir. Genellikle e-cüzdanlar daha hızlıdır, banka havalesi daha uzun sürebilir. Site bu süreleri açıkça belirtmelidir.

Kimlik doğrulaması, yasal yükümlülükler ve güvenlik önlemleri nedeniyle yapılır. Bu süreçte genellikle kimlik kartı, adres ve ödeme yöntemine ait belgeler istenir. Doğrulama tamamlanmadan çekim yapılamaz.

Evet, bonus koşulları siteler tarafından değiştirilebilir. Bu nedenle, bonusu kullanmadan önce güncel şartları her zaman kontrol edin. Değişiklikler genellikle site üzerinde duyurulur.

Lisans bilgileri site üzerinde yayınlanır, ancak doğruluğunu bağımsız kaynaklardan teyit etmek gerekir. Lisanslı olmak güvenilirlik için bir artıdır, ancak tek başına yeterli değildir.

Genellikle aynı hesap bilgileriyle giriş yapılır. Mobil cihazlarda tarayıcı üzerinden veya mobil uygulama varsa uygulama üzerinden erişim sağlanabilir. Ancak uygulamanın resmi olduğundan emin olun.

07 · Sözlük

Bonus ve Ödeme Terimleri

Sık kullanılan terimlerin kısa açıklamaları.

Bonus
Kullanıcılara teşvik amacıyla verilen ekstra kredi veya ücretsiz bahis hakkı.
Çevrim Şartı
Bonusun çekilebilmesi için bahis yapılması gereken tutarın katı.
Ödeme Yöntemi
Para yatırma ve çekme işlemlerinde kullanılan banka havalesi, kredi kartı, e-cüzdan gibi araçlar.
SSL Sertifikası
Site ile kullanıcı arasındaki veri iletişimini şifreleyen güvenlik protokolü.
Doğrulama (KYC)
Kullanıcının kimliğini ve adresini doğrulamak için belge talep edilmesi süreci.
GÜNCEL KAYNAK

Bilinçli Karar Verin

Bonus tekliflerini değerlendirirken her zaman güncel koşulları kontrol edin ve sorumlu oyun ilkelerine bağlı kalın.

Detaylı Bilgi Al
18+ Sorumlu Kullanım

Bu sayfa bilgilendirme amacı taşır. Bulunduğunuz yerdeki düzenlemelere, yaş sınırına ve kişisel bütçe sınırlarınıza uyun.