h||rd?u.offsetWidth:e.setup.minPositionX||0,r>h?u.offsetHeight:e.setup.minPositionY||0,i,e.bounds,s||l),y=g.x,b=g.y;return{scale:i,positionX:v?y:n,positionY:m?b:r}}}(e);c&&Gy(e,c,l,u)}}function hb(e,t,n){var r=e.startCoords,i=e.setup.alignmentAnimation,o=i.sizeX,a=i.sizeY;if(r){var s=function(e,t,n){var r=e.startCoords,i=e.transformState,o=e.setup.panning,a=o.lockAxisX,s=o.lockAxisY,l=i.positionX,u=i.positionY;if(!r)return{x:l,y:u};var c=t-r.x,d=n-r.y;return{x:a?l:c,y:s?u:d}}(e,t,n),l=s.x,u=s.y,c=ab(e,o),d=ab(e,a);cb(e,{x:l,y:u}),ob(e,l,u,c,d)}}function pb(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,r=e.wrapperComponent,i=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var o=null===r||void 0===r?void 0:r.getBoundingClientRect(),a=null===i||void 0===i?void 0:i.getBoundingClientRect(),s=(null===o||void 0===o?void 0:o.width)||0,l=(null===o||void 0===o?void 0:o.height)||0,u=(null===a||void 0===a?void 0:a.width)||0,c=(null===a||void 0===a?void 0:a.height)||0,d=s.1&&d?function(e){var t=e.velocity,n=e.bounds,r=e.setup,i=e.wrapperComponent;if(lb(e)&&t&&n&&i){var o=t.velocityX,a=t.velocityY,s=t.total,l=n.maxPositionX,u=n.minPositionX,c=n.maxPositionY,d=n.minPositionY,f=r.limitToBounds,h=r.alignmentAnimation,p=r.zoomAnimation,v=r.panning,m=v.lockAxisY,g=v.lockAxisX,y=p.animationType,b=h.sizeX,x=h.sizeY,w=h.velocityAlignmentTime,k=function(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,i=n.animationTime,o=n.sensitivity;return r?i*t*o:i}(e,s),S=Math.max(k,w),C=ab(e,b),P=ab(e,x),_=C*i.offsetWidth/100,Z=P*i.offsetHeight/100,E=l+_,M=u-_,R=c+Z,O=d-Z,T=e.transformState,j=(new Date).getTime();$y(e,y,S,(function(t){var n=e.transformState,r=n.scale,i=n.positionX,s=n.positionY,p=((new Date).getTime()-j)/w,v=1-(0,Yy[h.animationType])(Math.min(1,p)),y=1-t,b=i+o*y,x=s+a*y,k=ub(b,T.positionX,i,g,f,u,l,M,E,v),S=ub(x,T.positionY,s,m,f,d,c,O,R,v);i===b&&s===x||e.setTransformState(r,k,S)}))}}(e):fb(e)}}function vb(e,t,n,r){var i=e.setup,o=i.minScale,a=i.maxScale,s=i.limitToBounds,l=nb(Vy(t,2),o,a,0,!1),u=tb(e,n,r,l,Jy(e,l),s);return{scale:l,positionX:u.x,positionY:u.y}}function mb(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,o=e.setup,a=o.minScale,s=o.limitToBounds,l=o.zoomAnimation,u=l.disabled,c=l.animationTime,d=l.animationType,f=u||r>=a;if((r>=1||s)&&fb(e),!f&&i&&e.mounted){var h=vb(e,a,t||i.offsetWidth/2,n||i.offsetHeight/2);h&&Gy(e,h,c,d)}}var gb=function(){return gb=Object.assign||function(e){for(var t,n=1,r=arguments.length;na||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaYt.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))}(e,t);o&&(Bb(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,Uy(Ib(e),t,r),Uy(Ib(e),t,i))}),160))},qb=function(e){for(var t=0,n=0,r=0;r<2;r+=1)t+=e.touches[r].clientX,n+=e.touches[r].clientY;return{x:t/2,y:n/2}},$b=function(e,t){var n=e.contentComponent,r=e.pinchStartDistance,i=e.wrapperComponent,o=e.transformState.scale,a=e.setup,s=a.limitToBounds,l=a.centerZoomedOut,u=a.zoomAnimation,c=a.alignmentAnimation,d=u.disabled,f=u.size;if(null!==r&&n){var h=function(e,t,n){var r=n.getBoundingClientRect(),i=e.touches,o=Vy(i[0].clientX-r.left,5),a=Vy(i[0].clientY-r.top,5);return{x:(o+Vy(i[1].clientX-r.left,5))/2/t,y:(a+Vy(i[1].clientY-r.top,5))/2/t}}(t,o,n);if(Number.isFinite(h.x)&&Number.isFinite(h.y)){var p=Ub(t),v=function(e,t){var n=e.pinchStartScale,r=e.pinchStartDistance,i=e.setup,o=i.maxScale,a=i.minScale,s=i.zoomAnimation,l=i.disablePadding,u=s.size,c=s.disabled;if(!n||null===r||!t)throw new Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:nb(Vy(t/r*n,2),a,o,u,!c&&!l)}(e,p),m=qb(t),g=m.x-(e.pinchLastCenterX||0),y=m.y-(e.pinchLastCenterY||0);if(v!==o||0!==g||0!==y){e.pinchLastCenterX=m.x,e.pinchLastCenterY=m.y;var b=Jy(e,v),x=s&&(d||0===f||l),w=tb(e,h.x,h.y,v,b,x),k=w.x,S=w.y;e.pinchMidpoint=h,e.lastDistance=p;var C=c.sizeX,P=c.sizeY,_=eb(k+g,S+y,b,s,ab(e,C),ab(e,P),i),Z=_.x,E=_.y;e.setTransformState(v,Z,E)}}}},Gb=function(e,t){var n=e.props.onZoomStop,r=e.setup.doubleClick.animationTime;Bb(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout((function(){e.doubleClickStopEventTimer=null,Uy(Ib(e),t,n)}),r)};function Kb(e,t){var n=e.setup,r=e.doubleClickStopEventTimer,i=e.transformState,o=e.contentComponent,a=i.scale,s=e.props,l=s.onZoomStart,u=s.onZoom,c=n.doubleClick,d=c.disabled,f=c.mode,h=c.step,p=c.animationTime,v=c.animationType;if(!d&&!r){if("reset"===f)return function(e,t){var n=e.props,r=n.onZoomStart,i=n.onZoom,o=e.setup.doubleClick,a=o.animationTime,s=o.animationType;Uy(Ib(e),t,r),Mb(e,a,s,(function(){return Uy(Ib(e),t,i)})),Gb(e,t)}(e,t);if(!o)return console.error("No ContentComponent found");var m=function(e,t){return"toggle"===e?1===t?1:-1:"zoomOut"===e?-1:1}(f,e.transformState.scale),g=Zb(e,m,h);if(a!==g){Uy(Ib(e),t,l);var y=Vb(t,o,a),b=vb(e,g,y.x,y.y);if(!b)return console.error("Error during zoom event. New transformation state was not calculated.");Uy(Ib(e),t,u),Gy(e,b,p,v),Gb(e,t)}}}var Qb=function(e){var t=this;this.mounted=!0,this.pinchLastCenterX=null,this.pinchLastCenterY=null,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(e){t.props=e,Jy(t,t.transformState.scale),t.setup=_b(e)},this.initializeWindowEvents=function(){var e,n,r=Db(),i=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,o=null===i||void 0===i?void 0:i.defaultView;null===(n=t.wrapperComponent)||void 0===n||n.addEventListener("wheel",t.onWheelPanning,r),null===o||void 0===o||o.addEventListener("mousedown",t.onPanningStart,r),null===o||void 0===o||o.addEventListener("mousemove",t.onPanning,r),null===o||void 0===o||o.addEventListener("mouseup",t.onPanningStop,r),null===i||void 0===i||i.addEventListener("mouseleave",t.clearPanning,r),null===o||void 0===o||o.addEventListener("keyup",t.setKeyUnPressed,r),null===o||void 0===o||o.addEventListener("keydown",t.setKeyPressed,r)},this.cleanupWindowEvents=function(){var e,n,r=Db(),i=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,o=null===i||void 0===i?void 0:i.defaultView;null===o||void 0===o||o.removeEventListener("mousedown",t.onPanningStart,r),null===o||void 0===o||o.removeEventListener("mousemove",t.onPanning,r),null===o||void 0===o||o.removeEventListener("mouseup",t.onPanningStop,r),null===i||void 0===i||i.removeEventListener("mouseleave",t.clearPanning,r),null===o||void 0===o||o.removeEventListener("keyup",t.setKeyUnPressed,r),null===o||void 0===o||o.removeEventListener("keydown",t.setKeyPressed,r),document.removeEventListener("mouseleave",t.clearPanning,r),qy(t),null===(n=t.observer)||void 0===n||n.disconnect()},this.handleInitializeWrapperEvents=function(e){var n=Db();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},this.handleInitialize=function(e){var n=t.setup.centerOnInit;t.applyTransformation(),t.onInitCallbacks.forEach((function(e){return e(Ib(t))})),n&&(t.setCenter(),t.observer=new ResizeObserver((function(){var n,r=e.offsetWidth,i=e.offsetHeight;(r>0||i>0)&&(t.onInitCallbacks.forEach((function(e){return e(Ib(t))})),t.setCenter(),null===(n=t.observer)||void 0===n||n.disconnect())})),setTimeout((function(){var e;null===(e=t.observer)||void 0===e||e.disconnect()}),5e3),t.observer.observe(e))},this.onWheelZoom=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.setup.wheel,r=n.disabled,i=n.wheelDisabled,o=n.touchPadDisabled,a=n.excluded,s=e.isInitialized,l=e.isPanning,u=t.target;return!(!s||l||r||!u)&&!(i&&!t.ctrlKey)&&(!o||!t.ctrlKey)&&!Wb(u,a)}(t,e);n&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(function(e,t){var n=e.props,r=n.onWheelStart,i=n.onZoomStart;e.wheelStopEventTimer||(qy(e),Uy(Ib(e),t,r),Uy(Ib(e),t,i))}(t,e),Yb(t,e),Xb(t,e))}},this.onWheelPanning=function(e){var n=t.setup,r=n.disabled,i=n.wheel,o=n.panning;if(t.wrapperComponent&&t.contentComponent&&!r&&i.wheelDisabled&&!o.disabled&&o.wheelPanning&&!e.ctrlKey){e.preventDefault(),e.stopPropagation();var a=t.transformState,s=a.positionX,l=a.positionY,u=s-e.deltaX,c=l-e.deltaY,d=o.lockAxisX?s:u,f=o.lockAxisY?l:c,h=t.setup.alignmentAnimation,p=h.sizeX,v=h.sizeY,m=ab(t,p),g=ab(t,v);d===s&&f===l||ob(t,d,f,m,g)}},this.onPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;n||rb(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(0!==e.button||t.setup.panning.allowLeftClickPan)&&(1!==e.button||t.setup.panning.allowMiddleClickPan)&&(2!==e.button||t.setup.panning.allowRightClickPan)&&(e.preventDefault(),e.stopPropagation(),qy(t),db(t,e),Uy(Ib(t),e,r))},this.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||ib(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),hb(t,e.clientX,e.clientY),Uy(Ib(t),e,r))},this.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(pb(t),Uy(Ib(t),e,n))},this.onPinchStart=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinchingStart,o=r.onZoomStart;if(!n){var a=function(e,t){var n=e.setup.pinch,r=n.disabled,i=n.excluded,o=e.isInitialized,a=t.target;return!(!o||r||!a)&&!Wb(a,i)}(t,e);a&&(function(e,t){var n=Ub(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1;var r=qb(t);e.pinchLastCenterX=r.x,e.pinchLastCenterY=r.y,qy(e)}(t,e),qy(t),Uy(Ib(t),e,i),Uy(Ib(t),e,o))}},this.onPinch=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinching,o=r.onZoom;if(!n){var a=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,r=e.pinchStartDistance;return!(!n||t||!r)}(t);a&&(e.preventDefault(),e.stopPropagation(),$b(t,e),Uy(Ib(t),e,i),Uy(Ib(t),e,o))}},this.onPinchStop=function(e){var n=t.props,r=n.onPinchingStop,i=n.onZoomStop;t.pinchStartScale&&(function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,mb(e,null===t||void 0===t?void 0:t.x,null===t||void 0===t?void 0:t.y)}(t),Uy(Ib(t),e,r),Uy(Ib(t),e,i))},this.onTouchPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;if(!n&&rb(t,e)&&!(t.lastTouch&&+new Date-t.lastTouch<200)){t.lastTouch=+new Date,qy(t);var i=e.touches,o=1===i.length,a=2===i.length;o&&(qy(t),db(t,e),Uy(Ib(t),e,r)),a&&t.onPinchStart(e)}},this.onTouchPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n)return;if(!ib(t))return;e.preventDefault(),e.stopPropagation();var i=e.touches[0];hb(t,i.clientX,i.clientY),Uy(Ib(t),e,r)}else e.touches.length>1&&t.onPinch(e)},this.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},this.onDoubleClick=function(e){if(!t.setup.disabled){var n=function(e,t){var n=e.isInitialized,r=e.setup,i=e.wrapperComponent,o=r.doubleClick,a=o.disabled,s=o.excluded,l=t.target,u=null===i||void 0===i?void 0:i.contains(l);return!(!(n&&l&&u)||a)&&!Wb(l,s)}(t,e);n&&Kb(t,e)}},this.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},this.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},this.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},this.isPressingKeys=function(e){return!e.length||Boolean(e.find((function(e){return t.pressedKeys[e]})))},this.setTransformState=function(e,n,r){var i=t.props.onTransformed;if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(r))console.error("Detected NaN set state values");else{e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=r,t.applyTransformation();var o=Ib(t);t.onChangeCallbacks.forEach((function(e){return e(o)})),Uy(o,{scale:e,positionX:n,positionY:r},i)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=Hb(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},this.handleTransformStyles=function(e,n,r){return t.props.customTransform?t.props.customTransform(e,n,r):function(e,t,n){return"translate(".concat(e,"px, ").concat(t,"px) scale(").concat(n,")")}(e,n,r)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,r=e.positionX,i=e.positionY,o=t.handleTransformStyles(r,i,n);t.contentComponent.style.transform=o}},this.getContext=function(){return Ib(t)},this.onChange=function(e){return t.onChangeCallbacks.has(e)||t.onChangeCallbacks.add(e),function(){t.onChangeCallbacks.delete(e)}},this.onInit=function(e){return t.onInitCallbacks.has(e)||t.onInitCallbacks.add(e),function(){t.onInitCallbacks.delete(e)}},this.init=function(e,n){t.cleanupWindowEvents(),t.wrapperComponent=e,t.contentComponent=n,Jy(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(n),t.initializeWindowEvents(),t.isInitialized=!0;var r=Ib(t);Uy(r,void 0,t.props.onInit)},this.props=e,this.setup=_b(this.props),this.transformState=Pb(this.props)},Jb=t.createContext(null),ex=t.forwardRef((function(e,n){var r,i,o=(0,t.useRef)(new Qb(e)).current,a=(r=e.children,i=Nb(o),"function"===typeof r?r(i):r);return(0,t.useImperativeHandle)(n,(function(){return Nb(o)}),[o]),(0,t.useEffect)((function(){o.update(e)}),[o,e]),t.createElement(Jb.Provider,{value:o},a)}));t.forwardRef((function(e,n){var r,i=(0,t.useRef)(null),o=(0,t.useContext)(Jb);return(0,t.useEffect)((function(){return o.onChange((function(e){if(i.current){i.current.style.transform=o.handleTransformStyles(0,0,1/e.instance.transformState.scale)}}))}),[o]),t.createElement("div",gb({},e,{ref:(r=[i,n],function(e){r.forEach((function(t){"function"===typeof t?t(e):null!=t&&(t.current=e)}))})}))}));var tx="transform-component-module_wrapper__SPB86",nx="transform-component-module_content__FBWxo";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__SPB86 {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__FBWxo {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n pointer-events: none;\n}\n");var rx=function(e){var n=e.children,r=e.wrapperClass,i=void 0===r?"":r,o=e.contentClass,a=void 0===o?"":o,s=e.wrapperStyle,l=e.contentStyle,u=e.wrapperProps,c=void 0===u?{}:u,d=e.contentProps,f=void 0===d?{}:d,h=(0,t.useContext)(Jb),p=h.init,v=h.cleanupWindowEvents,m=(0,t.useRef)(null),g=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e=m.current,t=g.current;return null!==e&&null!==t&&p&&(null===p||void 0===p||p(e,t)),function(){null===v||void 0===v||v()}}),[]),t.createElement("div",gb({},c,{ref:m,className:"".concat(Sb," ").concat(tx," ").concat(i),style:s}),t.createElement("div",gb({},f,{ref:g,className:"".concat(Cb," ").concat(nx," ").concat(a),style:l}),n))};var ix=n(9962),ox=n.n(ix),ax=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sx=function(){return sx=Object.assign||function(e){for(var t,n=1,r=arguments.length;nNumber(c)?c:_})}if(S||this.props.lockAspectRatio&&!k&&!C){_=x+(y-v)/r;this.setState({maxWidth:_>Number(c)?c:_})}if((C||k)&&this.resizable){_=(m-b)/r+this.resizable.size.height;this.setState({maxHeight:_>Number(d)?d:_})}if(P||this.props.lockAspectRatio&&!C&&!k){_=w+(b-m)/r;this.setState({maxHeight:_>Number(d)?d:_})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},n.prototype.onResize=function(e,t,n,r){var i=this,o={x:this.originalPosition.x,y:this.originalPosition.y},a=-r.width,s=-r.height;["top","left","topLeft","bottomLeft","topRight"].includes(t)&&("bottomLeft"===t?o.x+=a:("topRight"===t||(o.x+=a),o.y+=s));var l=this.draggable.state;o.x===l.x&&o.y===l.y||(0,Np.flushSync)((function(){i.draggable.setState(o)})),this.updateOffsetFromParent();var u=this.offsetFromParent,c=this.getDraggablePosition().x+u.left,d=this.getDraggablePosition().y+u.top;this.resizingPosition={x:c,y:d},this.props.onResize&&this.props.onResize(e,t,n,r,{x:c,y:d})},n.prototype.onResizeStop=function(e,t,n,r){this.setState({resizing:!1});var i=this.getMaxSizesFromProps(),o=i.maxWidth,a=i.maxHeight;this.setState({maxWidth:o,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},n.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},n.prototype.updatePosition=function(e){this.draggable.setState(e)},n.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),i=r.left,o=r.top,a=n.getBoundingClientRect(),s=this.getDraggablePosition(),l=t.scrollLeft,u=t.scrollTop;this.offsetFromParent={left:a.left-i+l-s.x*e,top:a.top-o+u-s.y*e}},n.prototype.render=function(){var e=this,n=this.props,r=n.disableDragging,i=n.style,o=n.dragHandleClassName,a=n.position,s=n.onMouseDown,l=n.onMouseUp,u=n.dragAxis,c=n.dragGrid,d=n.bounds,f=n.enableUserSelectHack,h=n.cancel,p=n.children,v=(n.onResizeStart,n.onResize,n.onResizeStop,n.onDragStart,n.onDrag,n.onDragStop,n.resizeHandleStyles),m=n.resizeHandleClasses,g=n.resizeHandleComponent,y=n.enableResizing,b=n.resizeGrid,x=n.resizeHandleWrapperClass,w=n.resizeHandleWrapperStyle,k=n.scale,S=n.allowAnyClick,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(nd,{variant:"body2",children:["Scanning: ",re+1," / ",J]}),(0,f.jsx)(sw,{variant:"determinate",value:(re+1)/J*100})]}),(0,f.jsxs)(nd,{variant:"body2",children:["Result Available: ",se?"Yes":"No",", Current Position:"," ",de&&de.length>1?"".concat(de[0],", ").concat(de[1]):"Loading..."]})]})]}),1===ot&&(0,f.jsxs)(Gc,{container:!0,spacing:2,children:[(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(af,{variant:"contained",color:"primary",onClick:function(){fetch("".concat(n,":").concat(r,"/HistoScanController/getLastStitchedImage")).then((function(e){if(!e.ok)throw new Error("Network response was not ok");return e.blob()})).then((function(e){var t=URL.createObjectURL(e);Fe(t)})).catch((function(e){return console.error("Error fetching image:",e)}))},children:"Fetch Last Stitched Image"})}),De&&(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsx)(af,{variant:"contained",color:"secondary",onClick:function(){var e=document.createElement("a");e.href=De,e.download="stitched_image.png",e.click()},children:"Download Image"}),(0,f.jsx)("div",{style:{marginTop:"20px"},children:(0,f.jsx)(ex,{panning:{disabled:!ut},children:(0,f.jsx)(rx,{children:(0,f.jsx)("img",{src:De,alt:"Map",style:{maxWidth:"100%"}})})})})]})]}),2===ot&&(0,f.jsxs)(Gc,{container:!0,spacing:2,children:[He&&(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsxs)("div",{style:{marginTop:"20px",position:"relative"},children:[(0,f.jsx)("img",{src:He,alt:"Map",style:{maxWidth:"100%"},onContextMenu:function(e){e.preventDefault();var t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;Qe({x:n,y:r}),z({mouseX:e.clientX,mouseY:e.clientY}),qe(e.currentTarget),ct(!1)}}),gt&&(0,f.jsx)("div",{style:{position:"absolute",top:"".concat(gt.y,"px"),left:"".concat(gt.x,"px"),width:"10px",height:"10px",backgroundColor:"red",borderRadius:"50%",transform:"translate(-50%, -50%)"}}),ht&&(0,f.jsx)("div",{style:{position:"absolute",top:"".concat(ht.y,"px"),left:"".concat(ht.x,"px"),width:"10px",height:"10px",backgroundColor:"blue",borderRadius:"50%",transform:"translate(-50%, -50%)"}}),(0,f.jsx)(ex,{onPanningStart:function(e){return e.preventDefault()},onPinchingStart:function(e){return e.preventDefault()},panning:{disabled:!ut},children:(0,f.jsx)(rx,{})}),(0,f.jsxs)(nm,{anchorReference:"anchorPosition",anchorPosition:null!==j.mouseY&&null!==j.mouseX?{top:j.mouseY,left:j.mouseX}:void 0,open:Boolean(Xe),onClose:Mt,children:[(0,f.jsx)(Lx,{onClick:function(){return Rt("X",Ke.x)},children:"Go to X Position"}),(0,f.jsx)(Lx,{onClick:function(){return Rt("Y",Ke.y)},children:"Go to Y Position"}),(0,f.jsx)(Lx,{onClick:function(){yt(Ke),Rt("X",Ke.x),Rt("Y",Ke.y),Mt()},children:"Go to X & Y Position"}),(0,f.jsx)(Lx,{onClick:function(){nt([].concat((0,Z.Z)(tt),[Ke])),yt(Ke),Mt()},children:"Save Position"})]}),(0,f.jsx)(ud,{mt:2,children:(0,f.jsxs)(nd,{variant:"h6",children:["Current XY Position: X = ",ht.x.toFixed(2),", Y ="," ",ht.y.toFixed(2)]})})]})}),(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsx)(nd,{variant:"h6",children:"Saved Positions"}),(0,f.jsx)(Cp,{children:tt.map((function(e,t){return(0,f.jsxs)(Jg,{children:["Position ",t+1,": X = ",e.x,", Y = ",e.y]},t)}))})]})]}),(0,f.jsxs)(Mx,{bounds:"parent",size:{width:Ct.width,height:Ct.height},position:{x:Zt.x,y:Zt.y},onDragStop:function(e,t){Et({x:t.x,y:t.y})},disableResizing:!0,dragHandleClassName:"drag-handle",style:{zIndex:10,border:"1px solid #ccc",background:"#000",position:"relative"},children:[(0,f.jsx)("iframe",{src:wt,style:{width:"100%",height:"100%",border:"none"},allow:"autoplay"}),(0,f.jsx)("div",{className:"drag-handle",style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.2)",cursor:"move"}})]})]})},uw=n(7),cw=n(2460),dw=n(8384),fw=n(6711),hw=["children","value","index"],pw=function(e){var t=e.children,n=e.value,r=e.index,i=Na(e,hw);return(0,f.jsx)("div",b(b({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},i),{},{children:n===r&&(0,f.jsx)(ud,{p:3,children:t})}))},vw=function(e){var n=e.hostIP,r=e.hostPort,i=(e.WindowTitle,(0,t.useState)(0)),o=(0,c.Z)(i,2),a=o[0],l=o[1],d=(0,t.useState)("0"),h=(0,c.Z)(d,2),p=h[0],v=h[1],m=(0,t.useState)("Test"),g=(0,c.Z)(m,2),y=g[0],b=g[1],x=(0,t.useState)("Some description"),w=(0,c.Z)(x,2),k=w[0],S=w[1],C=(0,t.useState)(1),P=(0,c.Z)(C,2),_=P[0],Z=P[1],E=(0,t.useState)(10),M=(0,c.Z)(E,2),R=M[0],O=M[1],T=(0,t.useState)(1e3),j=(0,c.Z)(T,2),z=j[0],A=j[1],N=(0,t.useState)(.5),L=(0,c.Z)(N,2),I=L[0],D=L[1],F=(0,t.useState)(1e4),W=(0,c.Z)(F,2),B=W[0],H=W[1],V=(0,t.useState)(!1),U=(0,c.Z)(V,2),Y=U[0],X=U[1],q=(0,t.useState)(0),$=(0,c.Z)(q,2),G=$[0],K=$[1],Q=nc();(0,t.useEffect)((function(){var e=function(){var e=u(s().mark((function e(){var t,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,":").concat(r,"/FlowStopController/getStatus"));case 3:return t=e.sent,e.next=6,t.json();case 6:i=e.sent,X(i[0]),K(i[1]),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=u(s().mark((function e(){var t,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,":").concat(r,"/FlowStopController/getExperimentParameters"));case 3:return t=e.sent,e.next=6,t.json();case 6:i=e.sent,v(i.timeStamp),b(i.experimentName),S("Add some description here"),Z(parseFloat(i.uniqueId,1)),O(parseFloat(i.numImages,-1)),A(parseFloat(i.volumePerImage,1e3)),D(parseFloat(i.timeToStabilize,1)),H(parseFloat(i.pumpSpeed,1e3)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),console.error("Error fetching experiment parameters:",e.t0);case 20:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(){return e.apply(this,arguments)}}();e(),t()}),[n,r]),(0,t.useEffect)((function(){return Q&&(Q.onmessage=function(e){var t=JSON.parse(e.data);"sigImagesTaken"===t.name&&K(t.args.p0)}),function(){Q&&(Q.onmessage=null)}}),[Q]);return(0,f.jsxs)(Av,{children:[(0,f.jsxs)(Ay,{value:a,onChange:function(e,t){l(t)},"aria-label":"acquisition settings tabs",children:[(0,f.jsx)(Fy,{label:"Automatic Settings"}),(0,f.jsx)(Fy,{label:"Manual Acquisition Settings"})]}),(0,f.jsxs)(pw,{value:a,index:1,children:[(0,f.jsx)(nd,{children:"Focus"}),(0,f.jsx)(vg,{defaultValue:30}),(0,f.jsx)(nd,{children:"Pump Speed"}),(0,f.jsx)(vg,{defaultValue:30}),(0,f.jsx)(af,{variant:"contained",children:"Snap"}),(0,f.jsx)(Nm,{label:"Exposure Time",defaultValue:"0.1"}),(0,f.jsx)(Nm,{label:"Gain",defaultValue:"0"})]}),(0,f.jsx)(pw,{value:a,index:0,children:(0,f.jsxs)(Gc,{container:!0,spacing:2,children:[(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{style:{marginBottom:"20px"},label:"Time Stamp Name",value:p,onChange:function(e){return v(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{style:{marginBottom:"20px"},label:"Experiment Name",value:y,onChange:function(e){return b(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{style:{marginBottom:"20px"},label:"Experiment Description",value:k,onChange:function(e){return S(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{style:{marginBottom:"20px"},label:"Volume Per Image",value:z,onChange:function(e){return A(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{style:{marginBottom:"20px"},label:"Time to stabilize",value:I,onChange:function(e){return D(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{style:{marginBottom:"20px"},label:"Pump Speed",value:B,onChange:function(e){return H(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{style:{marginBottom:"20px"},label:"Number of Images",value:R,onChange:function(e){return O(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsxs)("div",{children:[(0,f.jsx)(af,{style:{marginBottom:"20px",marginRight:"10px"},variant:"contained",onClick:function(){var e="".concat(n,":").concat(r,"/FlowStopController/startFlowStopExperimentFastAPI?timeStamp=").concat(p,"&experimentName=").concat(y,"&experimentDescription=").concat(k,"&uniqueId=").concat(_,"&numImages=").concat(R,"&volumePerImage=").concat(z,"&timeToStabilize=").concat(I,"&isRecordVideo=true&pumpSpeed=").concat(B);fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e),X(!0)})).catch((function(e){return console.error("Error:",e)}))},disabled:Y,children:"Start"}),(0,f.jsx)(af,{style:{marginBottom:"20px"},variant:"contained",onClick:function(){var e="".concat(n,":").concat(r,"/FlowStopController/stopFlowStopExperiment");fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e),X(!1)})).catch((function(e){return console.error("Error:",e)}))},disabled:!Y,children:"Stop"})]})}),(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsxs)(ud,{display:"flex",alignItems:"center",children:[(0,f.jsx)(nd,{variant:"h6",children:"Status: "}),Y?(0,f.jsx)(dw.Z,{style:{color:uw.Z[500],marginLeft:"10px"}}):(0,f.jsx)(fw.Z,{style:{color:cw.Z[500],marginLeft:"10px"}})]})}),(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsxs)(nd,{variant:"h6",children:["Images Taken: ",G]})})]})})]})},mw=(0,t.createContext)(),gw=function(e){var n=e.children,r=(0,t.useState)("5"),i=(0,c.Z)(r,2),o=i[0],a=i[1],s=(0,t.useState)("1"),l=(0,c.Z)(s,2),u=l[0],d=l[1],h=(0,t.useState)("-100"),p=(0,c.Z)(h,2),v=p[0],m=p[1],g=(0,t.useState)("100"),y=(0,c.Z)(g,2),b=y[0],x=y[1],w=(0,t.useState)("0"),k=(0,c.Z)(w,2),S=k[0],C=k[1],P=(0,t.useState)(!1),_=(0,c.Z)(P,2),Z=_[0],E=_[1],M=(0,t.useState)("-1000"),R=(0,c.Z)(M,2),O=R[0],T=R[1],j=(0,t.useState)("1000"),z=(0,c.Z)(j,2),A=z[0],N=z[1],L=(0,t.useState)("0"),I=(0,c.Z)(L,2),D=I[0],F=I[1],W=(0,t.useState)(!1),B=(0,c.Z)(W,2),H=B[0],V=B[1],U=(0,t.useState)("-1000"),Y=(0,c.Z)(U,2),X=Y[0],q=Y[1],$=(0,t.useState)("1000"),G=(0,c.Z)($,2),K=G[0],Q=G[1],J=(0,t.useState)("0"),ee=(0,c.Z)(J,2),te=ee[0],ne=ee[1],re=(0,t.useState)(!1),ie=(0,c.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,t.useState)(0),le=(0,c.Z)(se,2),ue=le[0],ce=le[1],de=(0,t.useState)(0),fe=(0,c.Z)(de,2),he=fe[0],pe=fe[1],ve=(0,t.useState)(0),me=(0,c.Z)(ve,2),ge=me[0],ye=me[1],be=(0,t.useState)("MCT"),xe=(0,c.Z)(be,2),we=xe[0],ke=xe[1],Se=(0,t.useState)(!1),Ce=(0,c.Z)(Se,2),Pe=Ce[0],_e=Ce[1];return(0,f.jsx)(mw.Provider,{value:{timePeriod:o,setTimePeriod:a,numMeasurements:u,setNumMeasurements:d,zMin:v,setZMin:m,zMax:b,setZMax:x,zSteps:S,setZSteps:C,zStackEnabled:Z,setZStackEnabled:E,xMin:O,setXMin:T,xMax:A,setXMax:N,xSteps:D,setXSteps:F,xStackEnabled:H,setXStackEnabled:V,yMin:X,setYMin:q,yMax:K,setYMax:Q,ySteps:te,setYSteps:ne,yStackEnabled:oe,setYStackEnabled:ae,intensityLaser1:ue,setIntensityLaser1:ce,intensityLaser2:he,setIntensityLaser2:pe,intensityLED:ge,setIntensityLED:ye,fileName:we,setFileName:ke,isRunning:Pe,setIsRunning:_e},children:n})},yw=t.createContext();function bw(e){var n=e.children,r=(0,t.useState)(0),i=(0,c.Z)(r,2),o=i[0],a=i[1],s=(0,t.useState)({init:"init"}),l=(0,c.Z)(s,2),u=l[0],d=l[1];return(0,f.jsx)(yw.Provider,{value:{sliderValue:o,setSliderValue:a,generic:u,handleGeneric:function(e){var t=e[0],n=e[1];d((function(e){return b(b({},e),{},(0,g.Z)({},t,n))}))}},children:n})}var xw=function(e){var n=e.hostIP,r=e.hostPort,i=(0,t.useState)(0),o=(0,c.Z)(i,2),a=o[0],s=o[1],l=(0,t.useState)(""),u=(0,c.Z)(l,2),d=u[0],h=u[1],p=nc(),v=(0,t.useContext)(mw),m=v.timePeriod,g=v.setTimePeriod,y=v.numMeasurements,b=v.setNumMeasurements,x=v.zMin,w=v.setZMin,k=v.zMax,S=v.setZMax,C=v.zSteps,P=v.setZSteps,_=v.zStackEnabled,Z=v.setZStackEnabled,E=v.xMin,M=v.setXMin,R=v.xMax,O=v.setXMax,T=v.xSteps,j=v.setXSteps,z=v.xStackEnabled,A=v.setXStackEnabled,N=v.yMin,L=v.setYMin,I=v.yMax,D=v.setYMax,F=v.ySteps,W=v.setYSteps,B=v.yStackEnabled,H=v.setYStackEnabled,V=v.intensityLaser1,U=v.setIntensityLaser1,Y=v.intensityLaser2,X=v.setIntensityLaser2,q=v.intensityLED,$=v.setIntensityLED,G=v.fileName,K=v.setFileName,Q=v.isRunning,J=v.setIsRunning,ee=(0,t.useContext)(yw);(0,t.useEffect)((function(){return p&&(p.onmessage=function(e){console.log("Message received:",e.data)}),function(){p&&(p.onmessage=null)}}),[p]),(0,t.useEffect)((function(){!function(){var e="".concat(n,":").concat(r,"/MCTController/getMCTStatus");fetch(e).then((function(e){return e.json()})).then((function(e){console.log(e),g(e.timePeriod),Z(e.zStackEnabled),w(e.zStackMin),S(e.zStackMax),P(e.zStackStep),A(e.xyScanEnabled),M(e.xScanMin),O(e.xScanMax),j(e.xScanStep),L(e.yScanMin),D(e.yScanMax),W(e.yScanStep),U(e.Illu1Value),X(e.Illu2Value),$(e.Illu3Value),s(e.nImagesTaken),J(e.isMCTrunning),h(e.MCTFilename)})).catch((function(e){}))}()}),[n,r]);return(0,f.jsx)(Av,{style:{padding:"20px"},children:(0,f.jsxs)(Gc,{container:!0,spacing:2,children:[(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsx)(Nm,{label:"Period T (s)",value:m,onChange:function(e){return g(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsx)(Nm,{label:"N Measurements",value:y,onChange:function(e){return b(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"Z-Stack Min",value:x,onChange:function(e){return w(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"Z-Stack Max",value:k,onChange:function(e){return S(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"Z-Stack Steps",value:C,onChange:function(e){return P(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Pf,{control:(0,f.jsx)(_g,{}),checked:_,onChange:function(e){return Z(e.target.checked)},label:"Z-Stack Enabled"})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"X Scan Min",value:E,onChange:function(e){return M(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"X Scan Max",value:R,onChange:function(e){return O(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"X Scan Steps",value:T,onChange:function(e){return j(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Pf,{control:(0,f.jsx)(_g,{}),checked:z,onChange:function(e){return A(e.target.checked)},label:"XY Scan Enabled"})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"Y Scan Min",value:N,onChange:function(e){return L(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"Y Scan Max",value:I,onChange:function(e){return D(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Nm,{label:"Y Scan Steps",value:F,onChange:function(e){return W(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(Pf,{control:(0,f.jsx)(_g,{}),checked:B,onChange:function(e){return H(e.target.checked)},label:"Y-Stack Enabled"})}),(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsxs)(nd,{children:["Intensity (Laser 1): ",V]}),(0,f.jsx)(vg,{value:ee.sliderValue,onChange:function(e,t){return ee.setSliderValue(t)},max:32767,step:1})]}),(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsxs)(nd,{children:["Intensity (Laser 2): ",ee.generic.slider2]}),(0,f.jsx)(vg,{value:ee.generic.slider2,onChange:function(e,t){return ee.handleGeneric(["slider2",t])},max:32767,step:1})]}),(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsxs)(nd,{children:["Intensity (LED): ",ee.generic.intensity]}),(0,f.jsx)(vg,{value:ee.generic.intensity,onChange:function(e,t){return ee.handleGeneric(["intensity",t])},max:255,step:1})]}),(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsx)(Nm,{label:"File Name",value:G,onChange:function(e){return K(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(nd,{variant:"body1",color:"textSecondary",children:"Images taken: ".concat(a)})}),(0,f.jsx)(Gc,{item:!0,xs:3,children:(0,f.jsx)(nd,{variant:"body1",color:"textSecondary",children:"Folder: ".concat(d)})}),(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsx)(af,{variant:"contained",color:"primary",onClick:function(){var e="".concat(n,":").concat(r,"/MCTController/startTimelapseImaging?")+"tperiod=".concat(m,"&nImagesToCapture=").concat(y,"&MCTFilename=").concat(G,"&")+"zStackEnabled=".concat(_,"&zStackMin=").concat(x,"&zStackMax=").concat(k,"&zStackStep=").concat(C,"&")+"xyScanEnabled=".concat(z,"&xScanMin=").concat(E,"&xScanMax=").concat(R,"&xScanStep=").concat(T,"&")+"yScanMin=".concat(N,"&yScanMax=").concat(I,"&yScanStep=").concat(F,"&")+"IlluValue1=".concat(V,"&IlluValue2=").concat(Y,"&IlluValue3=").concat(q);fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e),J(!0)})).catch((function(e){return console.error("Error:",e)}))},disabled:Q,children:"Start"}),(0,f.jsx)(af,{variant:"contained",color:"secondary",onClick:function(){var e="".concat(n,":").concat(r,"/MCTController/stopTimelapseImaging");fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e),J(!1)})).catch((function(e){return console.error("Error:",e)}))},disabled:!Q,style:{marginLeft:"10px"},children:"Stop"})]})]})})},ww=["children","value","index"],kw=function(e){var t=e.children,n=e.value,r=e.index,i=Na(e,ww);return(0,f.jsx)("div",b(b({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},i),{},{children:n===r&&(0,f.jsx)(ud,{p:3,children:t})}))},Sw=function(){window.open("https://youseetoo.github.io","_blank")},Cw=function(e){var n=e.hostIP,r=e.hostPort,i=(e.WindowTitle,(0,t.useState)(0)),o=(0,c.Z)(i,2),a=o[0],s=o[1];return(0,f.jsxs)(Av,{children:[(0,f.jsx)(Ay,{value:a,onChange:function(e,t){s(t)},"aria-label":"settings tabs",children:(0,f.jsx)(Fy,{label:"Reconnect to UC2 board"})}),(0,f.jsx)(kw,{value:a,index:0,children:(0,f.jsx)(Gc,{container:!0,spacing:2,children:(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsx)(nd,{variant:"h6",children:"Reconnect to UC2 board"}),(0,f.jsx)("div",{children:(0,f.jsx)(af,{style:{marginBottom:"20px"},variant:"contained",onClick:function(){var e="".concat(n,":").concat(r,"/UC2ConfigController/reconnect");fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e)})).catch((function(e){return console.error("Error:",e)}))},children:"Reconnect"})}),(0,f.jsx)(nd,{variant:"h6",children:"Bluetooth Pairing"}),(0,f.jsx)("div",{children:(0,f.jsx)(af,{style:{marginBottom:"20px"},variant:"contained",onClick:function(){var e="".concat(n,":").concat(r,"/UC2ConfigController/btpairing");fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e)})).catch((function(e){return console.error("Error:",e)}))},children:"BT Pairing"})}),(0,f.jsx)(nd,{variant:"h6",children:"Flash New Firmware"}),(0,f.jsx)("div",{children:(0,f.jsx)(af,{style:{marginBottom:"20px"},variant:"contained",onClick:Sw,children:"UC2-ESP32"})})]})})})]})},Pw=function(e){var n=e.hostIP,r=e.hostPort,i=(0,t.useState)(10),o=(0,c.Z)(i,2),a=o[0],s=o[1],l=(0,t.useState)(1),u=(0,c.Z)(l,2),d=u[0],h=u[1],p=(0,t.useState)(0),v=(0,c.Z)(p,2),m=v[0],g=v[1],y=(0,t.useState)(!1),b=(0,c.Z)(y,2),x=(b[0],b[1]);return(0,f.jsx)(Av,{style:{padding:"20px"},children:(0,f.jsxs)(Gc,{container:!0,spacing:2,children:[(0,f.jsx)(Gc,{item:!0,xs:4,children:(0,f.jsx)(Nm,{label:"Range Z",value:a,onChange:function(e){return s(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:4,children:(0,f.jsx)(Nm,{label:"Resolution Z",value:d,onChange:function(e){return h(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:4,children:(0,f.jsx)(Nm,{label:"Defocus Z",value:m,onChange:function(e){return g(e.target.value)},fullWidth:!0})}),(0,f.jsxs)(Gc,{item:!0,xs:12,children:[(0,f.jsx)(af,{variant:"contained",color:"primary",onClick:function(){var e="".concat(n,":").concat(r,"/AufofocusController/autoFocus?")+"rangez=".concat(a,"&resolutionz=").concat(d,"&defocusz=").concat(m);console.log("Autofocus started:",e),fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log("Autofocus started:",e),x(!0)})).catch((function(e){console.error("Error starting autofocus:",e)}))},children:"Start Autofocus"}),(0,f.jsx)(af,{variant:"contained",color:"secondary",onClick:function(){var e="http://".concat(n,":").concat(r,"/AufofocusController/stopAutoFocus");fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log("Autofocus stopped:",e),x(!1)})).catch((function(e){console.error("Error stopping autofocus:",e)}))},style:{marginLeft:"10px"},children:"Stop Autofocus"})]})]})})},_w=function(e){var n=e.hostIP,r=e.hostPort,i=(e.WindowTitle,(0,t.useState)(0)),o=(0,c.Z)(i,2),a=(o[0],o[1],(0,t.useState)("")),s=(0,c.Z)(a,2),l=s[0],u=s[1],d=(0,t.useRef)(null);return(0,t.useEffect)((function(){u("".concat(n,":").concat(r,"/RecordingController/video_feeder"))}),[n,r]),(0,f.jsxs)(Av,{children:[(0,f.jsx)(nd,{variant:"h6",gutterBottom:!0,children:"Video Display"}),l?(0,f.jsx)("img",{style:{width:"100%",height:"auto"},src:l,ref:d,alt:"Live Stream"}):(0,f.jsx)(nd,{variant:"body1",color:"textSecondary",children:"No stream available"})]})},Zw=function(e){var t=e.hostIP,n=e.hostPort;return(0,f.jsxs)(Gc,{container:!0,spacing:3,className:"control-panel-grid",children:[(0,f.jsx)(Gc,{item:!0,xs:12,sm:6,md:4,className:"grid-item",children:(0,f.jsx)(_w,{hostIP:t,hostPort:n,title:"Flow Stop"})}),(0,f.jsx)(Gc,{item:!0,xs:12,sm:6,md:4,className:"grid-item",children:(0,f.jsx)(vw,{hostIP:t,hostPort:n,title:"Flow Stop"})}),(0,f.jsx)(Gc,{item:!0,xs:12,sm:6,md:4,className:"grid-item",children:(0,f.jsx)(Cw,{hostIP:t,hostPort:n,title:"Reconnect"})}),(0,f.jsx)(Gc,{item:!0,xs:12,sm:6,md:4,className:"grid-item",children:(0,f.jsx)(Pw,{hostIP:t,hostPort:n,title:"Autofocus"})}),(0,f.jsx)(Gc,{item:!0,xs:12,sm:6,md:4,className:"grid-item",children:(0,f.jsx)(gw,{children:(0,f.jsx)(xw,{hostIP:t,hostPort:n,title:"MCT"})})}),(0,f.jsx)(Gc,{item:!0,xs:12,sm:6,md:4,className:"grid-item",children:(0,f.jsx)(lw,{hostIP:t,hostPort:n,title:"HistoScan"})})]})},Ew=["children","value","index"],Mw=function(e){var t=e.children,n=e.value,r=e.index,i=Na(e,Ew);return(0,f.jsx)("div",b(b({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},i),{},{children:n===r&&(0,f.jsx)(ud,{p:3,children:t})}))},Rw=function(e){var n=e.hostIP,r=e.hostPort,i=(0,t.useState)(0),o=(0,c.Z)(i,2),a=o[0],l=o[1],d=(0,t.useState)(0),h=(0,c.Z)(d,2),p=h[0],v=h[1],m=(0,t.useState)(1e3),g=(0,c.Z)(m,2),y=g[0],b=g[1],x=(0,t.useState)(1e3),w=(0,c.Z)(x,2),k=w[0],S=w[1],C=(0,t.useState)("A"),P=(0,c.Z)(C,2),_=P[0],Z=P[1],E=(0,t.useState)(-1),M=(0,c.Z)(E,2),R=M[0],O=M[1],T=(0,t.useState)(512),j=(0,c.Z)(T,2),z=j[0],A=j[1],N=(0,t.useState)(null),L=(0,c.Z)(N,2),I=(L[0],L[1],(0,t.useState)(!1)),D=(0,c.Z)(I,2),F=D[0],W=D[1];(0,t.useEffect)((function(){var e=function(){var e=u(s().mark((function e(){var t,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,":").concat(r,"/LightsheetController/returnLastLightsheetStackPath"));case 3:return t=e.sent,e.next=6,t.json();case 6:(i=e.sent)&&i.filepath,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching latest image path:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[n,r,F]);return(0,f.jsxs)(Av,{children:[(0,f.jsxs)(Ay,{value:a,onChange:function(e,t){l(t)},"aria-label":"Lightsheet Controller Tabs",children:[(0,f.jsx)(Fy,{label:"Scanning Parameters"}),(0,f.jsx)(Fy,{label:"View Latest Stack"})]}),(0,f.jsx)(Mw,{value:a,index:0,children:(0,f.jsxs)(Gc,{container:!0,spacing:2,children:[(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{label:"Min Position",value:p,onChange:function(e){return v(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{label:"Max Position",value:y,onChange:function(e){return b(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(Nm,{label:"Speed",value:k,onChange:function(e){return S(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsx)(Nm,{label:"Axis",value:_,onChange:function(e){return Z(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsx)(Nm,{label:"Illumination Source",value:R,onChange:function(e){return O(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:6,children:(0,f.jsx)(Nm,{label:"Illumination Value",value:z,onChange:function(e){return A(e.target.value)},fullWidth:!0})}),(0,f.jsx)(Gc,{item:!0,xs:12,children:(0,f.jsx)(af,{variant:"contained",color:"primary",onClick:function(){var e="".concat(n,":").concat(r,"/LightsheetController/performScanningRecording?minPos=").concat(p,"&maxPos=").concat(y,"&speed=").concat(k,"&axis=").concat(_,"&illusource=").concat(R,"&illuvalue=").concat(z);fetch(e,{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e),W(!0)})).catch((function(e){return console.error("Error:",e)}))},disabled:F,children:"Start Scanning"})})]})}),(0,f.jsx)(Mw,{value:a,index:1})]})},Ow=(0,d.Z)((0,f.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),Tw=(0,d.Z)((0,f.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),jw=(0,d.Z)((0,f.jsx)("path",{d:"M12.01 5.5 10 8h4zM18 10v4l2.5-1.99zM6 10l-2.5 2.01L6 14zm8 6h-4l2.01 2.5zm9-13H1v18h22zm-2 16.01H3V4.99h18z"}),"SettingsOverscanSharp"),zw=(0,d.Z)((0,f.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices"),Aw=(0,d.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),Nw=n(2140),Lw=n(4250),Iw=n(1162);function Dw(e,t){return function(){return e.apply(t,arguments)}}var Fw=Object.prototype.toString,Ww=Object.getPrototypeOf,Bw=function(e){return function(t){var n=Fw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null)),Hw=function(e){return e=e.toLowerCase(),function(t){return Bw(t)===e}},Vw=function(e){return function(t){return typeof t===e}},Uw=Array.isArray,Yw=Vw("undefined");var Xw=Hw("ArrayBuffer");var qw=Vw("string"),$w=Vw("function"),Gw=Vw("number"),Kw=function(e){return null!==e&&"object"===typeof e},Qw=function(e){if("object"!==Bw(e))return!1;var t=Ww(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Jw=Hw("Date"),ek=Hw("File"),tk=Hw("Blob"),nk=Hw("FileList"),rk=Hw("URLSearchParams"),ik=["ReadableStream","Request","Response","Headers"].map(Hw),ok=(0,c.Z)(ik,4),ak=ok[0],sk=ok[1],lk=ok[2],uk=ok[3];function ck(e,t){var n,r,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==i&&i;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),Uw(e))for(n=0,r=e.length;n0;)if(t===(n=r[i]).toLowerCase())return n;return null}var fk="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,hk=function(e){return!Yw(e)&&e!==fk};var pk,vk=(pk="undefined"!==typeof Uint8Array&&Ww(Uint8Array),function(e){return pk&&e instanceof pk}),mk=Hw("HTMLFormElement"),gk=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),yk=Hw("RegExp"),bk=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};ck(n,(function(n,i){var o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},xk="abcdefghijklmnopqrstuvwxyz",wk="0123456789",kk={DIGIT:wk,ALPHA:xk,ALPHA_DIGIT:xk+xk.toUpperCase()+wk};var Sk=Hw("AsyncFunction"),Ck=function(e,t){return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],fk.addEventListener("message",(function(e){var t=e.source,i=e.data;t===fk&&i===n&&r.length&&r.shift()()}),!1),function(e){r.push(e),fk.postMessage(n,"*")}):function(e){return setTimeout(e)};var n,r}("function"===typeof setImmediate,$w(fk.postMessage)),Pk="undefined"!==typeof queueMicrotask?queueMicrotask.bind(fk):"undefined"!==typeof process&&process.nextTick||Ck,_k={isArray:Uw,isArrayBuffer:Xw,isBuffer:function(e){return null!==e&&!Yw(e)&&null!==e.constructor&&!Yw(e.constructor)&&$w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"===typeof FormData&&e instanceof FormData||$w(e.append)&&("formdata"===(t=Bw(e))||"object"===t&&$w(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Xw(e.buffer)},isString:qw,isNumber:Gw,isBoolean:function(e){return!0===e||!1===e},isObject:Kw,isPlainObject:Qw,isReadableStream:ak,isRequest:sk,isResponse:lk,isHeaders:uk,isUndefined:Yw,isDate:Jw,isFile:ek,isBlob:tk,isRegExp:yk,isFunction:$w,isStream:function(e){return Kw(e)&&$w(e.pipe)},isURLSearchParams:rk,isTypedArray:vk,isFileList:nk,forEach:ck,merge:function e(){for(var t=(hk(this)&&this||{}).caseless,n={},r=function(r,i){var o=t&&dk(n,i)||i;Qw(n[o])&&Qw(r)?n[o]=e(n[o],r):Qw(r)?n[o]=e({},r):Uw(r)?n[o]=r.slice():n[o]=r},i=0,o=arguments.length;i3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Ww(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Bw,kindOfTest:Hw,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(Uw(e))return e;var t=e.length;if(!Gw(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:mk,hasOwnProperty:gk,hasOwnProp:gk,reduceDescriptors:bk,freezeMethods:function(e){bk(e,(function(t,n){if($w(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];$w(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return Uw(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:dk,global:fk,isContextDefined:hk,ALPHABET:kk,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kk.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&$w(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(Kw(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var i=Uw(n)?[]:{};return ck(n,(function(t,n){var o=e(t,r+1);!Yw(o)&&(i[n]=o)})),t[r]=void 0,i}}return n}(e,0)},isAsyncFn:Sk,isThenable:function(e){return e&&(Kw(e)||$w(e))&&$w(e.then)&&$w(e.catch)},setImmediate:Ck,asap:Pk};function Zk(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}_k.inherits(Zk,Error,{toJSON:function(){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:_k.toJSONObject(this.config),code:this.code,status:this.status}}});var Ek=Zk.prototype,Mk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){Mk[e]={value:e}})),Object.defineProperties(Zk,Mk),Object.defineProperty(Ek,"isAxiosError",{value:!0}),Zk.from=function(e,t,n,r,i,o){var a=Object.create(Ek);return _k.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Zk.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Rk=Zk;function Ok(e){return _k.isPlainObject(e)||_k.isArray(e)}function Tk(e){return _k.endsWith(e,"[]")?e.slice(0,-2):e}function jk(e,t,n){return e?e.concat(t).map((function(e,t){return e=Tk(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var zk=_k.toFlatObject(_k,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Ak=function(e,t,n){if(!_k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=_k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_k.isUndefined(t[e])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&_k.isSpecCompliantForm(t);if(!_k.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(_k.isDate(e))return e.toISOString();if(!s&&_k.isBlob(e))throw new Rk("Blob is not supported. Use a Buffer instead.");return _k.isArrayBuffer(e)||_k.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){var s=e;if(e&&!i&&"object"===typeof e)if(_k.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(_k.isArray(e)&&function(e){return _k.isArray(e)&&!e.some(Ok)}(e)||(_k.isFileList(e)||_k.endsWith(n,"[]"))&&(s=_k.toArray(e)))return n=Tk(n),s.forEach((function(e,r){!_k.isUndefined(e)&&null!==e&&t.append(!0===a?jk([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!Ok(e)||(t.append(jk(i,n,o),l(e)),!1)}var c=[],d=Object.assign(zk,{defaultVisitor:u,convertValue:l,isVisitable:Ok});if(!_k.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!_k.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),_k.forEach(n,(function(n,o){!0===(!(_k.isUndefined(n)||null===n)&&i.call(t,n,_k.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),c.pop()}}(e),t};function Nk(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Lk(e,t){this._pairs=[],e&&Ak(e,this,t)}var Ik=Lk.prototype;Ik.append=function(e,t){this._pairs.push([e,t])},Ik.toString=function(e){var t=e?function(t){return e.call(this,t,Nk)}:Nk;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Dk=Lk;function Fk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wk(e,t,n){if(!t)return e;var r,i=n&&n.encode||Fk,o=n&&n.serialize;if(r=o?o(t,n):_k.isURLSearchParams(t)?t.toString():new Dk(t,n).toString(i)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var Bk=function(){function e(){(0,E.Z)(this,e),this.handlers=[]}return(0,M.Z)(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){_k.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),Hk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vk={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Dk,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Uk="undefined"!==typeof window&&"undefined"!==typeof document,Yk="object"===typeof navigator&&navigator||void 0,Xk=Uk&&(!Yk||["ReactNative","NativeScript","NS"].indexOf(Yk.product)<0),qk="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,$k=Uk&&window.location.href||"http://localhost",Gk=b(b({},e),Vk);var Kk=function(e){function t(e,n,r,i){var o=e[i++];if("__proto__"===o)return!0;var a=Number.isFinite(+o),s=i>=e.length;return o=!o&&_k.isArray(r)?r.length:o,s?(_k.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&_k.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&_k.isArray(r[o])&&(r[o]=function(e){var t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t-1,o=_k.isObject(e);if(o&&_k.isHTMLForm(e)&&(e=new FormData(e)),_k.isFormData(e))return i?JSON.stringify(Kk(e)):e;if(_k.isArrayBuffer(e)||_k.isBuffer(e)||_k.isStream(e)||_k.isFile(e)||_k.isBlob(e)||_k.isReadableStream(e))return e;if(_k.isArrayBufferView(e))return e.buffer;if(_k.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ak(e,new Gk.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Gk.isNode&&_k.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=_k.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Ak(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(_k.isString(e))try{return(t||JSON.parse)(e),_k.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Qk.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(_k.isResponse(e)||_k.isReadableStream(e))return e;if(e&&_k.isString(e)&&(n&&!this.responseType||r)){var i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(i){if("SyntaxError"===o.name)throw Rk.from(o,Rk.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gk.classes.FormData,Blob:Gk.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_k.forEach(["delete","get","head","post","put","patch"],(function(e){Qk.headers[e]={}}));var Jk=Qk,eS=_k.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"]),tS=Symbol("internals");function nS(e){return e&&String(e).trim().toLowerCase()}function rS(e){return!1===e||null==e?e:_k.isArray(e)?e.map(rS):String(e)}function iS(e,t,n,r,i){return _k.isFunction(r)?r.call(this,t,n):(i&&(t=n),_k.isString(t)?_k.isString(r)?-1!==t.indexOf(r):_k.isRegExp(r)?r.test(t):void 0:void 0)}var oS=function(e,t){function n(e){(0,E.Z)(this,n),e&&this.set(e)}return(0,M.Z)(n,[{key:"set",value:function(e,t,n){var r=this;function i(e,t,n){var i=nS(t);if(!i)throw new Error("header name must be a non-empty string");var o=_k.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=rS(e))}var a=function(e,t){return _k.forEach(e,(function(e,n){return i(e,n,t)}))};if(_k.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(_k.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(function(e){var t,n,r,i={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&eS[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)})),i}(e),t);else if(_k.isHeaders(e)){var s,l=o(e.entries());try{for(l.s();!(s=l.n()).done;){var u=(0,c.Z)(s.value,2),d=u[0];i(u[1],d,n)}}catch(f){l.e(f)}finally{l.f()}}else null!=e&&i(t,e,n);return this}},{key:"get",value:function(e,t){if(e=nS(e)){var n=_k.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(_k.isFunction(t))return t.call(this,r,n);if(_k.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=nS(e)){var n=_k.findKey(this,e);return!(!n||void 0===this[n]||t&&!iS(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function i(e){if(e=nS(e)){var i=_k.findKey(n,e);!i||t&&!iS(0,n[i],i,t)||(delete n[i],r=!0)}}return _k.isArray(e)?e.forEach(i):i(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var i=t[n];e&&!iS(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return _k.forEach(this,(function(r,i){var o=_k.findKey(n,i);if(o)return t[o]=rS(r),void delete t[i];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(i):String(i).trim();a!==i&&delete t[i],t[a]=rS(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:Date.now();i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){for(var e=Date.now(),t=e-i,s=arguments.length,l=new Array(s),u=0;u=o?a(l,e):(n=l,r||(r=setTimeout((function(){r=null,a(n)}),o-t)))},function(){return n&&a(n)}]},pS=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,i=fS(50,250);return hS((function(n){var o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s),u=o<=a;r=o;var c=(0,g.Z)({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(c)}),n)},vS=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},mS=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r1?"since :\n"+s.map(QS).join("\n"):" "+QS(s[0]):"as no adapter specified";throw new Rk("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return n};function tC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cS(null,e)}function nC(e){return tC(e),e.headers=aS.from(e.headers),e.data=sS.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eC(e.adapter||Jk.adapter)(e).then((function(t){return tC(e),t.data=sS.call(e,e.transformResponse,t),t.headers=aS.from(t.headers),t}),(function(t){return lS(t)||(tC(e),t&&t.response&&(t.response.data=sS.call(e,e.transformResponse,t.response),t.response.headers=aS.from(t.response.headers))),Promise.reject(t)}))}var rC="1.7.7",iC={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){iC[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var oC={};iC.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Rk(r(i," has been removed"+(t?" in "+t:"")),Rk.ERR_DEPRECATED);return t&&!oC[i]&&(oC[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var aC={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Rk("options must be an object",Rk.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new Rk("option "+o+" must be "+l,Rk.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Rk("Unknown option "+o,Rk.ERR_BAD_OPTION)}},validators:iC},sC=aC.validators,lC=function(){function e(t){(0,E.Z)(this,e),this.defaults=t,this.interceptors={request:new Bk,response:new Bk}}return(0,M.Z)(e,[{key:"request",value:function(){var e=u(s().mark((function e(t,n){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error,i=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.t0.stack?i&&!String(e.t0.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+i):e.t0.stack=i}catch(o){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n=t=CS(this.defaults,t),r=n.transitional,i=n.paramsSerializer,o=n.headers;void 0!==r&&aC.assertOptions(r,{silentJSONParsing:sC.transitional(sC.boolean),forcedJSONParsing:sC.transitional(sC.boolean),clarifyTimeoutError:sC.transitional(sC.boolean)},!1),null!=i&&(_k.isFunction(i)?t.paramsSerializer={serialize:i}:aC.assertOptions(i,{encode:sC.function,serialize:sC.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=o&&_k.merge(o.common,o[t.method]);o&&_k.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete o[e]})),t.headers=aS.concat(a,o);var s=[],l=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var u,c=[];this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));var d,f=0;if(!l){var h=[nC.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),d=h.length,u=Promise.resolve(t);f0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,i){r.reason||(r.reason=new cS(e,t,i),n(r.reason))}))}return(0,M.Z)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}(),dC=cC;var fC={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};Object.entries(fC).forEach((function(e){var t=(0,c.Z)(e,2),n=t[0],r=t[1];fC[r]=n}));var hC=fC;var pC=function e(t){var n=new uC(t),r=Dw(uC.prototype.request,n);return _k.extend(r,uC.prototype,n,{allOwnKeys:!0}),_k.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(CS(t,n))},r}(Jk);pC.Axios=uC,pC.CanceledError=cS,pC.CancelToken=dC,pC.isCancel=lS,pC.VERSION=rC,pC.toFormData=Ak,pC.AxiosError=Rk,pC.Cancel=pC.CanceledError,pC.all=function(e){return Promise.all(e)},pC.spread=function(e){return function(t){return e.apply(null,t)}},pC.isAxiosError=function(e){return _k.isObject(e)&&!0===e.isAxiosError},pC.mergeConfig=CS,pC.AxiosHeaders=aS,pC.formToJSON=function(e){return Kk(_k.isHTMLForm(e)?new FormData(e):e)},pC.getAdapter=eC,pC.HttpStatusCode=hC,pC.default=pC;var vC=pC,mC=function(e,t){return(0,$a.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode})},gC=function(e){return(0,$a.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}})};var yC=function(e){var n=(0,Rc.i)({props:e,name:"MuiCssBaseline"}),r=n.children,i=n.enableColorScheme,o=void 0!==i&&i;return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)(nh,{styles:function(e){return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={};n&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((function(t){var n,i=(0,c.Z)(t,2),o=i[0],a=i[1];r[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:null==(n=a.palette)?void 0:n.mode}}));var i=(0,$a.Z)({html:mC(e,n),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,$a.Z)({margin:0},gC(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r),o=null==(t=e.components)||null==(t=t.MuiCssBaseline)?void 0:t.styleOverrides;return o&&(i=[i,o]),i}(e,o)}}),r]})};function bC(e){return(0,ic.ZP)("MuiAppBar",e)}(0,Dc.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var xC=["className","color","enableColorOnDark","position"],wC=function(e,t){return e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t},kC=(0,Mc.ZP)(Av,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,Ec.Z)(n.position))],t["color".concat((0,Ec.Z)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,$a.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!t.vars&&(0,$a.Z)({},"default"===n.color&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===t.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&(0,$a.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,$a.Z)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:wC(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:wC(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:wC(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:wC(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},!["inherit","transparent"].includes(n.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),SC=t.forwardRef((function(e,t){var n=(0,Rc.i)({props:e,name:"MuiAppBar"}),r=n.className,i=n.color,o=void 0===i?"primary":i,a=n.enableColorOnDark,s=void 0!==a&&a,l=n.position,u=void 0===l?"fixed":l,c=(0,Aa.Z)(n,xC),d=(0,$a.Z)({},n,{color:o,position:u,enableColorOnDark:s}),h=function(e){var t=e.color,n=e.position,r=e.classes,i={root:["root","color".concat((0,Ec.Z)(t)),"position".concat((0,Ec.Z)(n))]};return(0,oc.Z)(i,bC,r)}(d);return(0,f.jsx)(kC,(0,$a.Z)({square:!0,component:"header",ownerState:d,elevation:4,className:(0,rc.Z)(h.root,r,"fixed"===u&&"mui-fixed"),ref:t},c))}));function CC(e){return(0,ic.ZP)("MuiToolbar",e)}(0,Dc.Z)("MuiToolbar",["root","gutters","regular","dense"]);var PC=["className","component","disableGutters","variant"],_C=(0,Mc.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,$a.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&(0,g.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===n.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),ZC=t.forwardRef((function(e,t){var n=(0,Rc.i)({props:e,name:"MuiToolbar"}),r=n.className,i=n.component,o=void 0===i?"div":i,a=n.disableGutters,s=void 0!==a&&a,l=n.variant,u=void 0===l?"regular":l,c=(0,Aa.Z)(n,PC),d=(0,$a.Z)({},n,{component:o,disableGutters:s,variant:u}),h=function(e){var t=e.classes,n={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,oc.Z)(n,CC,t)}(d);return(0,f.jsx)(_C,(0,$a.Z)({as:o,className:(0,rc.Z)(h.root,r),ref:t,ownerState:d},c))}));function EC(e){return(0,ic.ZP)("MuiIconButton",e)}var MC=(0,Dc.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),RC=["edge","children","className","color","disabled","disableFocusRipple","size"],OC=(0,Mc.ZP)($d,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,Ec.Z)(n.color))],n.edge&&t["edge".concat((0,Ec.Z)(n.edge))],t["size".concat((0,Ec.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,$a.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,cd.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t,n=e.theme,r=e.ownerState,i=null==(t=(n.vars||n).palette)?void 0:t[r.color];return(0,$a.Z)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,$a.Z)({color:null==i?void 0:i.main},!r.disableRipple&&{"&:hover":(0,$a.Z)({},i&&{backgroundColor:n.vars?"rgba(".concat(i.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,cd.Fq)(i.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:n.typography.pxToRem(28)},(0,g.Z)({},"&.".concat(MC.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),TC=t.forwardRef((function(e,t){var n=(0,Rc.i)({props:e,name:"MuiIconButton"}),r=n.edge,i=void 0!==r&&r,o=n.children,a=n.className,s=n.color,l=void 0===s?"default":s,u=n.disabled,c=void 0!==u&&u,d=n.disableFocusRipple,h=void 0!==d&&d,p=n.size,v=void 0===p?"medium":p,m=(0,Aa.Z)(n,RC),g=(0,$a.Z)({},n,{edge:i,color:l,disabled:c,disableFocusRipple:h,size:v}),y=function(e){var t=e.classes,n=e.disabled,r=e.color,i=e.edge,o=e.size,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,Ec.Z)(r)),i&&"edge".concat((0,Ec.Z)(i)),"size".concat((0,Ec.Z)(o))]};return(0,oc.Z)(a,EC,t)}(g);return(0,f.jsx)(OC,(0,$a.Z)({className:(0,rc.Z)(y.root,a),centerRipple:!0,focusRipple:!h,disabled:c,ref:t},m,{ownerState:g,children:o}))})),jC=(0,d.Z)((0,f.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function zC(e){return(0,ic.ZP)("MuiAvatar",e)}(0,Dc.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var AC=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],NC=["component","slots","slotProps"],LC=["component"];var IC=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],DC=(0,Mc.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,$a.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,$a.Z)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),FC=(0,Mc.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,t){return t.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),WC=(0,Mc.ZP)(jC,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var BC=t.forwardRef((function(e,n){var r=(0,Rc.i)({props:e,name:"MuiAvatar"}),i=r.alt,o=r.children,a=r.className,s=r.component,l=void 0===s?"div":s,u=r.slots,d=void 0===u?{}:u,h=r.slotProps,p=void 0===h?{}:h,v=r.imgProps,m=r.sizes,y=r.src,b=r.srcSet,x=r.variant,w=void 0===x?"circular":x,k=(0,Aa.Z)(r,IC),S=null,C=function(e){var n=e.crossOrigin,r=e.referrerPolicy,i=e.src,o=e.srcSet,a=t.useState(!1),s=(0,c.Z)(a,2),l=s[0],u=s[1];return t.useEffect((function(){if(i||o){u(!1);var e=!0,t=new Image;return t.onload=function(){e&&u("loaded")},t.onerror=function(){e&&u("error")},t.crossOrigin=n,t.referrerPolicy=r,t.src=i,o&&(t.srcset=o),function(){e=!1}}}),[n,r,i,o]),l}((0,$a.Z)({},v,{src:y,srcSet:b})),P=y||b,_=P&&"error"!==C,Z=(0,$a.Z)({},r,{colorDefault:!_,component:l,variant:w}),E=function(e){var t=e.classes,n={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,oc.Z)(n,zC,t)}(Z),M=function(e,t){var n=t.className,r=t.elementType,i=t.ownerState,o=t.externalForwardedProps,a=t.getSlotOwnerState,s=t.internalForwardedProps,l=(0,Aa.Z)(t,AC),u=o.component,c=o.slots,d=void 0===c?(0,g.Z)({},e,void 0):c,f=o.slotProps,h=void 0===f?(0,g.Z)({},e,void 0):f,p=(0,Aa.Z)(o,NC),v=d[e]||r,m=gp(h[e],i),y=mp((0,$a.Z)({className:n},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),b=y.props.component,x=y.internalRef,w=(0,Aa.Z)(y.props,LC),k=(0,Vf.Z)(x,null==m?void 0:m.ref,t.ref),S=a?a(w):{},C=(0,$a.Z)({},i,S),P="root"===e?b||u:b,_=hp(v,(0,$a.Z)({},"root"===e&&!u&&!d[e]&&s,"root"!==e&&!d[e]&&s,w,P&&{as:P},{ref:k}),C);return Object.keys(S).forEach((function(e){delete _[e]})),[v,_]}("img",{className:E.img,elementType:FC,externalForwardedProps:{slots:d,slotProps:{img:(0,$a.Z)({},v,p.img)}},additionalProps:{alt:i,src:y,srcSet:b,sizes:m},ownerState:Z}),R=(0,c.Z)(M,2),O=R[0],T=R[1];return S=_?(0,f.jsx)(O,(0,$a.Z)({},T)):o||0===o?o:P&&i?i[0]:(0,f.jsx)(WC,{ownerState:Z,className:E.fallback}),(0,f.jsx)(DC,(0,$a.Z)({as:l,ownerState:Z,className:(0,rc.Z)(E.root,a),ref:n},k,{children:S}))})),HC=BC,VC=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function UC(e,t,n){var r,i=function(e,t,n){var r,i=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=(0,Ap.Z)(t);if(t.fakeTransform)r=t.fakeTransform;else{var s=a.getComputedStyle(t);r=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var l=0,u=0;if(r&&"none"!==r&&"string"===typeof r){var c=r.split("(")[1].split(")")[0].split(",");l=parseInt(c[4],10),u=parseInt(c[5],10)}return"left"===e?"translateX(".concat(o?o.right+l-i.left:a.innerWidth+l-i.left,"px)"):"right"===e?"translateX(-".concat(o?i.right-o.left-l:i.left+i.width-l,"px)"):"up"===e?"translateY(".concat(o?o.bottom+u-i.top:a.innerHeight+u-i.top,"px)"):"translateY(-".concat(o?i.top-o.top+i.height-u:i.top+i.height-u,"px)")}(e,t,"function"===typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}var YC=t.forwardRef((function(e,n){var r=Lc(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},a=e.addEndListener,s=e.appear,l=void 0===s||s,u=e.children,c=e.container,d=e.direction,h=void 0===d?"down":d,p=e.easing,v=void 0===p?i:p,m=e.in,g=e.onEnter,y=e.onEntered,b=e.onEntering,x=e.onExit,w=e.onExited,k=e.onExiting,S=e.style,C=e.timeout,P=void 0===C?o:C,_=e.TransitionComponent,Z=void 0===_?Up:_,E=(0,Aa.Z)(e,VC),M=t.useRef(null),R=(0,fd.Z)(u.ref,M,n),O=function(e){return function(t){e&&(void 0===t?e(M.current):e(M.current,t))}},T=O((function(e,t){UC(h,e,c),Yp(e),g&&g(e,t)})),j=O((function(e,t){var n=Xp({timeout:P,style:S,easing:v},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,$a.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,$a.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",b&&b(e,t)})),z=O(y),A=O(k),N=O((function(e){var t=Xp({timeout:P,style:S,easing:v},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),UC(h,e,c),x&&x(e)})),L=O((function(e){e.style.webkitTransition="",e.style.transition="",w&&w(e)})),I=t.useCallback((function(){M.current&&UC(h,M.current,c)}),[h,c]);return t.useEffect((function(){if(!m&&"down"!==h&&"right"!==h){var e=(0,zp.Z)((function(){M.current&&UC(h,M.current,c)})),t=(0,Ap.Z)(M.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[h,m,c]),t.useEffect((function(){m||I()}),[m,I]),(0,f.jsx)(Z,(0,$a.Z)({nodeRef:M,onEnter:T,onEntered:z,onEntering:j,onExit:N,onExited:L,onExiting:A,addEndListener:function(e){a&&a(M.current,e)},appear:l,in:m,timeout:P},E,{children:function(e,n){return t.cloneElement(u,(0,$a.Z)({ref:R,style:(0,$a.Z)({visibility:"exited"!==e||m?void 0:"hidden"},S,u.props.style)},n))}}))})),XC=YC;function qC(e){return(0,ic.ZP)("MuiDrawer",e)}(0,Dc.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var $C=["BackdropProps"],GC=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],KC=function(e,t){var n=e.ownerState;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},QC=(0,Mc.ZP)(Rv,{name:"MuiDrawer",slot:"Root",overridesResolver:KC})((function(e){var t=e.theme;return{zIndex:(t.vars||t).zIndex.drawer}})),JC=(0,Mc.ZP)("div",{shouldForwardProp:dd.Z,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:KC})({flex:"0 0 auto"}),eP=(0,Mc.ZP)(Av,{name:"MuiDrawer",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["paperAnchor".concat((0,Ec.Z)(n.anchor))],"temporary"!==n.variant&&t["paperAnchorDocked".concat((0,Ec.Z)(n.anchor))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,$a.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),tP={left:"right",right:"left",top:"down",bottom:"up"};var nP=t.forwardRef((function(e,n){var r=(0,Rc.i)({props:e,name:"MuiDrawer"}),i=Lc(),o=dp(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},s=r.anchor,l=void 0===s?"left":s,u=r.BackdropProps,c=r.children,d=r.className,h=r.elevation,p=void 0===h?16:h,v=r.hideBackdrop,m=void 0!==v&&v,g=r.ModalProps,y=(void 0===g?{}:g).BackdropProps,b=r.onClose,x=r.open,w=void 0!==x&&x,k=r.PaperProps,S=void 0===k?{}:k,C=r.SlideProps,P=r.TransitionComponent,_=void 0===P?XC:P,Z=r.transitionDuration,E=void 0===Z?a:Z,M=r.variant,R=void 0===M?"temporary":M,O=(0,Aa.Z)(r.ModalProps,$C),T=(0,Aa.Z)(r,GC),j=t.useRef(!1);t.useEffect((function(){j.current=!0}),[]);var z=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?tP[t]:t}({direction:o?"rtl":"ltr"},l),A=l,N=(0,$a.Z)({},r,{anchor:A,elevation:p,open:w,variant:R},T),L=function(e){var t=e.classes,n=e.anchor,r=e.variant,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,Ec.Z)(n)),"temporary"!==r&&"paperAnchorDocked".concat((0,Ec.Z)(n))]};return(0,oc.Z)(i,qC,t)}(N),I=(0,f.jsx)(eP,(0,$a.Z)({elevation:"temporary"===R?p:0,square:!0},S,{className:(0,rc.Z)(L.paper,S.className),ownerState:N,children:c}));if("permanent"===R)return(0,f.jsx)(JC,(0,$a.Z)({className:(0,rc.Z)(L.root,L.docked,d),ownerState:N,ref:n},T,{children:I}));var D=(0,f.jsx)(_,(0,$a.Z)({in:w,direction:tP[z],timeout:E,appear:j.current},C,{children:I}));return"persistent"===R?(0,f.jsx)(JC,(0,$a.Z)({className:(0,rc.Z)(L.root,L.docked,d),ownerState:N,ref:n},T,{children:D})):(0,f.jsx)(QC,(0,$a.Z)({BackdropProps:(0,$a.Z)({},u,y,{transitionDuration:E}),className:(0,rc.Z)(L.root,L.modal,d),open:w,ownerState:N,onClose:b,hideBackdrop:m,ref:n},T,O,{children:D}))})),rP=["className"],iP=(0,Mc.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.theme,n=e.ownerState;return(0,$a.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),oP=t.forwardRef((function(e,n){var r=(0,Rc.i)({props:e,name:"MuiListItemIcon"}),i=r.className,o=(0,Aa.Z)(r,rP),a=t.useContext(xp),s=(0,$a.Z)({},r,{alignItems:a.alignItems}),l=function(e){var t=e.alignItems,n=e.classes,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,oc.Z)(r,Ox,n)}(s);return(0,f.jsx)(iP,(0,$a.Z)({className:(0,rc.Z)(l.root,i),ownerState:s,ref:n},o))}));function aP(e){return(0,ic.ZP)("MuiDialogContent",e)}(0,Dc.Z)("MuiDialogContent",["root","dividers"]);var sP=["className","dividers"],lP=(0,Mc.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dividers&&t.dividers]}})((function(e){var t=e.theme,n=e.ownerState;return(0,$a.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:(0,g.Z)({},".".concat(Lg.root," + &"),{paddingTop:0}))})),uP=t.forwardRef((function(e,t){var n=(0,Rc.i)({props:e,name:"MuiDialogContent"}),r=n.className,i=n.dividers,o=void 0!==i&&i,a=(0,Aa.Z)(n,sP),s=(0,$a.Z)({},n,{dividers:o}),l=function(e){var t=e.classes,n={root:["root",e.dividers&&"dividers"]};return(0,oc.Z)(n,aP,t)}(s);return(0,f.jsx)(lP,(0,$a.Z)({className:(0,rc.Z)(l.root,r),ownerState:s,ref:t},a))}));function cP(e){return(0,ic.ZP)("MuiDialogActions",e)}(0,Dc.Z)("MuiDialogActions",["root","spacing"]);var dP=["className","disableSpacing"],fP=(0,Mc.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,$a.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),hP=t.forwardRef((function(e,t){var n=(0,Rc.i)({props:e,name:"MuiDialogActions"}),r=n.className,i=n.disableSpacing,o=void 0!==i&&i,a=(0,Aa.Z)(n,dP),s=(0,$a.Z)({},n,{disableSpacing:o}),l=function(e){var t=e.classes,n={root:["root",!e.disableSpacing&&"spacing"]};return(0,oc.Z)(n,cP,t)}(s);return(0,f.jsx)(fP,(0,$a.Z)({className:(0,rc.Z)(l.root,r),ownerState:s,ref:t},a))}));var pP=function(e){var n=e.children,r=e.theme,i=pl(),o=t.useMemo((function(){var e=null===i?r:function(e,t){return"function"===typeof t?t(e):(0,$a.Z)({},e,t)}(i,r);return null!=e&&(e[vl]=null!==i),e}),[r,i]);return(0,f.jsx)(hl.Provider,{value:o,children:n})},vP=n(4769),mP={};function gP(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.useMemo((function(){var t=e&&n[e]||n;if("function"===typeof r){var o=r(t),a=e?(0,$a.Z)({},n,(0,g.Z)({},e,o)):o;return i?function(){return a}:a}return e?(0,$a.Z)({},n,(0,g.Z)({},e,r)):(0,$a.Z)({},n,r)}),[e,n,r,i])}var yP=function(e){var t=e.children,n=e.theme,r=e.themeId,i=uc(mP),o=pl()||mP,a=gP(r,i,n),s=gP(r,o,n,!0),l="rtl"===a.direction;return(0,f.jsx)(pP,{theme:s,children:(0,f.jsx)(lc.T.Provider,{value:a,children:(0,f.jsx)(fp,{value:l,children:(0,f.jsx)(vP.Z,{value:null==a?void 0:a.components,children:t})})})})},bP=["theme"];function xP(e){var t=e.theme,n=(0,Aa.Z)(e,bP),r=t[Nc.Z];return(0,f.jsx)(yP,(0,$a.Z)({},n,{themeId:r?Nc.Z:void 0,theme:r||t}))}var wP=n(9161),kP=(0,od.Z)({palette:{mode:"light"},typography:{fontFamily:"Roboto",fontWeightBold:700}}),SP=(0,od.Z)({palette:{mode:"dark"},typography:{fontFamily:"Roboto",fontWeightBold:700}});var CP=function(){var e=(0,t.useState)(!0),n=(0,c.Z)(e,2),r=n[0],i=n[1],a=r?240:60,l=(0,t.useState)("https://localhost"),d=(0,c.Z)(l,2),h=d[0],p=d[1],v=(0,t.useState)(8001),m=(0,c.Z)(v,2),g=m[0],y=m[1],b=(0,t.useState)("LiveView"),x=(0,c.Z)(b,2),w=x[0],k=x[1],S=(0,t.useState)(!1),C=(0,c.Z)(S,2),P=C[0],_=C[1],Z=(0,t.useState)(!0),E=(0,c.Z)(Z,2),M=E[0],R=E[1],O=(0,t.useState)([{i:"widget1",x:0,y:0,w:2,h:2},{i:"widget2",x:2,y:0,w:2,h:2},{i:"widget3",x:4,y:0,w:2,h:2},{i:"FlowStop",x:6,y:0,w:5,h:5},{i:"Lightsheet",x:0,y:2,w:5,h:5}]),T=(0,c.Z)(O,2),j=T[0],z=T[1];(0,t.useEffect)((function(){var e=window.location.hostname,t=[8001,8002,443],n=function(){var n=u(s().mark((function n(){var r;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,A(e,t);case 3:r=n.sent,p("https://".concat(e)),y(r),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),console.error("No valid API port found.");case 11:case"end":return n.stop()}}),n,null,[[0,8]])})));return function(){return n.apply(this,arguments)}}();e.startsWith("youseetoo.github.io")||n()}),[]);var A=function(){var e=u(s().mark((function e(t,n){var r,i,a,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=o(n),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=19;break}return a=i.value,e.prev=5,l="https://".concat(t,":").concat(a,"/openapi.json"),e.next=9,vC.get(l,{timeout:3e3});case 9:if(200!==e.sent.status){e.next=12;break}return e.abrupt("return",a);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(5),console.error("Failed to retrieve API from ".concat(t,":").concat(a));case 17:e.next=3;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(1),r.e(e.t1);case 24:return e.prev=24,r.f(),e.finish(24);case 27:throw new Error("No valid port found for API.");case 28:case"end":return e.stop()}}),e,null,[[1,21,24,27],[5,14]])})));return function(t,n){return e.apply(this,arguments)}}(),N=function(){_(!1)},L=function(e){k(e)};return(0,f.jsx)(xP,{theme:M?SP:kP,children:(0,f.jsxs)(tc,{hostIP:h,hostPort:g,children:[(0,f.jsx)(yC,{}),(0,f.jsxs)(ud,{sx:{display:"flex"},children:[(0,f.jsx)(SC,{position:"fixed",sx:{zIndex:function(e){return e.zIndex.drawer+1}},children:(0,f.jsxs)(ZC,{children:[(0,f.jsx)(TC,{edge:"start",color:"inherit","aria-label":"menu",onClick:function(){return i(!r)},children:(0,f.jsx)(Ow,{})}),(0,f.jsx)(nd,{variant:"h6",sx:{flexGrow:1,fontWeight:"bold"},children:"Microscope Control"}),(0,f.jsx)(nd,{variant:"h6",sx:{fontWeight:"bold"},children:"Light/dark"}),(0,f.jsx)(Ff,{checked:M,onChange:function(){R((function(e){return!e}))},color:"default",inputProps:{"aria-label":"toggle theme"}}),(0,f.jsx)(HC,{src:"/logo192.png"})]})}),(0,f.jsx)(nP,{variant:"permanent",open:r,sx:{width:a,flexShrink:0,"& .MuiDrawer-paper":{width:a,boxSizing:"border-box",top:64}},children:(0,f.jsxs)(Cp,{children:[(0,f.jsxs)(Jg,{button:!0,onClick:function(){return L("LiveView")},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(Tw,{})}),(0,f.jsx)(iy,{primary:r?"Live View":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){return L("HistoScan")},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(jw,{})}),(0,f.jsx)(iy,{primary:r?"HistoScan":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){return L("SocketView")},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(wP.Z,{})}),(0,f.jsx)(iy,{primary:r?"SocketView":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){return L("Lightsheet")},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(Lw.Z,{})}),(0,f.jsx)(iy,{primary:r?"Lightsheet":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){return L("FlowStop")},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(Iw.Z,{})}),(0,f.jsx)(iy,{primary:r?"FlowStop":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){return L("Widgets")},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(zw,{})}),(0,f.jsx)(iy,{primary:r?"Widgets":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){_(!0)},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(Nw.Z,{})}),(0,f.jsx)(iy,{primary:r?"Connections":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){return L("About")},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(Aw,{})}),(0,f.jsx)(iy,{primary:r?"About":""})]}),(0,f.jsxs)(Jg,{button:!0,onClick:function(){return i(!r)},children:[(0,f.jsx)(oP,{children:(0,f.jsx)(Ow,{})}),(0,f.jsx)(iy,{primary:r?"Minimize":""})]})]})}),(0,f.jsxs)(ud,{component:"main",sx:{flexGrow:1,p:3,marginTop:"64px"},children:["LiveView"===w&&(0,f.jsx)(qa,{children:(0,f.jsx)(uy,{hostIP:h,hostPort:g})}),"HistoScan"===w&&(0,f.jsx)(bw,{children:(0,f.jsx)(lw,{hostIP:h,hostPort:g})}),"Lightsheet"===w&&(0,f.jsx)(bw,{children:(0,f.jsx)(Rw,{hostIP:h,hostPort:g})}),"FlowStop"===w&&(0,f.jsx)(bw,{children:(0,f.jsx)(vw,{hostIP:h,hostPort:g})}),"SocketView"===w&&(0,f.jsx)(Hy,{hostIP:h,hostPort:g}),"Widgets"===w&&(0,f.jsx)(bw,{children:(0,f.jsx)(Zw,{hostIP:h,hostPort:g,layout:j,onLayoutChange:function(e){return z(e)}})})]}),(0,f.jsxs)(Ag,{open:P,onClose:N,children:[(0,f.jsx)(Fg,{children:"Enter IP Address"}),(0,f.jsxs)(uP,{children:[(0,f.jsx)(Nm,{autoFocus:!0,margin:"dense",id:"ip-address",label:"IP Address",type:"text",fullWidth:!0,value:h,onChange:function(e){var t=e.target.value.trim();t.startsWith("http://")||t.startsWith("https://")||(t="https://"+t),t.startsWith("http://")&&(t=t.replace("http://","https://")),p(t)}}),(0,f.jsx)(Nm,{margin:"dense",id:"port",label:"Port",type:"text",fullWidth:!0,value:g,onChange:function(e){var t=e.target.value.trim();y(t)}})]}),(0,f.jsxs)(hP,{children:[(0,f.jsx)(af,{onClick:N,children:"Cancel"}),(0,f.jsx)(af,{onClick:function(){p(h),y(g),N()},children:"Save"})]})]})]})]})})},PP=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,r=t.getFID,i=t.getFCP,o=t.getLCP,a=t.getTTFB;n(e),r(e),i(e),o(e),a(e)}))};r.createRoot(document.getElementById("root")).render((0,f.jsx)(t.StrictMode,{children:(0,f.jsx)(CP,{})})),PP()}()}();
-//# sourceMappingURL=main.dff3e343.js.map
\ No newline at end of file
+/*! For license information please see main.859fd8a1.js.LICENSE.txt */
+!function(){var e={5911:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(x,--y):0,m--,10===b&&(m=1,v--),b}function C(){return b=y2||E(b)>3?"":" "}function j(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return Z(e,_()+(t<6&&32==P()&&32==C()))}function z(e){for(;C();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&z(b);break;case 40:41===e&&z(e);break;case 92:C()}return y}function A(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==P()););return"/*"+Z(t,y-1)+"*"+o(47===e?e:C())}function N(e){for(;!E(P());)C();return Z(e,y)}var L="-ms-",I="-moz-",D="-webkit-",F="comm",W="rule",B="decl",H="@keyframes";function V(e,t){for(var n="",r=h(e),i=0;i0&&f(I)-g&&p(b>32?G(I+";",r,n,g-1):G(l(I," ","")+";",r,n,g-2),h);break;case 59:I+=";";default:if(p(L=q(I,t,n,v,m,i,d,M,R=[],z=[],g),a),123===E)if(0===m)X(I,t,L,L,R,a,g,d,z);else switch(99===y&&110===c(I,3)?100:y){case 100:case 108:case 109:case 115:X(e,L,L,r&&p(q(e,L,L,0,0,i,d,M,i,R=[],g),z),i,z,g,d,r?R:z);break;default:X(I,L,L,L,[""],z,0,d,z)}}v=m=b=0,w=Z=1,M=I="",g=s;break;case 58:g=1+f(I),b=x;default:if(w<1)if(123==E)--w;else if(125==E&&0==w++&&125==S())continue;switch(I+=o(E),E*w){case 38:Z=m>0?1:(I+="\f",-1);break;case 44:d[v++]=(f(I)-1)*Z,Z=1;break;case 64:45===P()&&(I+=O(C())),y=P(),m=g=f(M=I+=N(_())),E++;break;case 45:45===x&&2==f(I)&&(w=0)}}return a}function q(e,t,n,r,o,a,u,c,f,p,v){for(var m=o-1,g=0===o?a:[""],y=h(g),b=0,x=0,k=0;b0?g[S]+" "+C:l(C,/&\f/g,g[S])))&&(f[k++]=P);return w(e,t,n,0===o?W:c,f,p,v)}function $(e,t,n){return w(e,t,n,F,o(b),d(e,2,-2),0)}function G(e,t,n,r){return w(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var K=function(e,t,n){for(var r=0,i=0;r=i,i=P(),38===r&&12===i&&(t[n]=1),!E(i);)C();return Z(e,y)},Q=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch(E(r)){case 0:38===r&&12===P()&&(t[n]=1),e[n]+=K(y-1,t,n);break;case 2:e[n]+=O(r);break;case 4:if(44===r){e[++n]=58===P()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(M(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var i=[],o=Q(t,i),a=n.props,s=0,l=0;s6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+I+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+D)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===c(e,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return D+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+L+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+L+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+L+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case H:return V([k(e,{value:l(e.value,"@","@"+D)})],r);case W:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([k(e,{props:[l(t,/:(plac\w+)/,":"+D+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,L+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,a=e.stylisPlugins||re,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:p}}},2561:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return a},j:function(){return s}});var i=n(2791),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},5438:function(e,t,n){"use strict";n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},1162:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M14.5 17c0 1.65-1.35 3-3 3s-3-1.35-3-3h2c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1H2v-2h9.5c1.65 0 3 1.35 3 3M19 6.5C19 4.57 17.43 3 15.5 3S12 4.57 12 6.5h2c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S16.33 8 15.5 8H2v2h13.5c1.93 0 3.5-1.57 3.5-3.5m-.5 4.5H2v2h16.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5v2c1.93 0 3.5-1.57 3.5-3.5S20.43 11 18.5 11"}),"Air")},6711:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},8384:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},9161:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Comment")},4250:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33m8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2m-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0"}),"ThreeDRotation")},2140:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),o=n(184);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"}),"WifiSharp")},5649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(186)},1020:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});n(2791);var r=n(4769);n(184);function i(e){return(0,r.i)(e)}},7:function(e,t){"use strict";t.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},2460:function(e,t){"use strict";t.Z={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},6532:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case v:case p:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},8457:function(e,t,n){"use strict";n(6532)},4584:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(7462),i=n(3366),o=n(6187),a=n(7093),s=n(7416),l=n(104),u=n(8809),c=n(4942);function d(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,c.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,c.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var f=n(4131),h={black:"#000",white:"#fff"},p={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"},v={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m=n(2460),g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},x=n(7),w=["mode","contrastThreshold","tonalOffset"],k={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:h.white,default:h.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}},S={text:{primary:h.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:h.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 C(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.$n)(e.main,i):"dark"===t&&(e.dark=(0,f._j)(e.main,o)))}function P(e){var t=e.mode,n=void 0===t?"light":t,s=e.contrastThreshold,l=void 0===s?3:s,u=e.tonalOffset,c=void 0===u?.2:u,d=(0,i.Z)(e,w),P=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}(n),_=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(n),Z=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m.Z[500],light:m.Z[300],dark:m.Z[700]}:{main:m.Z[700],light:m.Z[400],dark:m.Z[800]}}(n),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(n),M=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:x.Z[400],light:x.Z[300],dark:x.Z[700]}:{main:x.Z[800],light:x.Z[500],dark:x.Z[900]}}(n),R=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(n);function O(e){return(0,f.mi)(e,S.text.primary)>=l?S.text.primary:k.text.primary}var T=function(e){var t=e.color,n=e.name,i=e.mainShade,a=void 0===i?500:i,s=e.lightShade,l=void 0===s?300:s,u=e.darkShade,d=void 0===u?700:u;if(!(t=(0,r.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return C(t,"light",l,c),C(t,"dark",d,c),t.contrastText||(t.contrastText=O(t.main)),t},j={dark:S,light:k};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},h),mode:n,primary:T({color:P,name:"primary"}),secondary:T({color:_,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:Z,name:"error"}),warning:T({color:R,name:"warning"}),info:T({color:E,name:"info"}),success:T({color:M,name:"success"}),grey:p,contrastThreshold:l,getContrastText:O,augmentColor:T,tonalOffset:c},j[n]),d)}var _=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var Z={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function M(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,s=void 0===o?E:o,l=n.fontSize,u=void 0===l?14:l,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,h=void 0===f?400:f,p=n.fontWeightMedium,v=void 0===p?500:p,m=n.fontWeightBold,g=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,w=n.pxToRem,k=(0,i.Z)(n,_);var S=u/14,C=w||function(e){return"".concat(e/b*S,"rem")},P=function(e,t,n,i,o){return(0,r.Z)({fontFamily:s,fontWeight:e,fontSize:C(t),lineHeight:n},s===E?{letterSpacing:"".concat((a=i/t,Math.round(1e5*a)/1e5),"em")}:{},o,x);var a},M={h1:P(d,96,1.167,-1.5),h2:P(d,60,1.2,-.5),h3:P(h,48,1.167,0),h4:P(h,34,1.235,.25),h5:P(h,24,1.334,0),h6:P(v,20,1.6,.15),subtitle1:P(h,16,1.75,.15),subtitle2:P(v,14,1.57,.1),body1:P(h,16,1.5,.15),body2:P(h,14,1.43,.15),button:P(v,14,1.75,.4,Z),caption:P(h,12,1.66,.4),overline:P(h,12,2.66,1,Z),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:b,pxToRem:C,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:v,fontWeightBold:g},M),k,{clone:!1})}function R(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)],T=["duration","easing","delay"],j={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)"},z={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function A(e){return"".concat(Math.round(e),"ms")}function N(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function L(e){var t=(0,r.Z)({},j,e.easing),n=(0,r.Z)({},z,e.duration);return(0,r.Z)({getAutoHeightDuration:N,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.duration,a=void 0===o?n.standard:o,s=r.easing,l=void 0===s?t.easeInOut:s,u=r.delay,c=void 0===u?0:u;(0,i.Z)(r,T);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof a?a:A(a)," ").concat(l," ").concat("string"===typeof c?c:A(c))})).join(",")}},e,{easing:t,duration:n})}var I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},D=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,c=e.palette,f=void 0===c?{}:c,h=e.transitions,p=void 0===h?{}:h,v=e.typography,m=void 0===v?{}:v,g=(0,i.Z)(e,D);if(e.vars)throw new Error((0,o.Z)(18));var y=P(f),b=(0,u.Z)(e),x=(0,a.Z)(b,{mixins:d(b.breakpoints,n),palette:y,shadows:O.slice(),typography:M(y,m),transitions:L(p),zIndex:(0,r.Z)({},I)});x=(0,a.Z)(x,g);for(var w=arguments.length,k=new Array(w>1?w-1:0),S=1;S96?f:h},v=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,u.hC)(t,n,r),(0,d.L)((function(){return(0,u.My)(t,n,r)})),null},g=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var f=v(t,n,s),h=f||p(d),g=!h("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,w=1;w1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));var r,o=e.substring(t+1,e.length-1);if("color"===n){if(r=(o=o.split(" ")).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(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)})),colorSpace:r}}var u=function(e){var t=l(e);return t.values.slice(0,3).map((function(e,n){return-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e})).join(" ")};function c(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function d(e){var t=(e=l(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),c({type:s,values:u})}function f(e){var t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,c(e)}function p(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return c(e)}function v(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return c(e)}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?p(e,t):v(e,t)}},7012:function(e,t,n){"use strict";var r=n(861).default,i=n(7424).default,o=n(4836);t.ZP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,o=void 0===n?g:n,c=e.rootShouldForwardProp,f=void 0===c?m:c,h=e.slotShouldForwardProp,v=void 0===h?m:h,w=function(e){return(0,d.default)((0,a.default)({},e,{theme:b((0,a.default)({},e,{defaultTheme:o,themeId:t}))}))};return w.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.internal_processStyles)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var c=n.name,d=n.slot,h=n.skipVariantsResolver,g=n.skipSx,k=n.overridesResolver,S=void 0===k?function(e){if(!e)return null;return function(t,n){return n[e]}}(y(d)):k,C=(0,s.default)(n,p),P=void 0!==h?h:d&&"Root"!==d&&"root"!==d||!1,_=g||!1;var Z=m;"Root"===d||"root"===d?Z=f:d?Z=v:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(Z=void 0);var E=(0,l.default)(e,(0,a.default)({shouldForwardProp:Z,label:undefined},C)),M=function(e){return"function"===typeof e&&e.__emotion_real!==e||(0,u.isPlainObject)(e)?function(n){return x(e,(0,a.default)({},n,{theme:b({theme:n.theme,defaultTheme:o,themeId:t})}))}:e},R=function(n){for(var s=M(n),l=arguments.length,u=new Array(l>1?l-1:0),d=1;d0){var p=new Array(h).fill("");(s=[].concat(r(n),r(p))).raw=[].concat(r(n.raw),r(p))}var v=E.apply(void 0,[s].concat(r(f)));return e.muiName&&(v.muiName=e.muiName),v};return E.withConfig&&(R.withConfig=E.withConfig),R}};var a=o(n(434)),s=o(n(7071)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(6649)),u=n(1037),c=(o(n(4884)),o(n(1627)),o(n(4652))),d=o(n(7150)),f=["ownerState"],h=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var g=(0,c.default)(),y=function(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e};function b(e){var t,n=e.defaultTheme,r=e.theme,i=e.themeId;return t=r,0===Object.keys(t).length?n:r[i]||r}function x(e,t){var n=t.ownerState,r=(0,s.default)(t,f),i="function"===typeof e?e((0,a.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((function(e){return x(e,(0,a.default)({ownerState:n},r))}));if(i&&"object"===typeof i&&Array.isArray(i.variants)){var o=i.variants,l=void 0===o?[]:o,u=(0,s.default)(i,h);return l.forEach((function(e){var t=!0;"function"===typeof e.props?t=e.props((0,a.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((function(i){(null==n?void 0:n[i])!==e.props[i]&&r[i]!==e.props[i]&&(t=!1)})),t&&(Array.isArray(u)||(u=[u]),u.push("function"===typeof e.style?e.style((0,a.default)({ownerState:n},r,n)):e.style))})),u}return i}},4769:function(e,t,n){"use strict";n.d(t,{i:function(){return s}});var r=n(2791),i=n(8748),o=n(184),a=r.createContext(void 0);function s(e){return function(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.components||!t.components[n])return r;var o=t.components[n];return o.defaultProps?(0,i.Z)(o.defaultProps,r):o.styleOverrides||o.variants?r:(0,i.Z)(o,r)}({props:e.props,name:e.name,theme:{components:r.useContext(a)}})}t.Z=function(e){var t=e.value,n=e.children;return(0,o.jsx)(a.Provider,{value:t,children:n})}},1184:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},P$:function(){return c},VO:function(){return i},W8:function(){return s},dt:function(){return u},k9:function(){return a}});var r=n(7093),i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(i[e],"px)")}};function a(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var a=r.breakpoints||o;return t.reduce((function(e,r,i){return e[a.up(a.keys[i])]=n(t[i]),e}),{})}if("object"===typeof t){var s=r.breakpoints||o;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(s.values||i).indexOf(r)){e[s.up(r)]=n(t[r],r)}else{var o=r;e[o]=t[o]}return e}),{})}return n(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function u(e){for(var t=s(e),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,h=e.palette,p=void 0===h?{}:h,v=e.spacing,m=e.shape,g=void 0===m?{}:m,y=(0,i.Z)(e,f),b=(0,a.Z)(n),x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,l.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?k-1:0),C=1;C2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=(0,r.Z)(t,2),i=n[0],o=n[1],a=s[i],c=l[o]||"";return Array.isArray(c)?c.map((function(e){return a+e})):[a+c]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[].concat(d,f);function p(e,t,n,r){var i,a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function v(e){return p(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;var o=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=m(t,n),e}),{})}}(c(n),r),a=e[n];return(0,i.k9)(e,a,o)}function y(e,t){var n=v(e.theme);return Object.keys(e).map((function(r){return g(e,t,r,n)})).reduce(a.Z,{})}function b(e){return y(e,d)}function x(e){return y(e,f)}function w(e){return y(e,h)}b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=f,w.propTypes={},w.filterProps=h},8529:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return s}});var r=n(4942),i=n(1122),o=n(1184);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r,i,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,l=void 0===n?e.prop:n,u=e.themeKey,c=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=a(e.theme,u)||{};return(0,o.k9)(e,n,(function(e){var n=s(d,c,e);return e===n&&"string"===typeof e&&(n=s(d,c,"".concat(t).concat("default"===e?"":(0,i.Z)(e)),e)),!1===l?n:(0,r.Z)({},l,n)}))};return d.propTypes={},d.filterProps=[t],d}},7416:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(5682),i=n(8529),o=n(8247);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},2789:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(9884)},4419:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){if(r){var i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},7874:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){i(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r]})),s}},1037:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z},isPlainObject:function(){return r.P}});var r=n(7093)},6187:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.Z.generate(e),"-").concat(t)}},5878:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1217);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((function(t){i[t]=(0,r.ZP)(e,t,n)})),i}},1627:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l},getFunctionName:function(){return o}});var r=n(3325),i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){var t="".concat(e).match(i);return t&&t[1]||""}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||o(e)||t}function s(e,t,n){var r=a(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},4913:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},5202:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4913);function i(e){return(0,r.Z)(e).defaultView||window}},8748:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7462);function i(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(o){if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){var a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.Z)({},s),Object.keys(a).forEach((function(e){n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},6670:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8637:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9439),i=n(2791);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,i.useRef(void 0!==t).current),a=i.useState(n),s=(0,r.Z)(a,2),l=s[0],u=s[1];return[o?t:l,i.useCallback((function(e){o||u(e)}),[])]}},2876:function(e,t,n){"use strict";var r=n(2791),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=i},7054:function(e,t,n){"use strict";var r=n(2791),i=n(2876);t.Z=function(e){var t=r.useRef(e);return(0,i.Z)((function(){t.current=e})),r.useRef((function(){return t.current.apply(void 0,arguments)})).current}},6117:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791),i=n(6670);function o(){for(var e=arguments.length,t=new Array(e),n=0;nt}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),Z=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function A(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}var N,L=Object.assign;function I(e){if(void 0===N)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var D=!1;function F(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function W(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case P:return"Profiler";case C:return"StrictMode";case M:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case Z:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ce=null;function Pe(e){if(e=bi(e)){if("function"!==typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function _e(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function Ze(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Pe(e),t)for(e=0;e>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<=An),In=String.fromCharCode(32),Dn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Un(e,t,n,r){_e(r),0<(t=Yr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Xn=null;function qn(e){Ir(e,0)}function $n(e){if(X(xi(e)))return e}function Gn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Qn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Qn=Jn}else Qn=!1;Kn=Qn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,mr=null,gr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==q(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Yr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Cr={};function Pr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=Pr("animationend"),Zr=Pr("animationiteration"),Er=Pr("animationstart"),Mr=Pr("transitionend"),Rr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Rr.set(e,t),l(t,[e])}for(var jr=0;jrSi||(e.current=ki[Si],ki[Si]=null,Si--)}function _i(e,t){Si++,ki[Si]=e.current,e.current=t}var Zi={},Ei=Ci(Zi),Mi=Ci(!1),Ri=Zi;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Zi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ti(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ji(){Pi(Mi),Pi(Ei)}function zi(e,t,n){if(Ei.current!==Zi)throw Error(o(168));_i(Ei,t),_i(Mi,n)}function Ai(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return L({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zi,Ri=Ei.current,_i(Ei,e),_i(Mi,Mi.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ai(e,t,Ri),r.__reactInternalMemoizedMergedChildContext=e,Pi(Mi),Pi(Ei),_i(Ei,e)):Pi(Mi),_i(Mi,n)}var Ii=null,Di=!1,Fi=!1;function Wi(e){null===Ii?Ii=[e]:Ii.push(e)}function Bi(){if(!Fi&&null!==Ii){Fi=!0;var e=0,t=bt;try{var n=Ii;for(bt=1;e>=a,i-=a,Gi=1<<32-at(t)+i|n<v?(m=d,d=null):m=d.sibling;var g=h(i,d,s[v],l);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g,d=m}if(v===s.length)return n(i,d),io&&Qi(i,v),u;if(null===d){for(;vm?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,u);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,v=g}if(y.done)return n(i,v),io&&Qi(i,m),c;if(null===v){for(;!y.done;m++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,m),c}for(v=r(i,v);!y.done;m++,y=l.next())null!==(y=p(v,i,m,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(i,e)})),io&&Qi(i,m),c}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===T&&$o(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Xo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((o=Nu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Au(a.type,a.key,a.props,null,r.mode,l)).ref=Xo(r,o,a),l.return=r,r=l)}return s(r);case k:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Du(a,r.mode,l)).return=r,r=o}return s(r);case T:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return v(r,o,a,l);if(A(a))return m(r,o,a,l);qo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Iu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ko=Go(!0),Qo=Go(!1),Jo={},ea=Ci(Jo),ta=Ci(Jo),na=Ci(Jo);function ra(e){if(e===Jo)throw Error(o(174));return e}function ia(e,t){switch(_i(na,t),_i(ta,e),_i(ea,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Pi(ea),_i(ea,t)}function oa(){Pi(ea),Pi(ta),Pi(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(_i(ta,e),_i(ea,n))}function sa(e){ta.current===e&&(Pi(ea),Pi(ta))}var la=Ci(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;en?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function es(){return Za().memoizedState}function ts(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=Mo(e,t,n,r))){ru(n,e,r,tu()),os(n,t,r)}}function ns(e,t,n){var r=nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Eo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Mo(e,t,i,r))&&(ru(n,e,r,i=tu()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===va||null!==t&&t===va}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:_o,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:_o,useCallback:function(e,t){return _a().memoizedState=[e,void 0===t?null:t],e},useContext:_o,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Wa(4194308,4,Xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wa(4,2,e,t)},useMemo:function(e,t){var n=_a();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_a();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_a().memoizedState=e},useState:Ia,useDebugValue:$a,useDeferredValue:function(e){return _a().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ja.bind(null,e[1]),_a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,i=_a();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Rl)throw Error(o(349));0!==(30&pa)||ja(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ha(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Da(9,za.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=_a(),t=Rl.identifierPrefix;if(io){var n=Ki;t=":"+t+"R"+(n=(Gi&~(1<<32-at(Gi)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_o,useCallback:Ga,useContext:_o,useEffect:Va,useImperativeHandle:qa,useInsertionEffect:Ua,useLayoutEffect:Ya,useMemo:Ka,useReducer:Ma,useRef:Fa,useState:function(){return Ma(Ea)},useDebugValue:$a,useDeferredValue:function(e){return Qa(Za(),ma.memoizedState,e)},useTransition:function(){return[Ma(Ea)[0],Za().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ta,useId:es,unstable_isNewReconciler:!1},us={readContext:_o,useCallback:Ga,useContext:_o,useEffect:Va,useImperativeHandle:qa,useInsertionEffect:Ua,useLayoutEffect:Ya,useMemo:Ka,useReducer:Ra,useRef:Fa,useState:function(){return Ra(Ea)},useDebugValue:$a,useDeferredValue:function(e){var t=Za();return null===ma?t.memoizedState=e:Qa(t,ma.memoizedState,e)},useTransition:function(){return[Ra(Ea)[0],Za().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Ta,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Yl=r),fs(0,t)},n}function vs(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,Ao(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Ko(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=Ca(e,t,n,r,o,i),n=Pa(),null===e||xs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||ju(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Au(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,i)}return t.flags|=1,(e=zu(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Us(e,t,i);0!==(131072&e.flags)&&(xs=!0)}}return Zs(e,t,n,r,i)}function Ps(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_i(zl,jl),jl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_i(zl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_i(zl,jl),jl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_i(zl,jl),jl|=r;return ws(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zs(e,t,n,r,i){var o=Ti(n)?Ri:Ei.current;return o=Oi(t,o),Po(t,i),n=Ca(e,t,n,r,o,i),r=Pa(),null===e||xs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function Es(e,t,n,r,i){if(Ti(n)){var o=!0;Ni(t)}else o=!1;if(Po(t,i),null===t.stateNode)Vs(e,t),Vo(t,n,r),Yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=_o(u):u=Oi(t,u=Ti(n)?Ri:Ei.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Uo(t,a,r,u),Oo=!1;var f=t.memoizedState;a.state=f,Io(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Mi.current||Oo?("function"===typeof c&&(Wo(t,n,c,r),l=t.memoizedState),(s=Oo||Ho(t,n,s,r,f,l,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,jo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:go(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=_o(l):l=Oi(t,l=Ti(n)?Ri:Ei.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Uo(t,a,r,l),Oo=!1,f=t.memoizedState,a.state=f,Io(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Mi.current||Oo?("function"===typeof h&&(Wo(t,n,h,r),p=t.memoizedState),(u=Oo||Ho(t,n,u,r,f,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ms(e,t,n,r,o,i)}function Ms(e,t,n,r,i,o){_s(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Us(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?zi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zi(0,t.context,!1),ia(e,t.containerInfo)}function Os(e,t,n,r,i){return po(),vo(i),t.flags|=256,ws(e,t,n,r),t.child}var Ts,js,zs,As,Ns={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Is(e,t,n){var r,i=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_i(la,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Lu(l,i,0,null),e=Nu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ns,e):Ds(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Lu({mode:"visible",children:r.children},i,0,null),(a=Nu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Ko(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ns,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(r=Rl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ro(e,i),ru(r,e,i,-1))}return mu(),Fs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Eu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Xi[qi++]=Gi,Xi[qi++]=Ki,Xi[qi++]=$i,Gi=e.id,Ki=e.overflow,$i=t),t=Ds(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=zu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=zu(r,s):(s=Nu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ns,i}return e=(s=e.child).sibling,i=zu(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ds(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&vo(r),Ko(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ws(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function Bs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ws(e,n,t);else if(19===e.tag)Ws(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_i(la,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bs(t,!0,n,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ys(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xs(t),null;case 1:case 17:return Ti(t.type)&&ji(),Xs(t),null;case 3:return r=t.stateNode,oa(),Pi(Mi),Pi(Ei),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(su(oo),oo=null))),js(e,t),Xs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)zs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Xs(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[hi]=r,Ts(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),i=r;break;case"iframe":case"object":case"embed":Dr("load",e),i=r;break;case"video":case"audio":for(i=0;iHl&&(t.flags|=128,r=!0,Ys(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ys(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Xs(t),null}else 2*Ke()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Ys(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ke(),t.sibling=null,n=la.current,_i(la,r?1&n|2:1&n),t):(Xs(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&jl)&&(Xs(t),6&t.subtreeFlags&&(t.flags|=8192)):Xs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function $s(e,t){switch(to(t),t.tag){case 1:return Ti(t.type)&&ji(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Pi(Mi),Pi(Ei),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Pi(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Pi(la),null;case 4:return oa(),null;case 10:return So(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ts=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},zs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=$(e,i),r=$(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},As=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Ks=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Pu(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Pu(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[vi],delete t[mi],delete t[gi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,fl=!1;function hl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ks||el(n,t);case 6:var r=dl,i=fl;dl=null,hl(e,t,n),fl=i,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Bt(e)):li(dl,n.stateNode));break;case 4:r=dl,i=fl,dl=n.stateNode.containerInfo,fl=!0,hl(e,t,n),dl=r,fl=i;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tl(n,t,a),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Ks&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pu(n,t,s)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,hl(e,t,n),Ks=r):hl(e,t,n);break;default:hl(e,t,n)}}function vl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;ri&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pl(r/1960))-r)){e.timeoutHandle=ri(ku.bind(null,e,Wl,Vl),r);break}ku(e,Wl,Vl);break;default:throw Error(o(329))}}}return iu(e,Ke()),e.callbackNode===n?ou.bind(null,e):null}function au(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Wl,Wl=n,null!==t&&su(t)),e}function su(e){null===Wl?Wl=e:Wl.push.apply(Wl,e)}function lu(e,t){for(t&=~Dl,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===$l)var r=!1;else{if(e=$l,$l=null,Gl=0,0!==(6&Ml))throw Error(o(331));var i=Ml;for(Ml|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var u=0;uKe()-Bl?hu(e,0):Dl|=n),iu(e,t)}function Zu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ro(e,t))&&(gt(e,t,n),iu(e,n))}function Eu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Zu(e,n)}function Mu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Zu(e,n)}function Ru(e,t){return Xe(e,t)}function Ou(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tu(e,t,n,r){return new Ou(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Tu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Au(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)ju(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Nu(n.children,i,a,t);case C:s=8,i|=8;break;case P:return(e=Tu(12,n,t,2|i)).elementType=P,e.lanes=a,e;case M:return(e=Tu(13,n,t,i)).elementType=M,e.lanes=a,e;case R:return(e=Tu(19,n,t,i)).elementType=R,e.lanes=a,e;case j:return Lu(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case Z:s=9;break e;case E:s=11;break e;case O:s=14;break e;case T:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Tu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Nu(e,t,n,r){return(e=Tu(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=Tu(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return(e=Tu(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Tu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wu(e,t,n,r,i,o,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Tu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},To(o),e}function Bu(e){if(!e)return Zi;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ti(n))return Ai(e,n,t)}return t}function Hu(e,t,n,r,i,o,a,s,l){return(e=Wu(n,r,!0,e,0,o,0,s,l)).context=Bu(null),n=e.current,(o=zo(r=tu(),i=nu(n))).callback=void 0!==t&&null!==t?t:null,Ao(n,o,i),e.current.lanes=i,gt(e,i,r),iu(e,r),e}function Vu(e,t,n,r){var i=t.current,o=tu(),a=nu(i);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ao(i,t,a))&&(ru(e,i,a,o),No(e,i,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),r}return l(n,[{key:"componentDidMount",value:function(){"undefined"!==typeof window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:v.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),a=t.defaultPosition,s=t.defaultClassName,l=t.defaultClassNameDragging,u=t.defaultClassNameDragged,c=t.position,d=t.positionOffset,p=(t.scale,i(t,f)),v={},b=null,w=!Boolean(c)||this.state.dragging,k=c||a,S={x:(0,y.canDragX)(this)&&w?this.state.x:k.x,y:(0,y.canDragY)(this)&&w?this.state.y:k.y};this.state.isElementSVG?b=(0,g.createSVGTransform)(S,d):v=(0,g.createCSSTransform)(S,d);var P=(0,m.default)(n.props.className||"",s,(r(e={},l,this.state.dragging),r(e,u,this.state.dragged),e));return h.createElement(x.default,C({},p,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),h.cloneElement(h.Children.only(n),{className:P,style:o(o({},n.props.style),v),transform:b}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,w.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:o({},n)})}}]),n}(h.Component);t.default=_,P(_,"displayName","Draggable"),P(_,"propTypes",o(o({},x.default.propTypes),{},{axis:p.default.oneOf(["both","x","y","none"]),bounds:p.default.oneOfType([p.default.shape({left:p.default.number,right:p.default.number,top:p.default.number,bottom:p.default.number}),p.default.string,p.default.oneOf([!1])]),defaultClassName:p.default.string,defaultClassNameDragging:p.default.string,defaultClassNameDragged:p.default.string,defaultPosition:p.default.shape({x:p.default.number,y:p.default.number}),positionOffset:p.default.shape({x:p.default.oneOfType([p.default.number,p.default.string]),y:p.default.oneOfType([p.default.number,p.default.string])}),position:p.default.shape({x:p.default.number,y:p.default.number}),className:b.dontSetMe,style:b.dontSetMe,transform:b.dontSetMe})),P(_,"defaultProps",o(o({},x.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},8091:function(e,t,n){"use strict";var r=n(7424).default,i=n(6690).default,o=n(9728).default,a=n(6115).default,s=n(1655).default,l=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(2791)),c=m(n(2007)),d=m(n(4164)),f=n(2280),h=n(580),p=n(2693),v=m(n(9392));function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={start:"touchstart",move:"touchmove",stop:"touchend"},x={start:"mousedown",move:"mousemove",stop:"mouseup"},w=x,k=function(e){s(n,e);var t=l(n);function n(){var e;return i(this,n),e=t.apply(this,arguments),y(a(e),"dragging",!1),y(a(e),"lastX",NaN),y(a(e),"lastY",NaN),y(a(e),"touchIdentifier",null),y(a(e),"mounted",!1),y(a(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"===typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error(" not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,f.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,f.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var i=(0,f.getTouchIdentifier)(t);e.touchIdentifier=i;var o=(0,h.getControlPosition)(t,i,a(e));if(null!=o){var s=o.x,l=o.y,u=(0,h.createCoreData)(a(e),s,l);(0,v.default)("DraggableCore: handleDragStart: %j",u),(0,v.default)("calling",e.props.onStart),!1!==e.props.onStart(t,u)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,f.addUserSelectStyles)(r),e.dragging=!0,e.lastX=s,e.lastY=l,(0,f.addEvent)(r,w.move,e.handleDrag),(0,f.addEvent)(r,w.stop,e.handleDragStop))}}})),y(a(e),"handleDrag",(function(t){var n=(0,h.getControlPosition)(t,e.touchIdentifier,a(e));if(null!=n){var i=n.x,o=n.y;if(Array.isArray(e.props.grid)){var s=i-e.lastX,l=o-e.lastY,u=(0,h.snapToGrid)(e.props.grid,s,l),c=r(u,2);if(s=c[0],l=c[1],!s&&!l)return;i=e.lastX+s,o=e.lastY+l}var d=(0,h.createCoreData)(a(e),i,o);if((0,v.default)("DraggableCore: handleDrag: %j",d),!1!==e.props.onDrag(t,d)&&!1!==e.mounted)e.lastX=i,e.lastY=o;else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(p){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),y(a(e),"handleDragStop",(function(t){if(e.dragging){var n=(0,h.getControlPosition)(t,e.touchIdentifier,a(e));if(null!=n){var i=n.x,o=n.y;if(Array.isArray(e.props.grid)){var s=i-e.lastX||0,l=o-e.lastY||0,u=(0,h.snapToGrid)(e.props.grid,s,l),c=r(u,2);s=c[0],l=c[1],i=e.lastX+s,o=e.lastY+l}var d=(0,h.createCoreData)(a(e),i,o);if(!1===e.props.onStop(t,d)||!1===e.mounted)return!1;var p=e.findDOMNode();p&&e.props.enableUserSelectHack&&(0,f.removeUserSelectStyles)(p.ownerDocument),(0,v.default)("DraggableCore: handleDragStop: %j",d),e.dragging=!1,e.lastX=NaN,e.lastY=NaN,p&&((0,v.default)("DraggableCore: Removing handlers"),(0,f.removeEvent)(p.ownerDocument,w.move,e.handleDrag),(0,f.removeEvent)(p.ownerDocument,w.stop,e.handleDragStop))}}})),y(a(e),"onMouseDown",(function(t){return w=x,e.handleDragStart(t)})),y(a(e),"onMouseUp",(function(t){return w=x,e.handleDragStop(t)})),y(a(e),"onTouchStart",(function(t){return w=b,e.handleDragStart(t)})),y(a(e),"onTouchEnd",(function(t){return w=b,e.handleDragStop(t)})),e}return o(n,[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,f.addEvent)(e,b.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,f.removeEvent)(t,x.move,this.handleDrag),(0,f.removeEvent)(t,b.move,this.handleDrag),(0,f.removeEvent)(t,x.stop,this.handleDragStop),(0,f.removeEvent)(t,b.stop,this.handleDragStop),(0,f.removeEvent)(e,b.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,f.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:d.default.findDOMNode(this)}},{key:"render",value:function(){return u.cloneElement(u.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),n}(u.Component);t.default=k,y(k,"displayName","DraggableCore"),y(k,"propTypes",{allowAnyClick:c.default.bool,children:c.default.node.isRequired,disabled:c.default.bool,enableUserSelectHack:c.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:c.default.arrayOf(c.default.number),handle:c.default.string,cancel:c.default.string,nodeRef:c.default.object,onStart:c.default.func,onDrag:c.default.func,onStop:c.default.func,onMouseDown:c.default.func,scale:c.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),y(k,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},9962:function(e,t,n){"use strict";var r=n(37),i=r.default,o=r.DraggableCore;e.exports=i,e.exports.default=i,e.exports.DraggableCore=o},2280:function(e,t,n){"use strict";var r=n(8416).default,i=n(2122).default;Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=d,t.addEvent=function(e,t,n,r){if(!e)return;var o=i({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&d(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){var n=c(e,t,"px");return r({},(0,a.browserPrefixToKey)("transform",a.default),n)},t.createSVGTransform=function(e,t){return c(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=c,t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.matchesSelector=u,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(u(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.removeClassName=f,t.removeEvent=function(e,t,n,r){if(!e)return;var o=i({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&f(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(n){}};var o=n(2693),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(4021));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var l="";function u(e,t){return l||(l=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[l])&&e[l](t)}function c(e,t,n){var r=e.x,i=e.y,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){var a="".concat("string"===typeof t.x?t.x:t.x+n),s="".concat("string"===typeof t.y?t.y:t.y+n);o="translate(".concat(a,", ").concat(s,")")+o}return o}function d(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function f(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},4021:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=i,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;var n=["Moz","Webkit","O","ms"];function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"===typeof window)return"";var r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r)return"";if(t in r)return"";for(var o=0;o: Unmounted during event!");return t}},2693:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var n=0,r=e.length;n>>1,i=e[r];if(!(0>>1;ro(l,n))uo(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(uo(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,v=!1,m=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(m=!1,x(e),!v)if(null!==r(u))v=!0,j(k);else{var t=r(c);null!==t&&z(w,t.startTime-e)}}function k(e,n){v=!1,m&&(m=!1,y(_),_=-1),p=!0;var o=h;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!M());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(u)&&i(u),x(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&z(w,d.startTime-n),l=!1}return l}finally{f=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,P=null,_=-1,Z=5,E=-1;function M(){return!(t.unstable_now()-Ee||125a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(y(_),_=-1):m=!0,z(w,o-a))):(e.sortIndex=s,n(u,e),v||p||(v=!0,j(k))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},3897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:function(e,t,n){var r=n(5372),i=n(8872),o=n(6116),a=n(2218);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(3405),i=n(9498),o=n(6116),a=n(2281);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,n){var r=n(8698).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,n){var r=n(8698).default,i=n(5036);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,n){var r=n(3897);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},9439:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3878);var i=n(181),o=n(5267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},3433:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);var i=n(9199),o=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},3733:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}var a=n(1002);function s(){s=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p="suspendedStart",v="suspendedYield",m="executing",g="completed",y={};function b(){}function x(){}function w(){}var k={};d(k,l,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,l)&&(k=C);var P=w.prototype=b.prototype=Object.create(k);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function Z(e,t){function n(i,o,s,l){var u=h(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==(0,a.Z)(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=p;return function(o,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(t,n,r);if("normal"===u.type){if(i=r.done?g:v,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=g,r.method="throw",r.arg=u.arg)}}}function M(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)}))}}var c=n(9439),d=n(6189),f=n(184),h=(0,d.Z)((0,f.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop"),p=(0,d.Z)((0,f.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),v=(0,d.Z)([(0,f.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,f.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"CameraAlt"),m=(0,d.Z)((0,f.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),g=n(4942);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t>4]+L[15&e]},F=function(e){return(240&e)>>4===(15&e)};function W(e){var t=function(e){return F(e.r)&&F(e.g)&&F(e.b)&&F(e.a)}(e)?I:D;return e?"#"+t(e.r)+t(e.g)+t(e.b)+function(e,t){return e<255?t(e):""}(e.a,t):void 0}var B=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function H(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function V(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function U(e,t,n){var r,i=H(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function Y(e){var t,n,r,i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=function(e,t,n,r,i){return e===i?(t-n)/r+(t>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);var t=K[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}var te=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var ne=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},re=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)};function ie(e,t,n){if(e){var r=Y(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=q(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function oe(e,t){return e?Object.assign(t||{},e):e}function ae(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=j(e[3]))):(t=oe(e,{r:0,g:0,b:0,a:1})).a=j(t.a),t}function se(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=te.exec(e),o=255;if(i){if(i[7]!==t){var a=+i[7];o=i[8]?T(a):O(255*a,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?T(t):O(t,0,255)),g:n=255&(i[4]?T(n):O(n,0,255)),b:r=255&(i[6]?T(r):O(r,0,255)),a:o}}}(e):G(e)}var le=function(){function e(t){if((0,E.Z)(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=ae(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*N[e[1]],g:255&17*N[e[2]],b:255&17*N[e[3]],a:5===n?17*N[e[4]]:255}:7!==n&&9!==n||(t={r:N[e[1]]<<4|N[e[2]],g:N[e[3]]<<4|N[e[4]],b:N[e[5]]<<4|N[e[6]],a:9===n?N[e[7]]<<4|N[e[8]]:255})),t}(t)||ee(t)||se(t)),this._rgb=n,this._valid=!!n}return(0,M.Z)(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=oe(this._rgb);return e&&(e.a=z(e.a)),e},set:function(e){this._rgb=ae(e)}},{key:"rgbString",value:function(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(z(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):void 0;var e}},{key:"hexString",value:function(){return this._valid?W(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=Y(e),n=t[0],r=A(t[1]),i=A(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(z(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(e,t){if(e){var n,r=this.rgb,i=e.rgb,o=t===n?.5:t,a=2*o-1,s=r.a-i.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}},{key:"interpolate",value:function(e,t){return e&&(this._rgb=function(e,t,n){var r=re(z(e.r)),i=re(z(e.g)),o=re(z(e.b));return{r:j(ne(r+n*(re(z(t.r))-r))),g:j(ne(i+n*(re(z(t.g))-i))),b:j(ne(o+n*(re(z(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=j(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=R(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return ie(this._rgb,2,e),this}},{key:"darken",value:function(e){return ie(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return ie(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return ie(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=Y(e);n[0]=$(n[0]+t),n=q(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function ue(){}var ce=function(){var e=0;return function(){return e++}}();function de(e){return null===e||"undefined"===typeof e}function fe(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function he(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function pe(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function ve(e,t){return pe(e)?e:t}function me(e,t){return"undefined"===typeof e?t:e}var ge=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function ye(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function be(e,t,n,r){var i,o,a;if(fe(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;il&&u3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function it(e,t,n){n=n||function(n){return e[n]1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}var ot=function(e,t,n,r){return it(e,n,r?function(r){var i=e[r][t];return i=n}))};var st=["push","pop","shift","splice","unshift"];function lt(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(st.forEach((function(t){delete e[t]})),delete e._chartjs)}}function ut(e){var t=new Set(e);return t.size===e.length?e:Array.from(t)}var ct="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function dt(e,t){var n=[],r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return mt(e)?e:gt(e,.075,.3)},easeOutElastic:function(e){return mt(e)?e:yt(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return mt(e)?e:e<.5?.5*gt(2*e,t,.45):.5+.5*yt(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-bt.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*bt.easeInBounce(2*e):.5*bt.easeOutBounce(2*e-1)+.5}};function xt(e){if(e&&"object"===typeof e){var t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function wt(e){return xt(e)?e:new le(e)}function kt(e){return xt(e)?e:new le(e).saturate(.5).darken(.1).hexString()}var St=["x","y","borderWidth","radius","tension"],Ct=["color","borderColor","backgroundColor"];var Pt=new Map;function _t(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=Pt.get(n);return r||(r=new Intl.NumberFormat(e,t),Pt.set(n,r)),r}(t,n).format(e)}var Zt={values:function(e){return fe(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,o=e;if(n.length>1){var a=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(a<1e-4||a>1e15)&&(r="scientific"),o=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=Be(Math.abs(o)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),_t(e,i,u)},logarithmic:function(e,t,n){if(0===e)return"0";var r=n[t].significand||e/Math.pow(10,Math.floor(Be(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Zt.numeric.call(this,e,t,n):""}};var Et={formatters:Zt};var Mt=Object.create(null),Rt=Object.create(null);function Ot(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;rr&&(r=o),r}function Nt(e,t,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var a,s,l,u,c,d=0,f=n.length;for(a=0;an.length){for(a=0;a0&&e.stroke()}}function Wt(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y5&&void 0!==arguments[5]?arguments[5]:{},l=fe(t)?t:[t],u=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),de(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,s),o=0;o1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]},a=(arguments.length>2?arguments[2]:void 0)||e;"undefined"===typeof r&&(r=bn("_fallback",e));var s=(t={},(0,g.Z)(t,Symbol.toStringTag,"Object"),(0,g.Z)(t,"_cacheable",!0),(0,g.Z)(t,"_scopes",e),(0,g.Z)(t,"_rootScopes",a),(0,g.Z)(t,"_fallback",r),(0,g.Z)(t,"_getTarget",i),(0,g.Z)(t,"override",(function(t){return ln([t].concat((0,Z.Z)(e)),n,a,r)})),t);return new Proxy(s,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return hn(t,r,(function(){return function(e,t,n,r){var i,a,s=o(t);try{for(s.s();!(a=s.n()).done;){var l=a.value;if("undefined"!==typeof(i=bn(dn(l,e),n)))return fn(e,i)?gn(n,r,e,i):i}}catch(u){s.e(u)}finally{s.f()}}(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return xn(e).includes(t)},ownKeys:function(e){return xn(e)},set:function(e,t,n){var r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function un(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:cn(e,r),setContext:function(t){return un(e,t,n,r)},override:function(i){return un(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return hn(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,a=e._subProxy,s=e._descriptors,l=r[t];Te(l)&&s.isScriptable(t)&&(l=function(e,t,n,r){var i=n._proxy,o=n._context,a=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);var l=t(o,a||r);s.delete(e),fn(e,l)&&(l=gn(i._scopes,i,e,l));return l}(t,l,e,n));fe(l)&&l.length&&(l=function(e,t,n,r){var i=n._proxy,a=n._context,s=n._subProxy,l=n._descriptors;if("undefined"!==typeof a.index&&r(e))return t[a.index%t.length];if(he(t[0])){var u=t,c=i._scopes.filter((function(e){return e!==u}));t=[];var d,f=o(u);try{for(f.s();!(d=f.n()).done;){var h=gn(c,i,e,d.value);t.push(un(h,a,s&&s[e],l))}}catch(p){f.e(p)}finally{f.f()}}return t}(t,l,e,s.isIndexable));fn(t,l)&&(l=un(l,i,a&&a[t],s));return l}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,o=void 0===i?t.indexable:i,a=e._allKeys;return{allKeys:void 0===a?t.allKeys:a,scriptable:r,indexable:o,isScriptable:Te(r)?r:function(){return r},isIndexable:Te(o)?o:function(){return o}}}var dn=function(e,t){return e?e+Re(t):t},fn=function(e,t){return he(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function hn(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];var r=n();return e[t]=r,r}function pn(e,t,n){return Te(e)?e(t,n):e}var vn=function(e,t){return!0===e?t:"string"===typeof e?Me(t,e):void 0};function mn(e,t,n,r,i){var a,s=o(t);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=vn(n,l);if(u){e.add(u);var c=pn(u._fallback,n,i);if("undefined"!==typeof c&&c!==n&&c!==r)return c}else if(!1===u&&"undefined"!==typeof r&&n!==r)return null}}catch(d){s.e(d)}finally{s.f()}return!1}function gn(e,t,n,r){var i=t._rootScopes,o=pn(t._fallback,n,r),a=[].concat((0,Z.Z)(e),(0,Z.Z)(i)),s=new Set;s.add(r);var l=yn(s,a,n,o||n,r);return null!==l&&(("undefined"===typeof o||o===n||null!==(l=yn(s,a,o,l,r)))&&ln(Array.from(s),[""],i,o,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(fe(i)&&he(n))return n;return i||{}}(t,n,r)})))}function yn(e,t,n,r,i){for(;n;)n=mn(e,t,n,r,i);return n}function bn(e,t){var n,r=o(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[e];if("undefined"!==typeof a)return a}}}catch(s){r.e(s)}finally{r.f()}}function xn(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=o(e);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,s=o(Object.keys(a).filter((function(e){return!e.startsWith("_")})));try{for(s.s();!(i=s.n()).done;){var l=i.value;n.add(l)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){r.e(u)}finally{r.f()}return Array.from(n)}(e._scopes)),t}function wn(e,t,n,r){var i,o,a,s,l=e.iScale,u=this._parsing.key,c=void 0===u?"r":u,d=new Array(r);for(i=0,o=r;i1&&void 0!==arguments[1]?arguments[1]:"x",o=Cn(i),a=e.length,s=Array(a).fill(0),l=Array(a),u=Sn(e,0);for(t=0;t2&&void 0!==arguments[2]?arguments[2]:"x",a=Cn(o),s=e.length,l=Sn(e,0),u=0;u0||t>0)&&(!n||!n.shadowRoot)};function Nn(e,t){if("native"in e)return e;var n=t.canvas,r=t.currentDevicePixelRatio,i=Tn(n),o="border-box"===i.boxSizing,a=zn(i,"padding"),s=zn(i,"border","width"),l=function(e,t){var n,r,i=e.touches,o=i&&i.length?i[0]:e,a=o.offsetX,s=o.offsetY,l=!1;if(An(a,s,e.target))n=a,r=s;else{var u=t.getBoundingClientRect();n=o.clientX-u.left,r=o.clientY-u.top,l=!0}return{x:n,y:r,box:l}}(e,n),u=l.x,c=l.y,d=l.box,f=a.left+(d&&s.left),h=a.top+(d&&s.top),p=t.width,v=t.height;return o&&(p-=a.width+s.width,v-=a.height+s.height),{x:Math.round((u-f)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}var Ln=function(e){return Math.round(10*e)/10};function In(e,t,n,r){var i=Tn(e),o=zn(i,"margin"),a=On(i.maxWidth,e,"clientWidth")||Le,s=On(i.maxHeight,e,"clientHeight")||Le,l=function(e,t,n){var r,i;if(void 0===t||void 0===n){var o=e&&Rn(e);if(o){var a=o.getBoundingClientRect(),s=Tn(o),l=zn(s,"border","width"),u=zn(s,"padding");t=a.width-u.width-l.width,n=a.height-u.height-l.height,r=On(s.maxWidth,o,"clientWidth"),i=On(s.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Le,maxHeight:i||Le}}(e,t,n),u=l.width,c=l.height;if("content-box"===i.boxSizing){var d=zn(i,"border","width"),f=zn(i,"padding");u-=f.width+d.width,c-=f.height+d.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=Ln(Math.min(u,a,l.maxWidth)),c=Ln(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Ln(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(c=l.height,u=Ln(Math.floor(c*r))),{width:u,height:c}}function Dn(e,t,n){var r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);var a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height="".concat(e.height,"px"),a.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}var Fn=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};Mn()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(n){}return e}();function Wn(e,t){var n=function(e,t){return Tn(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Bn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Hn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function Vn(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=Bn(e,i,n),s=Bn(i,o,n),l=Bn(o,t,n),u=Bn(a,s,n),c=Bn(s,l,n);return Bn(u,c,n)}function Un(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function Yn(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Xn(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function qn(e){return"angle"===e?{between:tt,compare:Je,normalize:et}:{between:rt,compare:function(e,t){return e-t},normalize:function(e){return e}}}function $n(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function Gn(e,t,n){if(!n)return[e];for(var r,i,o,a=n.property,s=n.start,l=n.end,u=t.length,c=qn(a),d=c.compare,f=c.between,h=c.normalize,p=function(e,t,n){var r,i,o=n.property,a=n.start,s=n.end,l=qn(o),u=l.between,c=l.normalize,d=t.length,f=e.start,h=e.end,p=e.loop;if(p){for(f+=d,h+=d,r=0,i=d;r0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var o,a=r.items,s=a.length-1,l=!1;s>=0;--s)(o=a[s])._active?(o._total>r.duration&&(r.duration=o._total),o.tick(t),l=!0):(a[s]=a[a.length-1],a.pop());l&&(i.draw(),e._notify(i,r,t,"progress")),a.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,(0,Z.Z)(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),nr=new tr,rr="transparent",ir={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=wt(e||rr),i=r.valid&&wt(t||rr);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},or=function(){function e(t,n,r,i){(0,E.Z)(this,e);var o=n[r];i=an([t.to,i,o,t.from]);var a=an([t.from,o,i]);this._active=!0,this._fn=t.fn||ir[t.type||typeof a],this._easing=bt[t.easing]||bt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}return(0,M.Z)(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=an([e.to,t,r,e.from]),this._from=an([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;if(this._active=o!==s&&(a||n1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(o,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r=0;--n){var l=a[n];if("$"!==l.charAt(0))if("options"!==l){var u=t[l],c=o[l],d=r.get(l);if(c){if(d&&c.active()){c.update(d,u,s);continue}c.cancel()}d&&d.duration?(o[l]=c=new or(d,e,l,u),i.push(c)):e[l]=u}else i.push.apply(i,(0,Z.Z)(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(nr.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function sr(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,o=void 0===n.max?t:0;return{start:r?o:i,end:r?i:o}}function lr(e,t){var n,r,i=[],o=e._getSortedDatasetMetas(t);for(n=0,r=o.length;n3&&void 0!==arguments[3]?arguments[3]:{},l=e.keys,u="single"===s.mode;if(null!==t){var c=!1;for(r=0,i=l.length;r0||!n&&l<0)return s.index}}catch(u){a.e(u)}finally{a.f()}return null}function hr(e,t){for(var n,r=e.chart,i=e._cachedMeta,o=r._stacks||(r._stacks={}),a=i.iScale,s=i.vScale,l=i.index,u=a.axis,c=s.axis,d=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(a,s,i),f=t.length,h=0;h0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=a,o._sorted=!0,i=a;else{i=fe(a[e])?this.parseArrayData(o,a,e,t):he(a[e])?this.parseObjectData(o,a,e,t):this.parsePrimitiveData(o,a,e,t);for(n=0;nt||h=0;--n)if(!p()){this.updateRangeFromParsed(c,e,r,u);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,o=[];for(t=0,n=i.length;t=0&&e1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,o=this._cachedDataOpts,a=e+"-"+n,s=o[a],l=this.enableOptionSharing&&Oe(r);if(s)return gr(s,l);var u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),d=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(zt.elements[e]),p=u.resolveNamedOptions(f,h,(function(){return t.getContext(r,i,n)}),d);return p.$shared&&(p.$shared=l,o[a]=Object.freeze(gr(p,l))),p}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,o=this._cachedDataOpts,a="animation-".concat(t),s=o[a];if(s)return s;if(!1!==i.options.animation){var l=this.chart.config,u=l.datasetAnimationScopeKeys(this._type,t),c=l.getOptionScopes(this.getDataset(),u);r=l.createResolver(c,this.getContext(e,n,t))}var d=new ar(i,r&&r.animations);return r&&r._cacheable&&(o[a]=Object.freeze(d)),d}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||mr(e)||this.chart._animationsDisabled}},{key:"_getSharedOptions",value:function(e,t){var n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:o}}},{key:"updateElement",value:function(e,t,n,r){mr(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!mr(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=o(this._syncList);try{for(i.s();!(t=i.n()).done;){var a=(0,c.Z)(t.value,3),s=a[0],l=a[1],u=a[2];this[s](l,u)}}catch(p){i.e(p)}finally{i.f()}this._syncList=[];var d=r.length,f=n.length,h=Math.min(f,d);h&&this.parse(0,h),f>d?this._insertElements(d,f-d,e):f2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,o=i.data,a=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=a;n--)e[n]=e[n-t]};for(s(o),n=e;nMath.abs(s)&&(l=s,u=a),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:a,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function wr(e,t,n,r){var i,o,a,s,l=e.iScale,u=e.vScale,c=l.getLabels(),d=l===u,f=[];for(i=n,o=n+r;ie.x,n="left",r="right"):(t=e.base