a&&(e=n?Ev(a,e,n.max):Math.min(e,a)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}}},{key:"resolveConstraints",value:function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,a=(this.visualElement.projection||{}).layout,o=this.constraints;n&&xf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!a)&&function(e,t){var n=t.top,r=t.left,a=t.bottom,o=t.right;return{x:oh(e.x,r,o),y:oh(e.y,n,a)}}(a.layoutBox,n),this.elastic=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lh;return!1===e?e=0:!0===e&&(e=lh),{x:sh(e,"left","right"),y:sh(e,"top","bottom")}}(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&uh((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(a.layoutBox[t],e.constraints[t]))}))}},{key:"resolveRefConstraints",value:function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!xf(t))return!1;var r=t.current,a=this.visualElement.projection;if(!a||!a.layout)return!1;var o=function(e,t,n){var r=Ah(e,n),a=t.scroll;return a&&(kh(r.x,a.offset.x),kh(r.y,a.offset.y)),r}(r,a.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:ih(e.x,t.x),y:ih(e.y,t.y)}}(a.layout.layoutBox,o);if(n){var l=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!l,l&&(i=dh(l))}return i}},{key:"startAnimation",value:function(e){var t=this,n=this.getProps(),r=n.drag,a=n.dragMomentum,o=n.dragElastic,i=n.dragTransition,l=n.dragSnapToOrigin,s=n.onDragTransitionEnd,u=this.constraints||{},d=uh((function(n){var s;if(zh(n,r,t.currentDirection)){var d=null!==(s=null===u||void 0===u?void 0:u[n])&&void 0!==s?s:{};l&&(d={min:0,max:0});var f=o?200:1e6,p=o?40:1e7,g=c(c({type:"inertia",velocity:a?e[n]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},i),d);return t.startAxisValueAnimation(n,g)}}));return Promise.all(d).then(s)}},{key:"startAxisValueAnimation",value:function(e,t){return dm(e,this.getAxisMotionValue(e),0,t)}},{key:"stopAnimation",value:function(){var e=this;uh((function(t){return e.getAxisMotionValue(t).stop()}))}},{key:"getAxisMotionValue",value:function(e){var t,n,r="_drag"+e.toUpperCase(),a=this.visualElement.getProps()[r];return a||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}},{key:"snapToCursor",value:function(e){var t=this;uh((function(n){if(zh(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,a=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.layoutBox[n],i=o.min,l=o.max;a.set(e[n]-Ev(i,l,.5))}}}))}},{key:"scalePositionWithinConstraints",value:function(){var e,t=this;if(this.visualElement.current){var n=this.getProps(),r=n.drag,a=n.dragConstraints,o=this.visualElement.projection;if(xf(a)&&o&&this.constraints){this.stopAnimation();var i={x:0,y:0};uh((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();i[e]=function(e,t){var n=.5,r=Zm(e),a=Zm(t);return a>r?n=Bv(t.min,t.max-r,e.min):r>a&&(n=Bv(e.min,e.max-a,t.min)),_v(0,1,n)}({min:r,max:r},t.constraints[e])}}));var l=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=l?l({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),uh((function(e){if(zh(e,r,null)){var n=t.getAxisMotionValue(e),a=t.constraints[e],o=a.min,l=a.max;n.set(Ev(o,l,i[e]))}}))}}}},{key:"addListeners",value:function(){var e,t=this;if(this.visualElement.current){Ph.set(this.visualElement,this);var n=ig(this.visualElement.current,"pointerdown",(function(e){var n=t.getProps(),r=n.drag,a=n.dragListener;r&&(void 0===a||a)&&t.start(e)})),r=function(){xf(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,o=a.addEventListener("measure",r);a&&!a.layout&&(null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout()),r();var i=Gp(window,"resize",(function(){return t.scalePositionWithinConstraints()})),l=a.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(uh((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.render())}));return function(){i(),n(),o(),null===l||void 0===l||l()}}}},{key:"getProps",value:function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,a=void 0!==r&&r,o=e.dragPropagation,i=void 0!==o&&o,l=e.dragConstraints,s=void 0!==l&&l,u=e.dragElastic,d=void 0===u?lh:u,f=e.dragMomentum,p=void 0===f||f;return c(c({},e),{},{drag:n,dragDirectionLock:a,dragPropagation:i,dragConstraints:s,dragElastic:d,dragMomentum:p})}}]),e}();function zh(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}function jh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var Rh={pan:Cg((function(t){var n=t.onPan,r=t.onPanStart,a=t.onPanEnd,o=t.onPanSessionStart,i=t.visualElement,l=n||r||a||o,s=(0,e.useRef)(null),c=(0,e.useContext)(mf).transformPagePoint,u={onSessionStart:o,onStart:r,onMove:n,onEnd:function(e,t){s.current=null,a&&a(e,t)}};(0,e.useEffect)((function(){null!==s.current&&s.current.updateHandlers(u)})),lg(i,"pointerdown",l&&function(e){s.current=new $m(e,u,{transformPagePoint:c})}),lf((function(){return s.current&&s.current.end()}))})),drag:Cg((function(t){var n=t.dragControls,r=t.visualElement,a=ef((function(){return new Th(r)}));(0,e.useEffect)((function(){return n&&n.subscribe(a)}),[a,n]),(0,e.useEffect)((function(){return a.addListeners()}),[a])}))};function Mh(e){return"string"===typeof e&&e.startsWith("var(--")}var Nh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Oh(e){var t=Nh.exec(e);if(!t)return[,];var n=Ye(t,3);return[n[1],n[2]]}function Bh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=Oh(e),a=Ye(r,2),o=a[0],i=a[1];if(o){var l=window.getComputedStyle(t).getPropertyValue(o);return l?l.trim():Mh(i)?Bh(i,t,n+1):i}}function Lh(e,t,n){var r=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),t)),a=e.current;if(!(a instanceof Element))return{target:r,transitionEnd:n};for(var o in n&&(n=c({},n)),e.values.forEach((function(e){var t=e.get();if(Mh(t)){var n=Bh(t,a);n&&e.set(n)}})),r){var i=r[o];if(Mh(i)){var l=Bh(i,a);l&&(r[o]=l,n&&void 0===n[o]&&(n[o]=i))}}return{target:r,transitionEnd:n}}var Dh,Fh=new Set(["width","height","top","left","right","bottom","x","y"]),Ih=function(e){return Fh.has(e)},Vh=function(e,t){e.set(t,!1),e.set(t)},Wh=function(e){return e===sp||e===ap};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Dh||(Dh={}));var Uh=function(e,t){return parseFloat(e.split(", ")[t])},Hh=function(e,t){return function(n,r){var a=r.transform;if("none"===a||!a)return 0;var o=a.match(/^matrix3d\((.+)\)$/);if(o)return Uh(o[1],t);var i=a.match(/^matrix\((.+)\)$/);return i?Uh(i[1],e):0}},$h=new Set(["x","y","z"]),qh=Vf.filter((function(e){return!$h.has(e)}));function Gh(e){var t=[];return qh.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}var Yh={width:function(e,t){var n=e.x,r=t.paddingLeft,a=void 0===r?"0":r,o=t.paddingRight,i=void 0===o?"0":o;return n.max-n.min-parseFloat(a)-parseFloat(i)},height:function(e,t){var n=e.y,r=t.paddingTop,a=void 0===r?"0":r,o=t.paddingBottom,i=void 0===o?"0":o;return n.max-n.min-parseFloat(a)-parseFloat(i)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Hh(4,13),y:Hh(5,14)},Xh=function(e,t,n){var r=t.measureViewportBox(),a=t.current,o=getComputedStyle(a),i=o.display,l={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){l[e]=Yh[e](r,o)})),t.render();var s=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Vh(r,l[n]),e[n]=Yh[n](s,o)})),e};function Kh(e,t,n,r){return function(e){return Object.keys(e).some(Ih)}(t)?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=c({},t),r=c({},r);var a=Object.keys(t).filter(Ih),o=[],i=!1,l=[];if(a.forEach((function(a){var s=e.getValue(a);if(e.hasValue(a)){var c,u=n[a],d=xm(u),f=t[a];if(Dp(f)){var p=f.length,g=null===f[0]?1:0;u=f[g],d=xm(u);for(var v=g;v=0?window.pageYOffset:null,u=Xh(t,e,l);return o.length&&o.forEach((function(t){var n=Ye(t,2),r=n[0],a=n[1];e.getValue(r).set(a)})),e.render(),Kd&&null!==s&&window.scrollTo({top:s}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var Qh={current:null},Zh={current:!1};var Jh=["willChange"],ey=Object.keys(Tf),ty=ey.length,ny=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ry=function(){function t(e){var n=this,r=e.parent,a=e.props,o=e.reducedMotionConfig,i=e.visualState,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qa(this,t),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.scheduleRender=function(){return Xd.render(n.render,!1,!0)};var s=i.latestValues,d=i.renderState;this.latestValues=s,this.baseTarget=c({},s),this.initialValues=a.initial?c({},s):{},this.renderState=d,this.parent=r,this.props=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=o,this.options=l,this.isControllingVariants=_f(a),this.isVariantNode=Ef(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(r&&r.current);var f=this.scrapeMotionValuesFromProps(a),p=f.willChange,g=u(f,Jh);for(var v in g){var m=g[v];void 0!==s[v]&&Hf(m)&&(m.set(s[v],!1),Pm(p)&&p.add(v))}}return Ka(t,[{key:"scrapeMotionValuesFromProps",value:function(e){return{}}},{key:"mount",value:function(e){var t,n=this;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((function(e,t){return n.bindToMotionValue(t,e)})),Zh.current||function(){if(Zh.current=!0,Kd)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Qh.current=e.matches};e.addListener(t),t()}else Qh.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Qh.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}},{key:"unmount",value:function(){var e,t,n;for(var r in null===(e=this.projection)||void 0===e||e.unmount(),Ud.update(this.notifyUpdate),Ud.render(this.render),this.valueSubscriptions.forEach((function(e){return e()})),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}},{key:"bindToMotionValue",value:function(e,t){var n=this,r=Wf.has(e),a=t.onChange((function(t){n.latestValues[e]=t,n.props.onUpdate&&Xd.update(n.notifyUpdate,!1,!0),r&&n.projection&&(n.projection.isTransformDirty=!0)})),o=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,(function(){a(),o()}))}},{key:"sortNodePosition",value:function(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}},{key:"loadFeatures",value:function(t,n,r,a,o,i){var l=this,s=[];for(var u=0;u1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(e,this.props,t)}},{key:"setProps",value:function(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(var t=0;t0&&void 0!==arguments[0]&&arguments[0];if(n)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){var r=(null===(t=this.parent)||void 0===t?void 0:t.getVariantContext())||{};return void 0!==this.props.initial&&(r.initial=this.props.initial),r}for(var a={},o=0;o1?r-1:0),o=1;o5)return a;var s=sv.createTransformer(e),c="number"!==typeof l[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;l[0+c]/=u,l[1+c]/=d;var f=Ev(u,d,.5);"number"===typeof l[2+c]&&(l[2+c]/=f),"number"===typeof l[3+c]&&(l[3+c]/=f);var p=s(l);if(o){var g=0;p=p.replace(py,(function(){var e=i[g];return g++,e}))}return p}},vy=function(e){Mt(n,e);var t=to(n);function n(){return Qa(this,n),t.apply(this,arguments)}return Ka(n,[{key:"componentDidMount",value:function(){var e,t=this,n=this.props,r=n.visualElement,a=n.layoutGroup,o=n.switchLayoutGroup,i=n.layoutId,l=r.projection;e=my,Object.assign(If,e),l&&(a.group&&a.group.add(l),o&&o.register&&i&&o.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",(function(){t.safeToRemove()})),l.setOptions(c(c({},l.options),{},{onExitComplete:function(){return t.safeToRemove()}}))),zf.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(e){var t=this,n=this.props,r=n.layoutDependency,a=n.visualElement,o=n.drag,i=n.isPresent,l=a.projection;return l?(l.isPresent=i,o||e.layoutDependency!==r||void 0===r?l.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?l.promote():l.relegate()||Xd.postRender((function(){var e;(null===(e=l.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null}},{key:"componentDidUpdate",value:function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,a=t.projection;a&&(a.scheduleCheckAfterUnmount(),(null===n||void 0===n?void 0:n.group)&&n.group.remove(a),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(a))}},{key:"safeToRemove",value:function(){var e=this.props.safeToRemove;null===e||void 0===e||e()}},{key:"render",value:function(){return null}}]),n}(e.Component);var my={borderRadius:c(c({},fy),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:fy,borderTopRightRadius:fy,borderBottomLeftRadius:fy,borderBottomRightRadius:fy,boxShadow:gy},hy={measureLayout:function(t){var n=Ye(gf(),2),r=n[0],a=n[1],o=(0,e.useContext)(of);return e.createElement(vy,c(c({},t),{},{layoutGroup:o,switchLayoutGroup:(0,e.useContext)(Mf),isPresent:r,safeToRemove:a}))}};function yy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Hf(e)?e:hm(e);return dm("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var by=["TopLeft","TopRight","BottomLeft","BottomRight"],xy=by.length,wy=function(e){return"string"===typeof e?parseFloat(e):e},ky=function(e){return"number"===typeof e||ap.test(e)};function Sy(e,t,n,r,a,o){var i,l,s,c;a?(e.opacity=Ev(0,null!==(i=n.opacity)&&void 0!==i?i:1,Ey(r)),e.opacityExit=Ev(null!==(l=t.opacity)&&void 0!==l?l:1,0,Cy(r))):o&&(e.opacity=Ev(null!==(s=t.opacity)&&void 0!==s?s:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;ut?1:n(Bv(e,t,r))}}function Py(e,t){e.min=t.min,e.max=t.max}function Ty(e,t){Py(e.x,t.x),Py(e.y,t.y)}function zy(e,t,n,r,a){return e=hh(e-=t,1/n,r),void 0!==a&&(e=hh(e,1/a,r)),e}function jy(e,t,n,r,a){var o=Ye(n,3),i=o[0],l=o[1],s=o[2];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;if(rp.test(t)){t=parseFloat(t),t=Ev(i.min,i.max,t/100)-i.min}if("number"===typeof t){var l=Ev(o.min,o.max,r);e===o&&(l-=t),e.min=zy(e.min,t,n,l,a),e.max=zy(e.max,t,n,l,a)}}(e,t[i],t[l],t[s],t.scale,r,a)}var Ry=["x","scaleX","originX"],My=["y","scaleY","originY"];function Ny(e,t,n,r){jy(e.x,t,Ry,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),jy(e.y,t,My,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y)}function Oy(e){return 0===e.translate&&1===e.scale}function By(e){return Oy(e.x)&&Oy(e.y)}function Ly(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Dy(e){return Zm(e.x)/Zm(e.y)}var Fy=function(){function e(){Qa(this,e),this.members=[]}return Ka(e,[{key:"add",value:function(e){pm(this.members,e),e.scheduleRender()}},{key:"remove",value:function(e){if(gm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}}},{key:"relegate",value:function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var a=this.members[r];if(!1!==a.isPresent){t=a;break}}return!!t&&(this.promote(t),!0)}},{key:"promote",value:function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))}},{key:"exitAnimationComplete",value:function(){this.members.forEach((function(e){var t,n,r,a,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(a=r.options).onExitComplete)||void 0===o||o.call(a)}))}},{key:"scheduleRender",value:function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))}},{key:"removeLeadSnapshot",value:function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}]),e}();function Iy(e,t,n){var r="",a=e.x.translate/t.x,o=e.y.translate/t.y;if((a||o)&&(r="translate3d(".concat(a,"px, ").concat(o,"px, 0) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){var i=n.rotate,l=n.rotateX,s=n.rotateY;i&&(r+="rotate(".concat(i,"deg) ")),l&&(r+="rotateX(".concat(l,"deg) ")),s&&(r+="rotateY(".concat(s,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return 1===c&&1===u||(r+="scale(".concat(c,", ").concat(u,")")),r||"none"}var Vy=function(e,t){return e.depth-t.depth},Wy=function(){function e(){Qa(this,e),this.children=[],this.isDirty=!1}return Ka(e,[{key:"add",value:function(e){pm(this.children,e),this.isDirty=!0}},{key:"remove",value:function(e){gm(this.children,e),this.isDirty=!0}},{key:"forEach",value:function(e){this.isDirty&&this.children.sort(Vy),this.isDirty=!1,this.children.forEach(e)}}]),e}(),Uy=["","X","Y","Z"],Hy=0;function $y(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,a=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(t){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null===n||void 0===n?void 0:n();Qa(this,e),this.id=Hy++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){r.isUpdating&&(r.isUpdating=!1,r.clearAllSnapshots())},this.updateProjection=function(){r.nodes.forEach(Yy),r.nodes.forEach(Jy),r.nodes.forEach(eb)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[].concat(pt(o.path),[o]):[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var i=0;i1?n-1:0),a=1;a1&&void 0!==arguments[1]&&arguments[1];if(!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var o=this.options,i=o.layoutId,l=o.layout,s=o.visualElement;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),null===(n=this.parent)||void 0===n||n.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(l||i)&&(this.isLayoutDirty=!0),t){var u,d=function(){return r.root.updateBlockedByResize=!1};t(e,(function(){r.root.updateBlockedByResize=!0,u&&u(),u=Sv(d,250),zf.hasAnimatedSinceResize&&(zf.hasAnimatedSinceResize=!1,r.nodes.forEach(Zy))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||l)&&this.addEventListener("didUpdate",(function(e){var t,n,a,o,i,l=e.delta,u=e.hasLayoutChanged,d=e.hasRelativeTargetChanged,f=e.layout;if(r.isTreeAnimationBlocked())return r.target=void 0,void(r.relativeTarget=void 0);var p=null!==(n=null!==(t=r.options.transition)&&void 0!==t?t:s.getDefaultTransition())&&void 0!==n?n:lb,g=s.getProps(),v=g.onLayoutAnimationStart,m=g.onLayoutAnimationComplete,h=!r.targetLayout||!Ly(r.targetLayout,f)||d,y=!u&&d;if((null===(a=r.resumeFrom)||void 0===a?void 0:a.instance)||y||u&&(h||!r.currentAnimation)){r.resumeFrom&&(r.resumingFrom=r.resumeFrom,r.resumingFrom.resumingFrom=void 0),r.setAnimationOrigin(l,y);var b=c(c({},um(p,"layout")),{},{onPlay:v,onComplete:m});s.shouldReduceMotion&&(b.delay=0,b.type=!1),r.startAnimation(b)}else u||0!==r.animationProgress||Zy(r),r.isLead()&&(null===(i=(o=r.options).onExitComplete)||void 0===i||i.call(o));r.targetLayout=f}))}}},{key:"unmount",value:function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Ud.preRender(this.updateProjection)}},{key:"blockUpdate",value:function(){this.updateManuallyBlocked=!0}},{key:"unblockUpdate",value:function(){this.updateManuallyBlocked=!1}},{key:"isUpdateBlocked",value:function(){return this.updateManuallyBlocked||this.updateBlockedByResize}},{key:"isTreeAnimationBlocked",value:function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}},{key:"startUpdate",value:function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(tb),this.animationId++)}},{key:"willUpdate",value:function(){var e,t,n,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.isUpdateBlocked())null===(t=(e=this.options).onExitComplete)||void 0===t||t.call(e);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:a(this.instance),offset:r(this.instance)})}},{key:"resetTransform",value:function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!By(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,a=null===r||void 0===r?void 0:r(this.latestValues,""),i=a!==this.prevTransformTemplateValue;t&&(n||gh(this.latestValues)||i)&&(o(this.instance,a),this.shouldResetTransform=!1,this.scheduleRender())}}},{key:"measure",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),ub(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}},{key:"measurePageBox",value:function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(kh(t.x,n.offset.x),kh(t.y,n.offset.y)),t}},{key:"removeElementScroll",value:function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Ty(t,e);for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n={x:{min:0,max:0},y:{min:0,max:0}};Ty(n,e);for(var r=0;r3&&void 0!==arguments[3]&&arguments[3],i=n.length;if(i){var l,s;t.x=t.y=1;for(var c=0;c0&&void 0!==arguments[0])||arguments[0];null===(t=(e=this.options).scheduleRender)||void 0===t||t.call(e),r&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}},{key:"setAnimationOrigin",value:function(e){var t,n,r=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.snapshot,i=(null===o||void 0===o?void 0:o.latestValues)||{},l=c({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;var u={x:{min:0,max:0},y:{min:0,max:0}},d=(null===o||void 0===o?void 0:o.source)!==(null===(t=this.layout)||void 0===t?void 0:t.source),f=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,p=Boolean(d&&!f&&!0===this.options.crossfade&&!this.path.some(ib));this.animationProgress=0,this.mixTargetDelta=function(t){var n,a=t/1e3;rb(s.x,e.x,a),rb(s.y,e.y,a),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(ah(u,r.layout.layoutBox,r.relativeParent.layout.layoutBox),ob(r.relativeTarget,r.relativeTargetOrigin,u,a)),d&&(r.animationValues=l,Sy(l,i,r.latestValues,a,p,f)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=a},this.mixTargetDelta(0)}},{key:"startAnimation",value:function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Ud.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xd.update((function(){zf.hasAnimatedSinceResize=!0,r.currentAnimation=yy(0,1e3,c(c({},e),{},{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))}},{key:"completeAnimation",value:function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}},{key:"finishAnimation",value:function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}},{key:"applyTransformsToTarget",value:function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,a=e.latestValues;if(t&&n&&r){if(this!==e&&this.layout&&r&&db(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};var o=Zm(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+o;var i=Zm(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}Ty(t,n),Ch(t,a),th(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}},{key:"registerSharedNode",value:function(e,t){var n,r,a;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Fy),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(a=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===a?void 0:a.call(r,t)})}},{key:"isLead",value:function(){var e=this.getStack();return!e||e.lead===this}},{key:"getLead",value:function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}},{key:"getPrevLead",value:function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}},{key:"getStack",value:function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)}},{key:"promote",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.needsReset,n=e.transition,r=e.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}},{key:"relegate",value:function(){var e=this.getStack();return!!e&&e.relegate(this)}},{key:"resetRotation",value:function(){var e=this.options.visualElement;if(e){var t=!1,n=e.latestValues;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),t){for(var r={},a=0;a0&&void 0!==arguments[0]?arguments[0]:{},a={};if(!this.instance||this.isSVG)return a;if(!this.isVisible)return{visibility:"hidden"};a.visibility="";var o=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=Ip(r.pointerEvents)||"",a.transform=o?o(this.latestValues,""):"none",a;var i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){var l={};return this.options.layoutId&&(l.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,l.pointerEvents=Ip(r.pointerEvents)||""),this.hasProjected&&!gh(this.latestValues)&&(l.transform=o?o({},""):"none",this.hasProjected=!1),l}var s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),a.transform=Iy(this.projectionDeltaWithTransform,this.treeScale,s),o&&(a.transform=o(s,a.transform));var c=this.projectionDelta,u=c.x,d=c.y;for(var f in a.transformOrigin="".concat(100*u.origin,"% ").concat(100*d.origin,"% 0"),i.animationValues?a.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:a.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,If)if(void 0!==s[f]){var p=If[f],g=p.correct,v=p.applyTo,m=g(s[f],i);if(v)for(var h=v.length,y=0;y=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var a=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));a&&e.mount(a,!0)}function cb(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ub(e){cb(e.x),cb(e.y)}function db(e,t,n){return"position"===e||"preserve-aspect"===e&&!Jm(Dy(t),Dy(n),.2)}var fb=$y({attachResizeListener:function(e,t){return Gp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),pb={current:void 0},gb=$y({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!pb.current){var e=new fb(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),pb.current=e}return pb.current},resetTransform:function(e,t){e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),vb=c(c(c(c({},Wm),Ag),Rh),hy),mb=Lf((function(e,t){return function(e,t,n,r,a){var o=t.forwardMotionProps,i=void 0!==o&&o;return c(c({},Ff(e)?$p:qp),{},{preloadedFeatures:n,useRender:zp(i),createVisualElement:r,projectionNodeConstructor:a,Component:e})}(e,t,vb,uy,gb)}));function hb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};_b+=1;var a=null!==(t=r.id)&&void 0!==t?t:_b,o=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:a,message:e,position:o,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:function(){return Sb.removeToast(String(a),o)},status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),a=n.position,o=n.id;return r((function(e){var t,r,o=a.includes("top")?[n].concat(pt(null!==(t=e[a])&&void 0!==t?t:[])):[].concat(pt(null!==(r=e[a])&&void 0!==r?r:[]),[n]);return c(c({},e),{},l({},a,o))})),o},update:function(e,t){e&&r((function(n){var r=c({},n),a=xb(r,e),o=a.position,i=a.index;return o&&-1!==i&&(r[o][i]=c(c(c({},r[o][i]),t),{},{message:Cb(t)})),r}))},closeAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.positions;r((function(e){return(null!==t&&void 0!==t?t:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((function(t,n){return t[n]=e[n].map((function(e){return c(c({},e),{},{requestClose:!0})})),t}),c({},e))}))},close:function(e){r((function(t){var n=wb(t,e);return n?c(c({},t),{},l({},n,t[n].map((function(t){return t.id==e?c(c({},t),{},{requestClose:!0}):t})))):t}))},isActive:function(e){return Boolean(xb(Sb.getState(),e).position)}}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var _b=0;var Eb=function(t){var n=t.status,r=t.variant,a=void 0===r?"solid":r,o=t.id,i=t.title,l=t.isClosable,s=t.onClose,c=t.description,u=t.icon,d=o?{root:"toast-".concat(o),title:"toast-".concat(o,"-title"),description:"toast-".concat(o,"-description")}:void 0;return e.createElement(Cd,{addRole:!1,status:n,variant:a,id:null==d?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},e.createElement(Pd,null,u),e.createElement(va.div,{flex:"1",maxWidth:"100%"},i&&e.createElement(Td,{id:null==d?void 0:d.title},i),c&&e.createElement(Ad,{id:null==d?void 0:d.description,display:"block"},c)),l&&e.createElement(Rd,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1}))};function Cb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.render,r=t.toastComponent,a=void 0===r?Eb:r,o=function(r){return"function"===typeof n?n(c(c({},r),t)):e.createElement(a,c(c({},r),t))};return o}var Ab={initial:function(e){var t=e.position,n=["top","bottom"].includes(t)?"y":"x",r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),l({opacity:0},n,24*r)},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Pb=(0,e.memo)((function(t){var n=t.id,r=t.message,a=t.onCloseComplete,o=t.onRequestRemove,i=t.requestClose,l=void 0!==i&&i,s=t.position,u=void 0===s?"bottom":s,d=t.duration,f=void 0===d?5e3:d,p=t.containerStyle,g=t.motionVariants,v=void 0===g?Ab:g,m=t.toastSpacing,h=void 0===m?"0.5rem":m,y=Ye((0,e.useState)(f),2),b=y[0],x=y[1],w=vf();pf((function(){w||null==a||a()}),[w]),pf((function(){x(f)}),[f]);var k=function(){w&&o()};(0,e.useEffect)((function(){w&&l&&o()}),[w,l,o]),function(t,n){var r=ff(t);(0,e.useEffect)((function(){var e;if(null!=n)return e=window.setTimeout((function(){r()}),n),function(){e&&window.clearTimeout(e)}}),[n,r])}(k,b);var S=(0,e.useMemo)((function(){return c({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h},p)}),[p,h]),_=(0,e.useMemo)((function(){return function(e){var t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(u)}),[u]);return e.createElement(mb.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:function(){return x(null)},onHoverEnd:function(){return x(f)},custom:{position:u},style:_},e.createElement(va.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S},hb(r,{id:n,onClose:k})))}));Pb.displayName="ToastComponent";var Tb=function(t){var n=(0,e.useSyncExternalStore)(Sb.subscribe,Sb.getState,Sb.getState),r=t.children,a=t.motionVariants,o=t.component,i=void 0===o?Pb:o,l=t.portalProps,s=Object.keys(n).map((function(t){var r=n[t];return e.createElement("ul",{role:"region","aria-live":"polite",key:t,id:"chakra-toast-manager-".concat(t),style:kb(t)},e.createElement(df,{initial:!1},r.map((function(t){return e.createElement(i,c({key:t.id,motionVariants:a},t))}))))}));return e.createElement(e.Fragment,null,r,e.createElement(dt,c({},l),s))};var zb=["children","theme","toastOptions"],jb=function(t){return function(n){var r=n.children,a=n.theme,o=void 0===a?t:a,i=n.toastOptions,l=u(n,zb);return e.createElement(ka,c({theme:o},l),r,e.createElement(Tb,c({},i)))}},Rb=jb(ld),Mb=(jb(sd),n(417));var Nb=function(e){return(0,Mb.jsx)("a",c(c({},e),{},{href:e.to,target:"_blank",rel:"noopener noreferrer",children:e.text}))},Ob="ServerStatus";function Bb(e){return(0,Mb.jsxs)("svg",c(c({width:"24",height:"24",fill:"none","aria-hidden":"true"},e),{},{children:[(0,Mb.jsx)("path",{d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Mb.jsx)("path",{d:"M12 4v1M18 6l-1 1M20 12h-1M18 18l-1-1M12 19v1M7 17l-1 1M5 12H4M7 7 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))}function Lb(e){return(0,Mb.jsx)("svg",c(c({width:"24",height:"24",fill:"none","aria-hidden":"true"},e),{},{children:(0,Mb.jsx)("path",{d:"M18 15.63c-.977.52-1.945.481-3.13.481A6.981 6.981 0 0 1 7.89 9.13c0-1.185-.04-2.153.481-3.13C6.166 7.174 5 9.347 5 12.018A6.981 6.981 0 0 0 11.982 19c2.67 0 4.844-1.166 6.018-3.37ZM16 5c0 2.08-.96 4-3 4 2.04 0 3 .92 3 3 0-2.08.96-3 3-3-2.04 0-3-1.92-3-4Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))}function Db(){var e=vt(),t=e.colorMode,n=e.toggleColorMode;return(0,Mb.jsx)("button",{type:"button",onClick:function(){var e="light"===t?"#334155":"#f8fafc";"light"===t?(document.documentElement.classList.add("dark"),document.body.style.backgroundColor=e):(document.documentElement.classList.remove("dark"),document.body.style.backgroundColor=e),n()},children:"light"===t?(0,Mb.jsx)(Lb,{}):(0,Mb.jsx)(Bb,{})})}var Fb=function(){return(0,e.useEffect)((function(){document.title=Ob}),[]),(0,Mb.jsxs)("div",{className:"container mx-auto flex max-w-7xl flex-row items-end justify-between pt-5",children:[(0,Mb.jsx)("h1",{className:"logo pl-2 text-2xl font-bold",children:Ob}),(0,Mb.jsx)("div",{className:"pr-8",children:(0,Mb.jsx)(Db,{})})]})};function Ib(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Vb(e,t){return Array.isArray(e)?e.map((function(e){return null===e?null:t(e)})):Ib(e)?Object.keys(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{}):null!=e?t(e):null}function Wb(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}function Ub(t){return e.Children.toArray(t).filter((function(t){return(0,e.isValidElement)(t)}))}var Hb=["ratio","children","className"],$b=["className"],qb=["size","centerContent"],Gb=["size"],Yb=["axis"],Xb=["className"],Kb=["className","centerContent"],Qb=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],Zb=["className","orientation","__css"],Jb=["direction","align","justify","wrap","basis","grow","shrink"],ex=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],tx=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],nx=["className"],rx=["className"],ax=["className","isExternal"],ox=["isExternal","target","rel","className"],ix=["className"],lx=["children","styleType","stylePosition","spacing"],sx=["as"],cx=["as"],ux=["columns","spacingX","spacingY","spacing","minChildWidth"],dx=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],fx=["className","align","decoration","casing"],px=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],gx=["className"],vx=da((function(t,n){var r=t.ratio,a=void 0===r?4/3:r,o=t.children,i=t.className,l=u(t,Hb),s=e.Children.only(o),d=cd("chakra-aspect-ratio",i);return e.createElement(va.div,c({ref:n,position:"relative",className:d,_before:{height:0,content:'""',display:"block",paddingBottom:Vb(a,(function(e){return"".concat(1/e*100,"%")}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},l),s)}));vx.displayName="AspectRatio";var mx=da((function(t,n){var r=pa("Badge",t),a=zr(t),o=(a.className,u(a,$b));return e.createElement(va.span,c(c({ref:n,className:cd("chakra-badge",t.className)},o),{},{__css:c({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},r)}))}));mx.displayName="Badge";var hx=va("div");hx.displayName="Box";var yx=da((function(t,n){var r=t.size,a=t.centerContent,o=void 0===a||a,i=u(t,qb),l=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return e.createElement(hx,c({ref:n,boxSize:r,__css:c(c({},l),{},{flexShrink:0,flexGrow:0})},i))}));yx.displayName="Square";var bx=da((function(t,n){var r=t.size,a=u(t,Gb);return e.createElement(yx,c({size:r,ref:n,borderRadius:"9999px"},a))}));bx.displayName="Circle",va("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}).displayName="Center";var xx={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},wx=(da((function(t,n){var r=t.axis,a=void 0===r?"both":r,o=u(t,Yb);return e.createElement(va.div,c(c({ref:n,__css:xx[a]},o),{},{position:"absolute"}))})),da((function(t,n){var r=pa("Code",t),a=zr(t),o=(a.className,u(a,Xb));return e.createElement(va.code,c(c({ref:n,className:cd("chakra-code",t.className)},o),{},{__css:c({display:"inline-block"},r)}))})));wx.displayName="Code";var kx=da((function(t,n){var r=zr(t),a=r.className,o=r.centerContent,i=u(r,Kb),l=pa("Container",t);return e.createElement(va.div,c(c({ref:n,className:cd("chakra-container",a)},i),{},{__css:c(c({},l),o&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));kx.displayName="Container";var Sx=da((function(t,n){var r=pa("Divider",t),a=r.borderLeftWidth,o=r.borderBottomWidth,i=r.borderTopWidth,l=r.borderRightWidth,s=r.borderWidth,d=r.borderStyle,f=r.borderColor,p=u(r,Qb),g=zr(t),v=g.className,m=g.orientation,h=void 0===m?"horizontal":m,y=g.__css,b=u(g,Zb),x={vertical:{borderLeftWidth:a||l||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return e.createElement(va.hr,c(c({ref:n,"aria-orientation":h},b),{},{__css:c(c(c({},p),{},{border:"0",borderColor:f,borderStyle:d},x[h]),y),className:cd("chakra-divider",v)}))}));Sx.displayName="Divider";var _x=da((function(t,n){var r=t.direction,a=t.align,o=t.justify,i=t.wrap,l=t.basis,s=t.grow,d=t.shrink,f=u(t,Jb),p={display:"flex",flexDirection:r,alignItems:a,justifyContent:o,flexWrap:i,flexBasis:l,flexGrow:s,flexShrink:d};return e.createElement(va.div,c({ref:n,__css:p},f))}));_x.displayName="Flex";var Ex=da((function(t,n){var r=t.templateAreas,a=t.gap,o=t.rowGap,i=t.columnGap,l=t.column,s=t.row,d=t.autoFlow,f=t.autoRows,p=t.templateRows,g=t.autoColumns,v=t.templateColumns,m=u(t,ex),h={display:"grid",gridTemplateAreas:r,gridGap:a,gridRowGap:o,gridColumnGap:i,gridAutoColumns:g,gridColumn:l,gridRow:s,gridAutoFlow:d,gridAutoRows:f,gridTemplateRows:p,gridTemplateColumns:v};return e.createElement(va.div,c({ref:n,__css:h},m))}));function Cx(e){return Vb(e,(function(e){return"auto"===e?"auto":"span ".concat(e,"/span ").concat(e)}))}Ex.displayName="Grid";var Ax=da((function(t,n){var r=t.area,a=t.colSpan,o=t.colStart,i=t.colEnd,l=t.rowEnd,s=t.rowSpan,d=t.rowStart,f=u(t,tx),p=Wb({gridArea:r,gridColumn:Cx(a),gridRow:Cx(s),gridColumnStart:o,gridColumnEnd:i,gridRowStart:d,gridRowEnd:l});return e.createElement(va.div,c({ref:n,__css:p},f))}));Ax.displayName="GridItem";var Px=da((function(t,n){var r=pa("Heading",t),a=zr(t),o=(a.className,u(a,nx));return e.createElement(va.h2,c(c({ref:n,className:cd("chakra-heading",t.className)},o),{},{__css:r}))}));Px.displayName="Heading";da((function(t,n){var r=pa("Mark",t),a=zr(t);return e.createElement(hx,c(c({ref:n},a),{},{as:"mark",__css:c({bg:"transparent",whiteSpace:"nowrap"},r)}))}));var Tx=da((function(t,n){var r=pa("Kbd",t),a=zr(t),o=a.className,i=u(a,rx);return e.createElement(va.kbd,c(c({ref:n,className:cd("chakra-kbd",o)},i),{},{__css:c({fontFamily:"mono"},r)}))}));Tx.displayName="Kbd";var zx=da((function(t,n){var r=pa("Link",t),a=zr(t),o=a.className,i=a.isExternal,l=u(a,ax);return e.createElement(va.a,c(c({target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:cd("chakra-link",o)},l),{},{__css:r}))}));zx.displayName="Link";da((function(t,n){var r=t.isExternal,a=t.target,o=t.rel,i=t.className,l=u(t,ox);return e.createElement(va.a,c(c({},l),{},{ref:n,className:cd("chakra-linkbox__overlay",i),rel:r?"noopener noreferrer":o,target:r?"_blank":a,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}}))})),da((function(t,n){var r=t.className,a=u(t,ix);return e.createElement(va.div,c(c({ref:n,position:"relative"},a),{},{className:cd("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}}))}));var jx=Ye(Ke({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"
\" "}),2),Rx=jx[0],Mx=jx[1],Nx=da((function(t,n){var r=ga("List",t),a=zr(t),o=a.children,i=a.styleType,s=void 0===i?"none":i,d=a.stylePosition,f=a.spacing,p=u(a,lx),g=Ub(o),v=f?l({},"& > *:not(style) ~ *:not(style)",{mt:f}):{};return e.createElement(Rx,{value:r},e.createElement(va.ul,c({ref:n,listStyleType:s,listStylePosition:d,role:"list",__css:c(c({},r.container),v)},p),g))}));Nx.displayName="List",da((function(t,n){t.as;var r=u(t,sx);return e.createElement(Nx,c({ref:n,as:"ol",styleType:"decimal",marginStart:"1em"},r))})).displayName="OrderedList",da((function(t,n){t.as;var r=u(t,cx);return e.createElement(Nx,c({ref:n,as:"ul",styleType:"initial",marginStart:"1em"},r))})).displayName="UnorderedList";var Ox=da((function(t,n){var r=Mx();return e.createElement(va.li,c(c({ref:n},t),{},{__css:r.item}))}));Ox.displayName="ListItem";var Bx=da((function(t,n){var r=Mx();return e.createElement(fd,c(c({ref:n,role:"presentation"},t),{},{__css:r.icon}))}));Bx.displayName="ListIcon";var Lx=da((function(t,n){var r=t.columns,a=t.spacingX,o=t.spacingY,i=t.spacing,l=t.minChildWidth,s=u(t,ux),d=Jr(),f=l?function(e,t){return Vb(e,(function(e){var n,r=ta("sizes",e,"number"===typeof(n=e)?"".concat(n,"px"):n)(t);return null===e?null:"repeat(auto-fit, minmax(".concat(r,", 1fr))")}))}(l,d):Vb(r,(function(e){return null===e?null:"repeat(".concat(e,", minmax(0, 1fr))")}));return e.createElement(Ex,c({ref:n,gap:i,columnGap:a,rowGap:o,templateColumns:f},s))}));Lx.displayName="SimpleGrid",va("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}}).displayName="Spacer";var Dx="& > *:not(style) ~ *:not(style)";var Fx=function(t){return e.createElement(va.div,c(c({className:"chakra-stack__item"},t),{},{__css:c({display:"inline-block",flex:"0 0 auto",minWidth:0},t.__css)}))};Fx.displayName="StackItem";var Ix=da((function(t,n){var r=t.isInline,a=t.direction,o=t.align,i=t.justify,s=t.spacing,d=void 0===s?"0.5rem":s,f=t.wrap,p=t.children,g=t.divider,v=t.className,m=t.shouldWrapChildren,h=u(t,dx),y=r?"row":null!==a&&void 0!==a?a:"column",b=(0,e.useMemo)((function(){return function(e){var t=e.spacing,n=e.direction,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return l({flexDirection:n},Dx,Vb(n,(function(e){return r[e]})))}({direction:y,spacing:d})}),[y,d]),x=(0,e.useMemo)((function(){return function(e){var t=e.spacing,n=e.direction,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Vb(n,(function(e){return r[e]}))}}({spacing:d,direction:y})}),[d,y]),w=!!g,k=!m&&!w,S=(0,e.useMemo)((function(){var t=Ub(p);return k?t:t.map((function(n,r){var a="undefined"!==typeof n.key?n.key:r,o=r+1===t.length,i=m?e.createElement(Fx,{key:a},n):n;if(!w)return i;var l=(0,e.cloneElement)(g,{__css:x}),s=o?null:l;return e.createElement(e.Fragment,{key:a},i,s)}))}),[g,x,w,k,m,p]),_=cd("chakra-stack",v);return e.createElement(va.div,c({ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:b.flexDirection,flexWrap:f,className:_,__css:w?{}:l({},Dx,b[Dx])},h),S)}));Ix.displayName="Stack",da((function(t,n){return e.createElement(Ix,c(c({align:"center"},t),{},{direction:"row",ref:n}))})).displayName="HStack";da((function(t,n){return e.createElement(Ix,c(c({align:"center"},t),{},{direction:"column",ref:n}))})).displayName="VStack";var Vx=da((function(t,n){var r=pa("Text",t),a=zr(t),o=(a.className,a.align,a.decoration,a.casing,u(a,fx)),i=Wb({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return e.createElement(va.p,c(c(c({ref:n,className:cd("chakra-text",t.className)},i),o),{},{__css:r}))}));function Wx(e){return"number"===typeof e?"".concat(e,"px"):e}Vx.displayName="Text";var Ux=da((function(t,n){var r=t.spacing,a=void 0===r?"0.5rem":r,o=t.spacingX,i=t.spacingY,l=t.children,s=t.justify,d=t.direction,f=t.align,p=t.className,g=t.shouldWrapChildren,v=u(t,px),m=(0,e.useMemo)((function(){var e={spacingX:o,spacingY:i},t=e.spacingX,n=void 0===t?a:t,r=e.spacingY,l=void 0===r?a:r;return{"--chakra-wrap-x-spacing":function(e){return Vb(n,(function(t){return Wx(Wt("space",t)(e))}))},"--chakra-wrap-y-spacing":function(e){return Vb(l,(function(t){return Wx(Wt("space",t)(e))}))},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:f,flexDirection:d,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[a,o,i,s,f,d]),h=(0,e.useMemo)((function(){return g?e.Children.map(l,(function(t,n){return e.createElement(Hx,{key:n},t)})):l}),[l,g]);return e.createElement(va.div,c({ref:n,className:cd("chakra-wrap",p),overflow:"hidden"},v),e.createElement(va.ul,{className:"chakra-wrap__list",__css:m},h))}));Ux.displayName="Wrap";var Hx=da((function(t,n){var r=t.className,a=u(t,gx);return e.createElement(va.li,c({ref:n,__css:{display:"flex",alignItems:"flex-start"},className:cd("chakra-wrap__listitem",r)},a))}));Hx.displayName="WrapItem";var $x={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qx=e.createContext&&e.createContext($x),Gx=function(){return Gx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n80?t="bg-red-400":e>70&&(t="bg-yellow-400"),[t,"bg-slate-100"]}(t),a=Ye(r,2),o=a[0],i=a[1];return(0,Mb.jsxs)("div",{className:"relative flex h-5 w-full rounded-sm text-tiny lg:text-base ".concat(i),children:[(0,Mb.jsx)("div",{style:{width:"".concat(t,"%"),transition:"width 1s"},className:"h-full rounded-sm ".concat(o," ")}),(0,Mb.jsx)("div",{className:"lg:text-md absolute left-1/3 top-1/2 -mt-2 text-center text-tiny font-normal text-indigo-800 md:text-xs",children:n})]})}function ew(e,t){if(!e.online4&&!e.online6)return(0,Mb.jsx)("div",{children:"-"});switch(t){case"cpu":return Jx(Math.round(e.cpu));case"mem":return Jx(Math.round(100*e.memory_used/e.memory_total));case"hdd":return Jx(Math.round(100*e.hdd_used/e.hdd_total));default:return(0,Mb.jsx)("div",{children:"-"})}}function tw(e){var t="bg-green-400";return e.ping_10010>=70||e.ping_189>=70||e.ping_10086>=70?t="bg-red-400":(e.ping_10010>=20||e.ping_189>=20||e.ping_10086>=20)&&(t="bg-yellow-400"),e.online4||e.online6?(0,Mb.jsx)("div",{className:"h-5 w-full rounded-sm text-sm lg:text-base ".concat(t," pr-2"),children:(0,Mb.jsxs)("div",{className:"flex h-full w-full items-center justify-center space-x-1 rounded-sm pt-0.5 text-center text-tiny font-normal text-indigo-800 dark:text-indigo-900",children:[(0,Mb.jsxs)("div",{children:[e.ping_10010,"%"]}),(0,Mb.jsx)(Zx,{className:"h-4 w-4 text-amber-500"}),(0,Mb.jsxs)("div",{children:[e.ping_189,"%"]}),(0,Mb.jsx)(Zx,{className:"h-4 w-4 text-amber-500"}),(0,Mb.jsxs)("div",{children:[" ",e.ping_10086,"%"]})]})}):(0,Mb.jsx)("div",{children:"-"})}var nw=["B","K","M","G","T","P"],rw=nw.map((function(e,t){return Math.pow(2,10*t)}));function aw(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=nw.length-1;n>=1;--n)if(e>=rw[n])return(1*e/rw[n]).toFixed(t)+nw[n];return e.toFixed(t)+"B"}function ow(e){return Kx({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"}}]})(e)}function iw(e){return Kx({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#CFD8DC",d:"M5,38V14h38v24c0,2.2-1.8,4-4,4H9C6.8,42,5,40.2,5,38z"}},{tag:"path",attr:{fill:"#F44336",d:"M43,10v6H5v-6c0-2.2,1.8-4,4-4h30C41.2,6,43,7.8,43,10z"}},{tag:"g",attr:{fill:"#B71C1C"},child:[{tag:"circle",attr:{cx:"33",cy:"10",r:"3"}},{tag:"circle",attr:{cx:"15",cy:"10",r:"3"}}]},{tag:"g",attr:{fill:"#B0BEC5"},child:[{tag:"path",attr:{d:"M33,3c-1.1,0-2,0.9-2,2v5c0,1.1,0.9,2,2,2s2-0.9,2-2V5C35,3.9,34.1,3,33,3z"}},{tag:"path",attr:{d:"M15,3c-1.1,0-2,0.9-2,2v5c0,1.1,0.9,2,2,2s2-0.9,2-2V5C17,3.9,16.1,3,15,3z"}}]},{tag:"g",attr:{fill:"#90A4AE"},child:[{tag:"rect",attr:{x:"13",y:"20",width:"4",height:"4"}},{tag:"rect",attr:{x:"19",y:"20",width:"4",height:"4"}},{tag:"rect",attr:{x:"25",y:"20",width:"4",height:"4"}},{tag:"rect",attr:{x:"31",y:"20",width:"4",height:"4"}},{tag:"rect",attr:{x:"13",y:"26",width:"4",height:"4"}},{tag:"rect",attr:{x:"19",y:"26",width:"4",height:"4"}},{tag:"rect",attr:{x:"25",y:"26",width:"4",height:"4"}},{tag:"rect",attr:{x:"31",y:"26",width:"4",height:"4"}},{tag:"rect",attr:{x:"13",y:"32",width:"4",height:"4"}},{tag:"rect",attr:{x:"19",y:"32",width:"4",height:"4"}},{tag:"rect",attr:{x:"25",y:"32",width:"4",height:"4"}},{tag:"rect",attr:{x:"31",y:"32",width:"4",height:"4"}}]}]})(e)}function lw(e){return Kx({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FF9800",d:"M44,18v-4H34V4h-4v10h-4V4h-4v10h-4V4h-4v10H4v4h10v4H4v4h10v4H4v4h10v10h4V34h4v10h4V34h4v10h4V34h10v-4H34 v-4h10v-4H34v-4H44z"}},{tag:"path",attr:{fill:"#4CAF50",d:"M8,12v24c0,2.2,1.8,4,4,4h24c2.2,0,4-1.8,4-4V12c0-2.2-1.8-4-4-4H12C9.8,8,8,9.8,8,12z"}},{tag:"path",attr:{fill:"#37474F",d:"M31,31H17c-1.1,0-2-0.9-2-2V19c0-1.1,0.9-2,2-2h14c1.1,0,2,0.9,2,2v10C33,30.1,32.1,31,31,31z"}}]})(e)}function sw(e){return Kx({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M5.998 1.607L0 12l5.998 10.393h12.004L24 12 18.002 1.607H5.998zM9.965 7.12L12.66 9.9l1.598 1.595.002-.002 2.41 2.363c-.2.14-.386.252-.563.344a3.756 3.756 0 01-.496.217 2.702 2.702 0 01-.425.111c-.131.023-.25.034-.358.034-.13 0-.242-.014-.338-.034a1.317 1.317 0 01-.24-.072.95.95 0 01-.2-.113l-1.062-1.092-3.039-3.041-1.1 1.053-3.07 3.072a.974.974 0 01-.2.111 1.274 1.274 0 01-.237.073c-.096.02-.209.033-.338.033-.108 0-.227-.009-.358-.031a2.7 2.7 0 01-.425-.114 3.748 3.748 0 01-.496-.217 5.228 5.228 0 01-.563-.343l6.803-6.727zm4.72.785l4.579 4.598 1.382 1.353a5.24 5.24 0 01-.564.344 3.73 3.73 0 01-.494.217 2.697 2.697 0 01-.426.111c-.13.023-.251.034-.36.034-.129 0-.241-.014-.337-.034a1.285 1.285 0 01-.385-.146c-.033-.02-.05-.036-.053-.04l-1.232-1.218-2.111-2.111-.334.334L12.79 9.8l1.896-1.897zm-5.966 4.12v2.529a2.128 2.128 0 01-.356-.035 2.765 2.765 0 01-.422-.116 3.708 3.708 0 01-.488-.214 5.217 5.217 0 01-.555-.34l1.82-1.825Z"}}]})(e)}var cw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Centos",src:"static/os/centos.svg"})},uw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Debian",src:"static/os/debian.svg"})},dw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Ubuntu",src:"static/os/ubuntu.svg"})},fw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Pi",src:"static/os/raspberry.svg"})},pw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Arch",src:"static/os/archlinux.svg"})},gw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Windows",src:"static/os/window.svg"})},vw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Linux",src:"static/os/linux.svg"})};var mw=function(e){switch(e){case"centos":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(cw,{})});case"debian":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(uw,{})});case"ubuntu":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(dw,{})});case"alpine":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(sw,{className:"h-5 w-5 rounded text-blue-500 dark:text-sky-500"})});case"pi":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(fw,{})});case"arch":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(pw,{})});case"windows":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(gw,{})});default:return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(vw,{})})}};function hw(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}else e(t)}function yw(){for(var e=arguments.length,t=new Array(e),n=0;n0&&Ew(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ew(r.height)/e.offsetHeight||1);var i=(xw(e)?bw(e):window).visualViewport,l=!Aw()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/a,c=(r.top+(l&&i?i.offsetTop:0))/o,u=r.width/a,d=r.height/o;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Tw(e){var t=bw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zw(e){return e?(e.nodeName||"").toLowerCase():null}function jw(e){return((xw(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rw(e){return Pw(jw(e)).left+Tw(e).scrollLeft}function Mw(e){return bw(e).getComputedStyle(e)}function Nw(e){var t=Mw(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Ow(e,t,n){void 0===n&&(n=!1);var r=ww(t),a=ww(t)&&function(e){var t=e.getBoundingClientRect(),n=Ew(t.width)/e.offsetWidth||1,r=Ew(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=jw(t),i=Pw(e,a,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==zw(t)||Nw(o))&&(l=function(e){return e!==bw(e)&&ww(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Tw(e);var t}(t)),ww(t)?((s=Pw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Rw(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Bw(e){var t=Pw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Lw(e){return"html"===zw(e)?e:e.assignedSlot||e.parentNode||(kw(e)?e.host:null)||jw(e)}function Dw(e){return["html","body","#document"].indexOf(zw(e))>=0?e.ownerDocument.body:ww(e)&&Nw(e)?e:Dw(Lw(e))}function Fw(e,t){var n;void 0===t&&(t=[]);var r=Dw(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=bw(r),i=a?[o].concat(o.visualViewport||[],Nw(r)?r:[]):r,l=t.concat(i);return a?l:l.concat(Fw(Lw(i)))}function Iw(e){return["table","td","th"].indexOf(zw(e))>=0}function Vw(e){return ww(e)&&"fixed"!==Mw(e).position?e.offsetParent:null}function Ww(e){for(var t=bw(e),n=Vw(e);n&&Iw(n)&&"static"===Mw(n).position;)n=Vw(n);return n&&("html"===zw(n)||"body"===zw(n)&&"static"===Mw(n).position)?t:n||function(e){var t=/firefox/i.test(Cw());if(/Trident/i.test(Cw())&&ww(e)&&"fixed"===Mw(e).position)return null;var n=Lw(e);for(kw(n)&&(n=n.host);ww(n)&&["html","body"].indexOf(zw(n))<0;){var r=Mw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Uw="top",Hw="bottom",$w="right",qw="left",Gw="auto",Yw=[Uw,Hw,$w,qw],Xw="start",Kw="end",Qw="viewport",Zw="popper",Jw=Yw.reduce((function(e,t){return e.concat([t+"-"+Xw,t+"-"+Kw])}),[]),ek=[].concat(Yw,[Gw]).reduce((function(e,t){return e.concat([t,t+"-"+Xw,t+"-"+Kw])}),[]),tk=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nk(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),r}function rk(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ak={placement:"bottom",modifiers:[],strategy:"absolute"};function ok(){for(var e=arguments.length,t=new Array(e),n=0;n