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 Fh,Dh=new Set(["width","height","top","left","right","bottom","x","y"]),Ih=function(e){return Dh.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"}(Fh||(Fh={}));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(Fp(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 Fy(e){return Zm(e.x)/Zm(e.y)}var Dy=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 Dy),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(Fy(t),Fy(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({},Df(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 Fb(){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 Db=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)(Fb,{})})]})};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 Fx="& > *:not(style) ~ *:not(style)";var Dx=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)}))};Dx.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},Fx,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(Dx,{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({},Fx,b[Fx])},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;n90?t="bg-red-400":e>80&&(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 text-tiny lg:text-base ".concat(i),children:[(0,Mb.jsx)("div",{style:{width:"".concat(t,"%"),transition:"width 1s"},className:"h-full ".concat(o)}),(0,Mb.jsx)("div",{className:"lg:text-md absolute left-1/4 top-1/2 -mt-2 text-center text-tiny font-normal text-indigo-800 md:left-1/3 md:text-xs",children:n})]})}function rw(e,t){if(!e.online4&&!e.online6)return tw();switch(t){case"cpu":return nw(Math.round(e.cpu));case"mem":return nw(Math.round(100*e.memory_used/e.memory_total));case"hdd":return nw(Math.round(100*e.hdd_used/e.hdd_total));default:return tw()}}function aw(e){var t="bg-emerald-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 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 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.toFixed(0),"%"]}),(0,Mb.jsx)(Zx,{className:"h-4 w-4 text-amber-500"}),(0,Mb.jsxs)("div",{children:[e.ping_189.toFixed(0),"%"]}),(0,Mb.jsx)(Zx,{className:"h-4 w-4 text-amber-500"}),(0,Mb.jsxs)("div",{children:[" ",e.ping_10086.toFixed(0),"%"]})]})}):(0,Mb.jsxs)("div",{className:"flex items-center justify-evenly bg-red-400",children:[(0,Mb.jsx)("div",{className:"text-sm font-normal text-indigo-800",children:" - "}),(0,Mb.jsx)("div",{className:"text-sm font-normal text-indigo-800",children:" - "}),(0,Mb.jsx)("div",{className:"text-sm font-normal text-indigo-800",children:" - "})]})}var ow=["B","K","M","G","T","P"],iw=[ow.map((function(e,t){return Math.pow(2,10*t)})),ow.map((function(e,t){return Math.pow(10,3*t)}))];function lw(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=ow.length-1;r>=1;--r)if(e>=iw[n][r])return(1*e/iw[n][r]).toFixed(t)+ow[r];return e.toFixed(t)+"B"}function sw(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 cw(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 uw(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 dw(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 fw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Centos",src:"static/os/centos.svg"})},pw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Debian",src:"static/os/debian.svg"})},gw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Ubuntu",src:"static/os/ubuntu.svg"})},vw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Pi",src:"static/os/raspberry.svg"})},mw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Arch",src:"static/os/archlinux.svg"})},hw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"MacOS",src:"static/os/macos.svg"})},yw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Windows",src:"static/os/window.svg"})},bw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Android",src:"static/os/android.svg"})},xw=function(){return(0,Mb.jsx)("img",{className:"h-5 w-5 rounded",alt:"Linux",src:"static/os/linux.svg"})};var ww=function(e){switch(e){case"centos":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(fw,{})});case"debian":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(pw,{})});case"ubuntu":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(gw,{})});case"alpine":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(dw,{className:"h-5 w-5 rounded text-blue-500 dark:text-sky-500"})});case"pi":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(vw,{})});case"arch":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(mw,{})});case"macos":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(hw,{})});case"windows":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(yw,{})});case"android":return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(bw,{})});default:return(0,Mb.jsx)("div",{children:(0,Mb.jsx)(xw,{})})}};function kw(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 Sw(){for(var e=arguments.length,t=new Array(e),n=0;n0&&zw(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&zw(r.height)/e.offsetHeight||1);var i=(Ew(e)?_w(e):window).visualViewport,l=!Rw()&&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 Nw(e){var t=_w(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ow(e){return e?(e.nodeName||"").toLowerCase():null}function Bw(e){return((Ew(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lw(e){return Mw(Bw(e)).left+Nw(e).scrollLeft}function Fw(e){return _w(e).getComputedStyle(e)}function Dw(e){var t=Fw(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Iw(e,t,n){void 0===n&&(n=!1);var r=Cw(t),a=Cw(t)&&function(e){var t=e.getBoundingClientRect(),n=zw(t.width)/e.offsetWidth||1,r=zw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Bw(t),i=Mw(e,a,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ow(t)||Dw(o))&&(l=function(e){return e!==_w(e)&&Cw(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Nw(e);var t}(t)),Cw(t)?((s=Mw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Lw(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Vw(e){var t=Mw(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 Ww(e){return"html"===Ow(e)?e:e.assignedSlot||e.parentNode||(Aw(e)?e.host:null)||Bw(e)}function Uw(e){return["html","body","#document"].indexOf(Ow(e))>=0?e.ownerDocument.body:Cw(e)&&Dw(e)?e:Uw(Ww(e))}function Hw(e,t){var n;void 0===t&&(t=[]);var r=Uw(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=_w(r),i=a?[o].concat(o.visualViewport||[],Dw(r)?r:[]):r,l=t.concat(i);return a?l:l.concat(Hw(Ww(i)))}function $w(e){return["table","td","th"].indexOf(Ow(e))>=0}function qw(e){return Cw(e)&&"fixed"!==Fw(e).position?e.offsetParent:null}function Gw(e){for(var t=_w(e),n=qw(e);n&&$w(n)&&"static"===Fw(n).position;)n=qw(n);return n&&("html"===Ow(n)||"body"===Ow(n)&&"static"===Fw(n).position)?t:n||function(e){var t=/firefox/i.test(jw());if(/Trident/i.test(jw())&&Cw(e)&&"fixed"===Fw(e).position)return null;var n=Ww(e);for(Aw(n)&&(n=n.host);Cw(n)&&["html","body"].indexOf(Ow(n))<0;){var r=Fw(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 Yw="top",Xw="bottom",Kw="right",Qw="left",Zw="auto",Jw=[Yw,Xw,Kw,Qw],ek="start",tk="end",nk="viewport",rk="popper",ak=Jw.reduce((function(e,t){return e.concat([t+"-"+ek,t+"-"+tk])}),[]),ok=[].concat(Jw,[Zw]).reduce((function(e,t){return e.concat([t,t+"-"+ek,t+"-"+tk])}),[]),ik=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function lk(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 sk(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ck={placement:"bottom",modifiers:[],strategy:"absolute"};function uk(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function hk(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?gk(a):null,i=a?vk(a):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(o){case Yw:t={x:l,y:n.y-r.height};break;case Xw:t={x:l,y:n.y+n.height};break;case Kw:t={x:n.x+n.width,y:s};break;case Qw:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=o?mk(o):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case ek:t[c]=t[c]-(n[u]/2-r[u]/2);break;case tk:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var yk={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=hk({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},bk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xk(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,g=i.y,v=void 0===g?0:g,m="function"===typeof u?u({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var h=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=Qw,x=Yw,w=window;if(c){var k=Gw(n),S="clientHeight",_="clientWidth";if(k===_w(n)&&"static"!==Fw(k=Bw(n)).position&&"absolute"===l&&(S="scrollHeight",_="scrollWidth"),a===Yw||(a===Qw||a===Kw)&&o===tk)x=Xw,v-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[S])-r.height,v*=s?1:-1;if(a===Qw||(a===Yw||a===Xw)&&o===tk)b=Kw,p-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[_])-r.width,p*=s?1:-1}var E,C=Object.assign({position:l},c&&bk),A=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:zw(t*r)/r||0,y:zw(n*r)/r||0}}({x:p,y:v}):{x:p,y:v};return p=A.x,v=A.y,s?Object.assign({},C,((E={})[x]=y?"0":"",E[b]=h?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",E)):Object.assign({},C,((t={})[x]=y?v+"px":"",t[b]=h?p+"px":"",t.transform="",t))}var wk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,o=n.adaptive,i=void 0===o||o,l=n.roundOffsets,s=void 0===l||l,c={placement:gk(t.placement),variation:vk(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xk(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var kk={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];Cw(a)&&Ow(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Cw(r)&&Ow(r)&&(Object.assign(r.style,o),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Sk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=void 0===a?[0,0]:a,i=ok.reduce((function(e,n){return e[n]=function(e,t,n){var r=gk(e),a=[Qw,Yw].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Qw,Kw].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,o),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},_k={left:"right",right:"left",bottom:"top",top:"bottom"};function Ek(e){return e.replace(/left|right|bottom|top/g,(function(e){return _k[e]}))}var Ck={start:"end",end:"start"};function Ak(e){return e.replace(/start|end/g,(function(e){return Ck[e]}))}function Pk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Aw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Tk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zk(e,t,n){return t===nk?Tk(function(e,t){var n=_w(e),r=Bw(e),a=n.visualViewport,o=r.clientWidth,i=r.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;var c=Rw();(c||!c&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:l+Lw(e),y:s}}(e,n)):Ew(t)?function(e,t){var n=Mw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Tk(function(e){var t,n=Bw(e),r=Nw(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=Pw(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Pw(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+Lw(e),s=-r.scrollTop;return"rtl"===Fw(a||n).direction&&(l+=Pw(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}(Bw(e)))}function jk(e,t,n,r){var a="clippingParents"===t?function(e){var t=Hw(Ww(e)),n=["absolute","fixed"].indexOf(Fw(e).position)>=0&&Cw(e)?Gw(e):e;return Ew(n)?t.filter((function(e){return Ew(e)&&Pk(e,n)&&"body"!==Ow(e)})):[]}(e):[].concat(t),o=[].concat(a,[n]),i=o[0],l=o.reduce((function(t,n){var a=zk(e,n,r);return t.top=Pw(a.top,t.top),t.right=Tw(a.right,t.right),t.bottom=Tw(a.bottom,t.bottom),t.left=Pw(a.left,t.left),t}),zk(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Rk(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Mk(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Nk(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,o=n.strategy,i=void 0===o?e.strategy:o,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?nk:c,d=n.elementContext,f=void 0===d?rk:d,p=n.altBoundary,g=void 0!==p&&p,v=n.padding,m=void 0===v?0:v,h=Rk("number"!==typeof m?m:Mk(m,Jw)),y=f===rk?"reference":rk,b=e.rects.popper,x=e.elements[g?y:f],w=jk(Ew(x)?x:x.contextElement||Bw(e.elements.popper),s,u,i),k=Mw(e.elements.reference),S=hk({reference:k,element:b,strategy:"absolute",placement:a}),_=Tk(Object.assign({},b,S)),E=f===rk?_:k,C={top:w.top-E.top+h.top,bottom:E.bottom-w.bottom+h.bottom,left:w.left-E.left+h.left,right:E.right-w.right+h.right},A=e.modifiersData.offset;if(f===rk&&A){var P=A[a];Object.keys(C).forEach((function(e){var t=[Kw,Xw].indexOf(e)>=0?1:-1,n=[Yw,Xw].indexOf(e)>=0?"y":"x";C[e]+=P[n]*t}))}return C}var Ok={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,h=gk(m),y=s||(h===m||!g?[Ek(m)]:function(e){if(gk(e)===Zw)return[];var t=Ek(e);return[Ak(e),t,Ak(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(gk(n)===Zw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?ok:s,u=vk(r),d=u?l?ak:ak.filter((function(e){return vk(e)===u})):Jw,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Nk(e,{placement:n,boundary:a,rootBoundary:o,padding:i})[gk(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,_=b[0],E=0;E=0,z=T?"width":"height",j=Nk(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),R=T?P?Kw:Qw:P?Xw:Yw;x[z]>w[z]&&(R=Ek(R));var M=Ek(R),N=[];if(o&&N.push(j[A]<=0),l&&N.push(j[R]<=0,j[M]<=0),N.every((function(e){return e}))){_=C,S=!1;break}k.set(C,N)}if(S)for(var O=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},B=g?3:1;B>0;B--){if("break"===O(B))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Bk(e,t,n){return Pw(e,Tw(t,n))}var Lk={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=void 0===a||a,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,m=Nk(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),h=gk(t.placement),y=vk(t.placement),b=!y,x=mk(h),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,_=t.rects.popper,E="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,C="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(k){if(o){var T,z="y"===x?Yw:Qw,j="y"===x?Xw:Kw,R="y"===x?"height":"width",M=k[x],N=M+m[z],O=M-m[j],B=p?-_[R]/2:0,L=y===ek?S[R]:_[R],F=y===ek?-_[R]:-S[R],D=t.elements.arrow,I=p&&D?Vw(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=V[z],U=V[j],H=Bk(0,S[R],I[R]),$=b?S[R]/2-B-H-W-C.mainAxis:L-H-W-C.mainAxis,q=b?-S[R]/2+B+H+U+C.mainAxis:F+H+U+C.mainAxis,G=t.elements.arrow&&Gw(t.elements.arrow),Y=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,X=null!=(T=null==A?void 0:A[x])?T:0,K=M+q-X,Q=Bk(p?Tw(N,M+$-X-Y):N,M,p?Pw(O,K):O);k[x]=Q,P[x]=Q-M}if(l){var Z,J="x"===x?Yw:Qw,ee="x"===x?Xw:Kw,te=k[w],ne="y"===w?"height":"width",re=te+m[J],ae=te-m[ee],oe=-1!==[Yw,Qw].indexOf(h),ie=null!=(Z=null==A?void 0:A[w])?Z:0,le=oe?re:te-S[ne]-_[ne]-ie+C.altAxis,se=oe?te+S[ne]+_[ne]-ie-C.altAxis:ae,ce=p&&oe?function(e,t,n){var r=Bk(e,t,n);return r>n?n:r}(le,te,se):Bk(p?le:re,te,p?se:ae);k[w]=ce,P[w]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};var Fk={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,l=gk(n.placement),s=mk(l),c=[Qw,Kw].indexOf(l)>=0?"height":"width";if(o&&i){var u=function(e,t){return Rk("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Mk(e,Jw))}(a.padding,n),d=Vw(o),f="y"===s?Yw:Qw,p="y"===s?Xw:Kw,g=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],v=i[s]-n.rects.reference[s],m=Gw(o),h=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,y=g/2-v/2,b=u[f],x=h-d[c]-u[p],w=h/2-d[c]/2+y,k=Bk(b,w,x),S=s;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Pk(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dk(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ik(e){return[Yw,Kw,Xw,Qw].some((function(t){return e[t]>=0}))}var Vk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=Nk(t,{elementContext:"reference"}),l=Nk(t,{altBoundary:!0}),s=Dk(i,r),c=Dk(l,a,o),u=Ik(s),d=Ik(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Wk=dk({defaultModifiers:[pk,yk,wk,kk,Sk,Ok,Lk,Fk,Vk]}),Uk=["size","shadowColor","bg","style"],Hk=function(e,t){return{var:e,varRef:t?"var(".concat(e,", ").concat(t,")"):"var(".concat(e,")")}},$k={arrowShadowColor:Hk("--popper-arrow-shadow-color"),arrowSize:Hk("--popper-arrow-size","8px"),arrowSizeHalf:Hk("--popper-arrow-size-half"),arrowBg:Hk("--popper-arrow-bg"),transformOrigin:Hk("--popper-transform-origin"),arrowOffset:Hk("--popper-arrow-offset")};var qk={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Gk={scroll:!0,resize:!0};function Yk(e){return"object"===typeof e?{enabled:!0,options:c(c({},Gk),e)}:{enabled:e,options:Gk}}var Xk={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:function(e){var t=e.state;return function(){var e=t.elements.reference;t.elements.popper.style.width="".concat(e.offsetWidth,"px")}}},Kk={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){var t=e.state;Qk(t)},effect:function(e){var t=e.state;return function(){Qk(t)}}},Qk=function(e){var t;e.elements.popper.style.setProperty($k.transformOrigin.var,(t=e.placement,qk[t]))},Zk={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;Jk(t)}},Jk=function(e){var t;if(e.placement){var n=eS(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){var r,a;Object.assign(e.elements.arrow.style,(l(r={},n.property,n.value),l(r,"width",$k.arrowSize.varRef),l(r,"height",$k.arrowSize.varRef),l(r,"zIndex",-1),r));var o=(l(a={},$k.arrowSizeHalf.var,"calc(".concat($k.arrowSize.varRef," / 2)")),l(a,$k.arrowOffset.var,"calc(".concat($k.arrowSizeHalf.varRef," * -1)")),a);for(var i in o)e.elements.arrow.style.setProperty(i,o[i])}}},eS=function(e){return e.startsWith("top")?{property:"bottom",value:$k.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:$k.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:$k.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:$k.arrowOffset.varRef}:void 0},tS={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){var t=e.state;nS(t)},effect:function(e){var t=e.state;return function(){nS(t)}}},nS=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(n)Object.assign(n.style,{transform:"rotate(45deg)",background:$k.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},rS={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},aS={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function oS(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr",a=(null==(n=rS[e])?void 0:n[r])||e;return"ltr"===r?a:null!==(t=aS[e])&&void 0!==t?t:a}function iS(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.enabled,r=void 0===n||n,a=t.modifiers,o=t.placement,i=void 0===o?"bottom":o,l=t.strategy,s=void 0===l?"absolute":l,d=t.arrowPadding,f=void 0===d?8:d,p=t.eventListeners,g=void 0===p||p,v=t.offset,m=t.gutter,h=void 0===m?8:m,y=t.flip,b=void 0===y||y,x=t.boundary,w=void 0===x?"clippingParents":x,k=t.preventOverflow,S=void 0===k||k,_=t.matchWidth,E=t.direction,C=void 0===E?"ltr":E,A=(0,e.useRef)(null),P=(0,e.useRef)(null),T=(0,e.useRef)(null),z=oS(i,C),j=(0,e.useRef)((function(){})),R=(0,e.useCallback)((function(){var e;r&&A.current&&P.current&&(null==(e=j.current)||e.call(j),T.current=Wk(A.current,P.current,{placement:z,modifiers:[tS,Zk,Kk,c(c({},Xk),{},{enabled:!!_}),c({name:"eventListeners"},Yk(g)),{name:"arrow",options:{padding:f}},{name:"offset",options:{offset:null!==v&&void 0!==v?v:[0,h]}},{name:"flip",enabled:!!b,options:{padding:8}},{name:"preventOverflow",enabled:!!S,options:{boundary:w}}].concat(pt(null!==a&&void 0!==a?a:[])),strategy:s}),T.current.forceUpdate(),j.current=T.current.destroy)}),[z,r,a,_,g,f,v,h,b,S,w,s]);(0,e.useEffect)((function(){return function(){var e;A.current||P.current||(null==(e=T.current)||e.destroy(),T.current=null)}}),[]);var M=(0,e.useCallback)((function(e){A.current=e,R()}),[R]),N=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return c(c({},e),{},{ref:Sw(M,t)})}),[M]),O=(0,e.useCallback)((function(e){P.current=e,R()}),[R]),B=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return c(c({},e),{},{ref:Sw(O,t),style:c(c({},e.style),{},{position:s,minWidth:_?void 0:"max-content",inset:"0 auto auto 0"})})}),[s,O,_]),L=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(e.size,e.shadowColor,e.bg,e.style,u(e,Uk));return c(c({},n),{},{ref:t,"data-popper-arrow":"",style:lS(e)})}),[]),F=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return c(c({},e),{},{ref:t,"data-popper-arrow-inner":""})}),[]);return{update:function(){var e;null==(e=T.current)||e.update()},forceUpdate:function(){var e;null==(e=T.current)||e.forceUpdate()},transformOrigin:$k.transformOrigin.varRef,referenceRef:M,popperRef:O,getPopperProps:B,getArrowProps:L,getArrowInnerProps:F,getReferenceProps:N}}function lS(e){var t=e.size,n=e.shadowColor,r=e.bg,a=c(c({},e.style),{},{position:"absolute"});return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function sS(t,n,r,a){var o=ff(r);return(0,e.useEffect)((function(){var e="function"===typeof t?t():null!==t&&void 0!==t?t:document;if(r&&e)return e.addEventListener(n,o,a),function(){e.removeEventListener(n,o,a)}}),[n,t,a,o,r]),function(){var e="function"===typeof t?t():null!==t&&void 0!==t?t:document;null==e||e.removeEventListener(n,o,a)}}function cS(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.onClose,r=t.onOpen,a=t.isOpen,o=t.id,i=ff(r),l=ff(n),s=(0,e.useState)(t.defaultIsOpen||!1),u=Ye(s,2),d=u[0],f=u[1],p=void 0!==a?a:d,g=void 0!==a,v=(0,e.useId)(),m=null!==o&&void 0!==o?o:"disclosure-".concat(v),h=(0,e.useCallback)((function(){g||f(!1),null==l||l()}),[g,l]),y=(0,e.useCallback)((function(){g||f(!0),null==i||i()}),[g,i]),b=(0,e.useCallback)((function(){p?h():y()}),[p,y,h]);function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(c({},e),{},{"aria-expanded":p,"aria-controls":m,onClick:function(t){var n;null==(n=e.onClick)||n.call(e,t),b()}})}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(c({},e),{},{hidden:!p,id:m})}return{isOpen:p,onOpen:y,onClose:h,onToggle:b,isControlled:g,getButtonProps:x,getDisclosureProps:w}}var uS=["openDelay","closeDelay","closeOnClick","closeOnMouseDown","closeOnScroll","closeOnPointerDown","closeOnEsc","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset","direction"],dS=["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps","background","backgroundColor","bgColor","motionProps"];var fS={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function pS(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.openDelay,r=void 0===n?0:n,a=t.closeDelay,o=void 0===a?0:a,i=t.closeOnClick,s=void 0===i||i,d=t.closeOnMouseDown,f=t.closeOnScroll,p=t.closeOnPointerDown,g=void 0===p?d:p,v=t.closeOnEsc,m=void 0===v||v,h=t.onOpen,y=t.onClose,b=t.placement,x=t.id,w=t.isOpen,k=t.defaultIsOpen,S=t.arrowSize,_=void 0===S?10:S,E=t.arrowShadowColor,C=t.arrowPadding,A=t.modifiers,P=t.isDisabled,T=t.gutter,z=t.offset,j=t.direction,R=u(t,uS),M=cS({isOpen:w,defaultIsOpen:k,onOpen:h,onClose:y}),N=M.isOpen,O=M.onOpen,B=M.onClose,L=iS({enabled:N,placement:b,arrowPadding:C,modifiers:A,gutter:T,offset:z,direction:j}),F=L.referenceRef,D=L.getPopperProps,I=L.getArrowInnerProps,V=L.getArrowProps,W=(0,e.useId)(),U=null!==x&&void 0!==x?x:W,H="tooltip-".concat(U),$=(0,e.useRef)(null),q=(0,e.useRef)(),G=(0,e.useCallback)((function(){q.current&&(clearTimeout(q.current),q.current=void 0)}),[]),Y=(0,e.useRef)(),X=(0,e.useCallback)((function(){Y.current&&(clearTimeout(Y.current),Y.current=void 0)}),[]),K=(0,e.useCallback)((function(){X(),B()}),[B,X]),Q=hS($,K),Z=(0,e.useCallback)((function(){if(!P&&!q.current){Q();var e=vS($);q.current=e.setTimeout(O,r)}}),[Q,P,O,r]),J=(0,e.useCallback)((function(){G();var e=vS($);Y.current=e.setTimeout(K,o)}),[o,K,G]),ee=(0,e.useCallback)((function(){N&&s&&J()}),[s,J,N]),te=(0,e.useCallback)((function(){N&&g&&J()}),[g,J,N]),ne=(0,e.useCallback)((function(e){N&&"Escape"===e.key&&J()}),[N,J]);sS((function(){return gS($)}),"keydown",m?ne:void 0),sS((function(){return gS($)}),"scroll",(function(){N&&f&&K()})),(0,e.useEffect)((function(){P&&(G(),N&&B())}),[P,N,B,G]),(0,e.useEffect)((function(){return function(){G(),X()}}),[G,X]),sS((function(){return $.current}),"pointerleave",J);var re=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return c(c({},e),{},{ref:Sw($,t,F),onPointerEnter:pS(e.onPointerEnter,(function(e){"touch"!==e.pointerType&&Z()})),onClick:pS(e.onClick,ee),onPointerDown:pS(e.onPointerDown,te),onFocus:pS(e.onFocus,Z),onBlur:pS(e.onBlur,J),"aria-describedby":N?H:void 0})}),[Z,J,te,N,H,ee,F]),ae=(0,e.useCallback)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return D(c(c({},t),{},{style:c(c({},t.style),{},(e={},l(e,$k.arrowSize.var,_?"".concat(_,"px"):void 0),l(e,$k.arrowShadowColor.var,E),e))}),n)}),[D,_,E]),oe=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(c({},e.style),{},{position:"relative",transformOrigin:$k.transformOrigin.varRef});return c(c(c({ref:t},R),e),{},{id:H,role:"tooltip",style:n})}),[R,H]);return{isOpen:N,show:Z,hide:J,getTriggerProps:re,getTooltipProps:oe,getTooltipPositionerProps:ae,getArrowProps:V,getArrowInnerProps:I}}(c(c({},k),{},{direction:s.direction}));if("string"===typeof d||p)E=e.createElement(va.span,c({display:"inline-block",tabIndex:0},C.getTriggerProps()),d);else{var A=e.Children.only(d);E=(0,e.cloneElement)(A,C.getTriggerProps(A.props,A.ref))}var P=!!g,T=C.getTooltipProps({},n),z=P?function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e),a=zt(n);try{for(a.s();!(t=a.n()).done;){var o=t.value;o in r&&delete r[o]}}catch(i){a.e(i)}finally{a.f()}return r}(T,["role","id"]):T,j=function(e,t){var n,r={},a=zt(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;o in e&&(r[o]=e[o])}}catch(i){a.e(i)}finally{a.f()}return r}(T,["role","id"]);return f?e.createElement(e.Fragment,null,E,e.createElement(df,null,C.isOpen&&e.createElement(dt,c({},h),e.createElement(va.div,c(c({},C.getTooltipPositionerProps()),{},{__css:{zIndex:o.zIndex,pointerEvents:"none"}}),e.createElement(yS,c(c(c({variants:fS,initial:"exit",animate:"enter",exit:"exit"},w),z),{},{__css:o}),f,P&&e.createElement(va.span,c({srOnly:!0},j),g),v&&e.createElement(va.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},e.createElement(va.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}}))))))):e.createElement(e.Fragment,null,d)}));bS.displayName="Tooltip";var xS=function(e){var t=e.online,n=e.label,r="light"===vt().colorMode?"#C7D2FE":"#FFFFFF";return t?(0,Mb.jsx)(bS,{label:n,children:(0,Mb.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",className:"h-4 w-4",children:(0,Mb.jsx)("circle",{cx:"7",cy:"7",r:"5",stroke:r,strokeWidth:"1",fill:"#3bd672"})})}):(0,Mb.jsx)(bS,{label:n,children:(0,Mb.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",className:"h-4 w-4",children:(0,Mb.jsx)("circle",{cx:"7",cy:"7",r:"5",stroke:r,strokeWidth:"1",fill:"#F87171"})})})},wS=new Map(Object.entries({ac:{capital:"Georgetown",code:"ac",continent:"Africa",flag_1x1:"flags/1x1/ac.svg",flag_4x3:"flags/4x3/ac.svg",iso:!1,name:"Ascension Island"},ad:{capital:"Andorra la Vella",code:"ad",continent:"Europe",flag_1x1:"flags/1x1/ad.svg",flag_4x3:"flags/4x3/ad.svg",iso:!0,name:"Andorra"},ae:{capital:"Abu Dhabi",code:"ae",continent:"Asia",flag_1x1:"flags/1x1/ae.svg",flag_4x3:"flags/4x3/ae.svg",iso:!0,name:"United Arab Emirates"},af:{capital:"Kabul",code:"af",continent:"Asia",flag_1x1:"flags/1x1/af.svg",flag_4x3:"flags/4x3/af.svg",iso:!0,name:"Afghanistan"},ag:{capital:"St. John's",code:"ag",continent:"North America",flag_1x1:"flags/1x1/ag.svg",flag_4x3:"flags/4x3/ag.svg",iso:!0,name:"Antigua and Barbuda"},ai:{capital:"The Valley",code:"ai",continent:"North America",flag_1x1:"flags/1x1/ai.svg",flag_4x3:"flags/4x3/ai.svg",iso:!0,name:"Anguilla"},al:{capital:"Tirana",code:"al",continent:"Europe",flag_1x1:"flags/1x1/al.svg",flag_4x3:"flags/4x3/al.svg",iso:!0,name:"Albania"},am:{capital:"Yerevan",code:"am",continent:"Asia",flag_1x1:"flags/1x1/am.svg",flag_4x3:"flags/4x3/am.svg",iso:!0,name:"Armenia"},ao:{capital:"Luanda",code:"ao",continent:"Africa",flag_1x1:"flags/1x1/ao.svg",flag_4x3:"flags/4x3/ao.svg",iso:!0,name:"Angola"},aq:{code:"aq",flag_1x1:"flags/1x1/aq.svg",flag_4x3:"flags/4x3/aq.svg",iso:!0,name:"Antarctica"},ar:{capital:"Buenos Aires",code:"ar",continent:"South America",flag_1x1:"flags/1x1/ar.svg",flag_4x3:"flags/4x3/ar.svg",iso:!0,name:"Argentina"},as:{capital:"Pago Pago",code:"as",continent:"Oceania",flag_1x1:"flags/1x1/as.svg",flag_4x3:"flags/4x3/as.svg",iso:!0,name:"American Samoa"},at:{capital:"Vienna",code:"at",continent:"Europe",flag_1x1:"flags/1x1/at.svg",flag_4x3:"flags/4x3/at.svg",iso:!0,name:"Austria"},au:{capital:"Canberra",code:"au",continent:"Oceania",flag_1x1:"flags/1x1/au.svg",flag_4x3:"flags/4x3/au.svg",iso:!0,name:"Australia"},aw:{capital:"Oranjestad",code:"aw",continent:"South America",flag_1x1:"flags/1x1/aw.svg",flag_4x3:"flags/4x3/aw.svg",iso:!0,name:"Aruba"},ax:{capital:"Mariehamn",code:"ax",continent:"Europe",flag_1x1:"flags/1x1/ax.svg",flag_4x3:"flags/4x3/ax.svg",iso:!0,name:"Aland Islands"},az:{capital:"Baku",code:"az",continent:"Asia",flag_1x1:"flags/1x1/az.svg",flag_4x3:"flags/4x3/az.svg",iso:!0,name:"Azerbaijan"},ba:{capital:"Sarajevo",code:"ba",continent:"Europe",flag_1x1:"flags/1x1/ba.svg",flag_4x3:"flags/4x3/ba.svg",iso:!0,name:"Bosnia and Herzegovina"},bb:{capital:"Bridgetown",code:"bb",continent:"North America",flag_1x1:"flags/1x1/bb.svg",flag_4x3:"flags/4x3/bb.svg",iso:!0,name:"Barbados"},bd:{capital:"Dhaka",code:"bd",continent:"Asia",flag_1x1:"flags/1x1/bd.svg",flag_4x3:"flags/4x3/bd.svg",iso:!0,name:"Bangladesh"},be:{capital:"Brussels",code:"be",continent:"Europe",flag_1x1:"flags/1x1/be.svg",flag_4x3:"flags/4x3/be.svg",iso:!0,name:"Belgium"},bf:{capital:"Ouagadougou",code:"bf",continent:"Africa",flag_1x1:"flags/1x1/bf.svg",flag_4x3:"flags/4x3/bf.svg",iso:!0,name:"Burkina Faso"},bg:{capital:"Sofia",code:"bg",continent:"Europe",flag_1x1:"flags/1x1/bg.svg",flag_4x3:"flags/4x3/bg.svg",iso:!0,name:"Bulgaria"},bh:{capital:"Manama",code:"bh",continent:"Asia",flag_1x1:"flags/1x1/bh.svg",flag_4x3:"flags/4x3/bh.svg",iso:!0,name:"Bahrain"},bi:{capital:"Bujumbura",code:"bi",continent:"Africa",flag_1x1:"flags/1x1/bi.svg",flag_4x3:"flags/4x3/bi.svg",iso:!0,name:"Burundi"},bj:{capital:"Porto-Novo",code:"bj",continent:"Africa",flag_1x1:"flags/1x1/bj.svg",flag_4x3:"flags/4x3/bj.svg",iso:!0,name:"Benin"},bl:{capital:"Gustavia",code:"bl",continent:"North America",flag_1x1:"flags/1x1/bl.svg",flag_4x3:"flags/4x3/bl.svg",iso:!0,name:"Saint Barth\xe9lemy"},bm:{capital:"Hamilton",code:"bm",continent:"North America",flag_1x1:"flags/1x1/bm.svg",flag_4x3:"flags/4x3/bm.svg",iso:!0,name:"Bermuda"},bn:{capital:"Bandar Seri Begawan",code:"bn",continent:"Asia",flag_1x1:"flags/1x1/bn.svg",flag_4x3:"flags/4x3/bn.svg",iso:!0,name:"Brunei Darussalam"},bo:{capital:"Sucre",code:"bo",continent:"South America",flag_1x1:"flags/1x1/bo.svg",flag_4x3:"flags/4x3/bo.svg",iso:!0,name:"Bolivia"},bq:{capital:"Kralendijk",code:"bq",continent:"South America",flag_1x1:"flags/1x1/bq.svg",flag_4x3:"flags/4x3/bq.svg",iso:!0,name:"Bonaire, Sint Eustatius and Saba"},br:{capital:"Bras\xedlia",code:"br",continent:"South America",flag_1x1:"flags/1x1/br.svg",flag_4x3:"flags/4x3/br.svg",iso:!0,name:"Brazil"},bs:{capital:"Nassau",code:"bs",continent:"North America",flag_1x1:"flags/1x1/bs.svg",flag_4x3:"flags/4x3/bs.svg",iso:!0,name:"Bahamas"},bt:{capital:"Thimphu",code:"bt",continent:"Asia",flag_1x1:"flags/1x1/bt.svg",flag_4x3:"flags/4x3/bt.svg",iso:!0,name:"Bhutan"},bv:{code:"bv",flag_1x1:"flags/1x1/bv.svg",flag_4x3:"flags/4x3/bv.svg",iso:!0,name:"Bouvet Island"},bw:{capital:"Gaborone",code:"bw",continent:"Africa",flag_1x1:"flags/1x1/bw.svg",flag_4x3:"flags/4x3/bw.svg",iso:!0,name:"Botswana"},by:{capital:"Minsk",code:"by",continent:"Europe",flag_1x1:"flags/1x1/by.svg",flag_4x3:"flags/4x3/by.svg",iso:!0,name:"Belarus"},bz:{capital:"Belmopan",code:"bz",continent:"North America",flag_1x1:"flags/1x1/bz.svg",flag_4x3:"flags/4x3/bz.svg",iso:!0,name:"Belize"},ca:{capital:"Ottawa",code:"ca",continent:"North America",flag_1x1:"flags/1x1/ca.svg",flag_4x3:"flags/4x3/ca.svg",iso:!0,name:"Canada"},cc:{capital:"West Island",code:"cc",continent:"Asia",flag_1x1:"flags/1x1/cc.svg",flag_4x3:"flags/4x3/cc.svg",iso:!0,name:"Cocos (Keeling) Islands"},cd:{capital:"Kinshasa",code:"cd",continent:"Africa",flag_1x1:"flags/1x1/cd.svg",flag_4x3:"flags/4x3/cd.svg",iso:!0,name:"Democratic Republic of the Congo"},cefta:{code:"cefta",flag_1x1:"flags/1x1/cefta.svg",flag_4x3:"flags/4x3/cefta.svg",iso:!1,name:"Central European Free Trade Agreement"},cf:{capital:"Bangui",code:"cf",continent:"Africa",flag_1x1:"flags/1x1/cf.svg",flag_4x3:"flags/4x3/cf.svg",iso:!0,name:"Central African Republic"},cg:{capital:"Brazzaville",code:"cg",continent:"Africa",flag_1x1:"flags/1x1/cg.svg",flag_4x3:"flags/4x3/cg.svg",iso:!0,name:"Republic of the Congo"},ch:{capital:"Bern",code:"ch",continent:"Europe",flag_1x1:"flags/1x1/ch.svg",flag_4x3:"flags/4x3/ch.svg",iso:!0,name:"Switzerland"},ci:{capital:"Yamoussoukro",code:"ci",continent:"Africa",flag_1x1:"flags/1x1/ci.svg",flag_4x3:"flags/4x3/ci.svg",iso:!0,name:"C\xf4te d'Ivoire"},ck:{capital:"Avarua",code:"ck",continent:"Oceania",flag_1x1:"flags/1x1/ck.svg",flag_4x3:"flags/4x3/ck.svg",iso:!0,name:"Cook Islands"},cl:{capital:"Santiago",code:"cl",continent:"South America",flag_1x1:"flags/1x1/cl.svg",flag_4x3:"flags/4x3/cl.svg",iso:!0,name:"Chile"},cm:{capital:"Yaound\xe9",code:"cm",continent:"Africa",flag_1x1:"flags/1x1/cm.svg",flag_4x3:"flags/4x3/cm.svg",iso:!0,name:"Cameroon"},cn:{capital:"Beijing",code:"cn",continent:"Asia",flag_1x1:"flags/1x1/cn.svg",flag_4x3:"flags/4x3/cn.svg",iso:!0,name:"China"},co:{capital:"Bogot\xe1",code:"co",continent:"South America",flag_1x1:"flags/1x1/co.svg",flag_4x3:"flags/4x3/co.svg",iso:!0,name:"Colombia"},cp:{code:"cp",flag_1x1:"flags/1x1/cp.svg",flag_4x3:"flags/4x3/cp.svg",iso:!1,name:"Clipperton Island"},cr:{capital:"San Jos\xe9",code:"cr",continent:"North America",flag_1x1:"flags/1x1/cr.svg",flag_4x3:"flags/4x3/cr.svg",iso:!0,name:"Costa Rica"},cu:{capital:"Havana",code:"cu",continent:"North America",flag_1x1:"flags/1x1/cu.svg",flag_4x3:"flags/4x3/cu.svg",iso:!0,name:"Cuba"},cv:{capital:"Praia",code:"cv",continent:"Africa",flag_1x1:"flags/1x1/cv.svg",flag_4x3:"flags/4x3/cv.svg",iso:!0,name:"Cabo Verde"},cw:{capital:"Willemstad",code:"cw",continent:"South America",flag_1x1:"flags/1x1/cw.svg",flag_4x3:"flags/4x3/cw.svg",iso:!0,name:"Cura\xe7ao"},cx:{capital:"Flying Fish Cove",code:"cx",continent:"Asia",flag_1x1:"flags/1x1/cx.svg",flag_4x3:"flags/4x3/cx.svg",iso:!0,name:"Christmas Island"},cy:{capital:"Nicosia",code:"cy",continent:"Europe",flag_1x1:"flags/1x1/cy.svg",flag_4x3:"flags/4x3/cy.svg",iso:!0,name:"Cyprus"},cz:{capital:"Prague",code:"cz",continent:"Europe",flag_1x1:"flags/1x1/cz.svg",flag_4x3:"flags/4x3/cz.svg",iso:!0,name:"Czech Republic"},de:{capital:"Berlin",code:"de",continent:"Europe",flag_1x1:"flags/1x1/de.svg",flag_4x3:"flags/4x3/de.svg",iso:!0,name:"Germany"},dg:{code:"dg",flag_1x1:"flags/1x1/dg.svg",flag_4x3:"flags/4x3/dg.svg",iso:!1,name:"Diego Garcia"},dj:{capital:"Djibouti",code:"dj",continent:"Africa",flag_1x1:"flags/1x1/dj.svg",flag_4x3:"flags/4x3/dj.svg",iso:!0,name:"Djibouti"},dk:{capital:"Copenhagen",code:"dk",continent:"Europe",flag_1x1:"flags/1x1/dk.svg",flag_4x3:"flags/4x3/dk.svg",iso:!0,name:"Denmark"},dm:{capital:"Roseau",code:"dm",continent:"North America",flag_1x1:"flags/1x1/dm.svg",flag_4x3:"flags/4x3/dm.svg",iso:!0,name:"Dominica"},do:{capital:"Santo Domingo",code:"do",continent:"North America",flag_1x1:"flags/1x1/do.svg",flag_4x3:"flags/4x3/do.svg",iso:!0,name:"Dominican Republic"},dz:{capital:"Algiers",code:"dz",continent:"Africa",flag_1x1:"flags/1x1/dz.svg",flag_4x3:"flags/4x3/dz.svg",iso:!0,name:"Algeria"},ea:{code:"ea",flag_1x1:"flags/1x1/ea.svg",flag_4x3:"flags/4x3/ea.svg",iso:!1,name:"Ceuta & Melilla"},ec:{capital:"Quito",code:"ec",continent:"South America",flag_1x1:"flags/1x1/ec.svg",flag_4x3:"flags/4x3/ec.svg",iso:!0,name:"Ecuador"},ee:{capital:"Tallinn",code:"ee",continent:"Europe",flag_1x1:"flags/1x1/ee.svg",flag_4x3:"flags/4x3/ee.svg",iso:!0,name:"Estonia"},eg:{capital:"Cairo",code:"eg",continent:"Africa",flag_1x1:"flags/1x1/eg.svg",flag_4x3:"flags/4x3/eg.svg",iso:!0,name:"Egypt"},eh:{capital:"Laayoune",code:"eh",continent:"Africa",flag_1x1:"flags/1x1/eh.svg",flag_4x3:"flags/4x3/eh.svg",iso:!0,name:"Western Sahara"},er:{capital:"Asmara",code:"er",continent:"Africa",flag_1x1:"flags/1x1/er.svg",flag_4x3:"flags/4x3/er.svg",iso:!0,name:"Eritrea"},es:{capital:"Madrid",code:"es",continent:"Europe",flag_1x1:"flags/1x1/es.svg",flag_4x3:"flags/4x3/es.svg",iso:!0,name:"Spain"},"es-ct":{code:"es-ct",flag_1x1:"flags/1x1/es-ct.svg",flag_4x3:"flags/4x3/es-ct.svg",iso:!1,name:"Catalonia"},"es-ga":{code:"es-ga",flag_1x1:"flags/1x1/es-ga.svg",flag_4x3:"flags/4x3/es-ga.svg",iso:!1,name:"Galicia"},et:{capital:"Addis Ababa",code:"et",continent:"Africa",flag_1x1:"flags/1x1/et.svg",flag_4x3:"flags/4x3/et.svg",iso:!0,name:"Ethiopia"},eu:{code:"eu",flag_1x1:"flags/1x1/eu.svg",flag_4x3:"flags/4x3/eu.svg",iso:!1,name:"Europe"},fi:{capital:"Helsinki",code:"fi",continent:"Europe",flag_1x1:"flags/1x1/fi.svg",flag_4x3:"flags/4x3/fi.svg",iso:!0,name:"Finland"},fj:{capital:"Suva",code:"fj",continent:"Oceania",flag_1x1:"flags/1x1/fj.svg",flag_4x3:"flags/4x3/fj.svg",iso:!0,name:"Fiji"},fk:{capital:"Stanley",code:"fk",continent:"South America",flag_1x1:"flags/1x1/fk.svg",flag_4x3:"flags/4x3/fk.svg",iso:!0,name:"Falkland Islands"},fm:{capital:"Palikir",code:"fm",continent:"Oceania",flag_1x1:"flags/1x1/fm.svg",flag_4x3:"flags/4x3/fm.svg",iso:!0,name:"Federated States of Micronesia"},fo:{capital:"T\xf3rshavn",code:"fo",continent:"Europe",flag_1x1:"flags/1x1/fo.svg",flag_4x3:"flags/4x3/fo.svg",iso:!0,name:"Faroe Islands"},fr:{capital:"Paris",code:"fr",continent:"Europe",flag_1x1:"flags/1x1/fr.svg",flag_4x3:"flags/4x3/fr.svg",iso:!0,name:"France"},ga:{capital:"Libreville",code:"ga",continent:"Africa",flag_1x1:"flags/1x1/ga.svg",flag_4x3:"flags/4x3/ga.svg",iso:!0,name:"Gabon"},gb:{capital:"London",code:"gb",continent:"Europe",flag_1x1:"flags/1x1/gb.svg",flag_4x3:"flags/4x3/gb.svg",iso:!0,name:"United Kingdom"},"gb-eng":{capital:"London",code:"gb-eng",continent:"Europe",flag_1x1:"flags/1x1/gb-eng.svg",flag_4x3:"flags/4x3/gb-eng.svg",iso:!1,name:"England"},"gb-nir":{capital:"Belfast",code:"gb-nir",continent:"Europe",flag_1x1:"flags/1x1/gb-nir.svg",flag_4x3:"flags/4x3/gb-nir.svg",iso:!1,name:"Northern Ireland"},"gb-sct":{capital:"Edinburgh",code:"gb-sct",continent:"Europe",flag_1x1:"flags/1x1/gb-sct.svg",flag_4x3:"flags/4x3/gb-sct.svg",iso:!1,name:"Scotland"},"gb-wls":{capital:"Cardiff",code:"gb-wls",continent:"Europe",flag_1x1:"flags/1x1/gb-wls.svg",flag_4x3:"flags/4x3/gb-wls.svg",iso:!1,name:"Wales"},gd:{capital:"St. George's",code:"gd",continent:"North America",flag_1x1:"flags/1x1/gd.svg",flag_4x3:"flags/4x3/gd.svg",iso:!0,name:"Grenada"},ge:{capital:"Tbilisi",code:"ge",continent:"Asia",flag_1x1:"flags/1x1/ge.svg",flag_4x3:"flags/4x3/ge.svg",iso:!0,name:"Georgia"},gf:{capital:"Cayenne",code:"gf",continent:"South America",flag_1x1:"flags/1x1/gf.svg",flag_4x3:"flags/4x3/gf.svg",iso:!0,name:"French Guiana"},gg:{capital:"Saint Peter Port",code:"gg",continent:"Europe",flag_1x1:"flags/1x1/gg.svg",flag_4x3:"flags/4x3/gg.svg",iso:!0,name:"Guernsey"},gh:{capital:"Accra",code:"gh",continent:"Africa",flag_1x1:"flags/1x1/gh.svg",flag_4x3:"flags/4x3/gh.svg",iso:!0,name:"Ghana"},gi:{capital:"Gibraltar",code:"gi",continent:"Europe",flag_1x1:"flags/1x1/gi.svg",flag_4x3:"flags/4x3/gi.svg",iso:!0,name:"Gibraltar"},gl:{capital:"Nuuk",code:"gl",continent:"North America",flag_1x1:"flags/1x1/gl.svg",flag_4x3:"flags/4x3/gl.svg",iso:!0,name:"Greenland"},gm:{capital:"Banjul",code:"gm",continent:"Africa",flag_1x1:"flags/1x1/gm.svg",flag_4x3:"flags/4x3/gm.svg",iso:!0,name:"Gambia"},gn:{capital:"Conakry",code:"gn",continent:"Africa",flag_1x1:"flags/1x1/gn.svg",flag_4x3:"flags/4x3/gn.svg",iso:!0,name:"Guinea"},gp:{capital:"Basse-Terre",code:"gp",continent:"North America",flag_1x1:"flags/1x1/gp.svg",flag_4x3:"flags/4x3/gp.svg",iso:!0,name:"Guadeloupe"},gq:{capital:"Malabo",code:"gq",continent:"Africa",flag_1x1:"flags/1x1/gq.svg",flag_4x3:"flags/4x3/gq.svg",iso:!0,name:"Equatorial Guinea"},gr:{capital:"Athens",code:"gr",continent:"Europe",flag_1x1:"flags/1x1/gr.svg",flag_4x3:"flags/4x3/gr.svg",iso:!0,name:"Greece"},gs:{capital:"King Edward Point",code:"gs",continent:"Antarctica",flag_1x1:"flags/1x1/gs.svg",flag_4x3:"flags/4x3/gs.svg",iso:!0,name:"South Georgia and the South Sandwich Islands"},gt:{capital:"Guatemala City",code:"gt",continent:"North America",flag_1x1:"flags/1x1/gt.svg",flag_4x3:"flags/4x3/gt.svg",iso:!0,name:"Guatemala"},gu:{capital:"Hag\xe5t\xf1a",code:"gu",continent:"Oceania",flag_1x1:"flags/1x1/gu.svg",flag_4x3:"flags/4x3/gu.svg",iso:!0,name:"Guam"},gw:{capital:"Bissau",code:"gw",continent:"Africa",flag_1x1:"flags/1x1/gw.svg",flag_4x3:"flags/4x3/gw.svg",iso:!0,name:"Guinea-Bissau"},gy:{capital:"Georgetown",code:"gy",continent:"South America",flag_1x1:"flags/1x1/gy.svg",flag_4x3:"flags/4x3/gy.svg",iso:!0,name:"Guyana"},hk:{capital:"Hong Kong",code:"hk",continent:"Asia",flag_1x1:"flags/1x1/hk.svg",flag_4x3:"flags/4x3/hk.svg",iso:!0,name:"Hong Kong"},hm:{code:"hm",flag_1x1:"flags/1x1/hm.svg",flag_4x3:"flags/4x3/hm.svg",iso:!0,name:"Heard Island and McDonald Islands"},hn:{capital:"Tegucigalpa",code:"hn",continent:"North America",flag_1x1:"flags/1x1/hn.svg",flag_4x3:"flags/4x3/hn.svg",iso:!0,name:"Honduras"},hr:{capital:"Zagreb",code:"hr",continent:"Europe",flag_1x1:"flags/1x1/hr.svg",flag_4x3:"flags/4x3/hr.svg",iso:!0,name:"Croatia"},ht:{capital:"Port-au-Prince",code:"ht",continent:"North America",flag_1x1:"flags/1x1/ht.svg",flag_4x3:"flags/4x3/ht.svg",iso:!0,name:"Haiti"},hu:{capital:"Budapest",code:"hu",continent:"Europe",flag_1x1:"flags/1x1/hu.svg",flag_4x3:"flags/4x3/hu.svg",iso:!0,name:"Hungary"},ic:{code:"ic",flag_1x1:"flags/1x1/ic.svg",flag_4x3:"flags/4x3/ic.svg",iso:!1,name:"Canary Islands"},id:{capital:"Jakarta",code:"id",continent:"Asia",flag_1x1:"flags/1x1/id.svg",flag_4x3:"flags/4x3/id.svg",iso:!0,name:"Indonesia"},ie:{capital:"Dublin",code:"ie",continent:"Europe",flag_1x1:"flags/1x1/ie.svg",flag_4x3:"flags/4x3/ie.svg",iso:!0,name:"Ireland"},il:{capital:"Jerusalem",code:"il",continent:"Asia",flag_1x1:"flags/1x1/il.svg",flag_4x3:"flags/4x3/il.svg",iso:!0,name:"Israel"},im:{capital:"Douglas",code:"im",continent:"Europe",flag_1x1:"flags/1x1/im.svg",flag_4x3:"flags/4x3/im.svg",iso:!0,name:"Isle of Man"},in:{capital:"New Delhi",code:"in",continent:"Asia",flag_1x1:"flags/1x1/in.svg",flag_4x3:"flags/4x3/in.svg",iso:!0,name:"India"},io:{capital:"Diego Garcia",code:"io",continent:"Asia",flag_1x1:"flags/1x1/io.svg",flag_4x3:"flags/4x3/io.svg",iso:!0,name:"British Indian Ocean Territory"},iq:{capital:"Baghdad",code:"iq",continent:"Asia",flag_1x1:"flags/1x1/iq.svg",flag_4x3:"flags/4x3/iq.svg",iso:!0,name:"Iraq"},ir:{capital:"Tehran",code:"ir",continent:"Asia",flag_1x1:"flags/1x1/ir.svg",flag_4x3:"flags/4x3/ir.svg",iso:!0,name:"Iran"},is:{capital:"Reykjavik",code:"is",continent:"Europe",flag_1x1:"flags/1x1/is.svg",flag_4x3:"flags/4x3/is.svg",iso:!0,name:"Iceland"},it:{capital:"Rome",code:"it",continent:"Europe",flag_1x1:"flags/1x1/it.svg",flag_4x3:"flags/4x3/it.svg",iso:!0,name:"Italy"},je:{capital:"Saint Helier",code:"je",continent:"Europe",flag_1x1:"flags/1x1/je.svg",flag_4x3:"flags/4x3/je.svg",iso:!0,name:"Jersey"},jm:{capital:"Kingston",code:"jm",continent:"North America",flag_1x1:"flags/1x1/jm.svg",flag_4x3:"flags/4x3/jm.svg",iso:!0,name:"Jamaica"},jo:{capital:"Amman",code:"jo",continent:"Asia",flag_1x1:"flags/1x1/jo.svg",flag_4x3:"flags/4x3/jo.svg",iso:!0,name:"Jordan"},jp:{capital:"Tokyo",code:"jp",continent:"Asia",flag_1x1:"flags/1x1/jp.svg",flag_4x3:"flags/4x3/jp.svg",iso:!0,name:"Japan"},ke:{capital:"Nairobi",code:"ke",continent:"Africa",flag_1x1:"flags/1x1/ke.svg",flag_4x3:"flags/4x3/ke.svg",iso:!0,name:"Kenya"},kg:{capital:"Bishkek",code:"kg",continent:"Asia",flag_1x1:"flags/1x1/kg.svg",flag_4x3:"flags/4x3/kg.svg",iso:!0,name:"Kyrgyzstan"},kh:{capital:"Phnom Penh",code:"kh",continent:"Asia",flag_1x1:"flags/1x1/kh.svg",flag_4x3:"flags/4x3/kh.svg",iso:!0,name:"Cambodia"},ki:{capital:"South Tarawa",code:"ki",continent:"Oceania",flag_1x1:"flags/1x1/ki.svg",flag_4x3:"flags/4x3/ki.svg",iso:!0,name:"Kiribati"},km:{capital:"Moroni",code:"km",continent:"Africa",flag_1x1:"flags/1x1/km.svg",flag_4x3:"flags/4x3/km.svg",iso:!0,name:"Comoros"},kn:{capital:"Basseterre",code:"kn",continent:"North America",flag_1x1:"flags/1x1/kn.svg",flag_4x3:"flags/4x3/kn.svg",iso:!0,name:"Saint Kitts and Nevis"},kp:{capital:"Pyongyang",code:"kp",continent:"Asia",flag_1x1:"flags/1x1/kp.svg",flag_4x3:"flags/4x3/kp.svg",iso:!0,name:"North Korea"},kr:{capital:"Seoul",code:"kr",continent:"Asia",flag_1x1:"flags/1x1/kr.svg",flag_4x3:"flags/4x3/kr.svg",iso:!0,name:"South Korea"},kw:{capital:"Kuwait City",code:"kw",continent:"Asia",flag_1x1:"flags/1x1/kw.svg",flag_4x3:"flags/4x3/kw.svg",iso:!0,name:"Kuwait"},ky:{capital:"George Town",code:"ky",continent:"North America",flag_1x1:"flags/1x1/ky.svg",flag_4x3:"flags/4x3/ky.svg",iso:!0,name:"Cayman Islands"},kz:{capital:"Astana",code:"kz",continent:"Asia",flag_1x1:"flags/1x1/kz.svg",flag_4x3:"flags/4x3/kz.svg",iso:!0,name:"Kazakhstan"},la:{capital:"Vientiane",code:"la",continent:"Asia",flag_1x1:"flags/1x1/la.svg",flag_4x3:"flags/4x3/la.svg",iso:!0,name:"Laos"},lb:{capital:"Beirut",code:"lb",continent:"Asia",flag_1x1:"flags/1x1/lb.svg",flag_4x3:"flags/4x3/lb.svg",iso:!0,name:"Lebanon"},lc:{capital:"Castries",code:"lc",continent:"North America",flag_1x1:"flags/1x1/lc.svg",flag_4x3:"flags/4x3/lc.svg",iso:!0,name:"Saint Lucia"},li:{capital:"Vaduz",code:"li",continent:"Europe",flag_1x1:"flags/1x1/li.svg",flag_4x3:"flags/4x3/li.svg",iso:!0,name:"Liechtenstein"},lk:{capital:"Sri Jayawardenepura Kotte, Colombo",code:"lk",continent:"Asia",flag_1x1:"flags/1x1/lk.svg",flag_4x3:"flags/4x3/lk.svg",iso:!0,name:"Sri Lanka"},lr:{capital:"Monrovia",code:"lr",continent:"Africa",flag_1x1:"flags/1x1/lr.svg",flag_4x3:"flags/4x3/lr.svg",iso:!0,name:"Liberia"},ls:{capital:"Maseru",code:"ls",continent:"Africa",flag_1x1:"flags/1x1/ls.svg",flag_4x3:"flags/4x3/ls.svg",iso:!0,name:"Lesotho"},lt:{capital:"Vilnius",code:"lt",continent:"Europe",flag_1x1:"flags/1x1/lt.svg",flag_4x3:"flags/4x3/lt.svg",iso:!0,name:"Lithuania"},lu:{capital:"Luxembourg City",code:"lu",continent:"Europe",flag_1x1:"flags/1x1/lu.svg",flag_4x3:"flags/4x3/lu.svg",iso:!0,name:"Luxembourg"},lv:{capital:"Riga",code:"lv",continent:"Europe",flag_1x1:"flags/1x1/lv.svg",flag_4x3:"flags/4x3/lv.svg",iso:!0,name:"Latvia"},ly:{capital:"Tripoli",code:"ly",continent:"Africa",flag_1x1:"flags/1x1/ly.svg",flag_4x3:"flags/4x3/ly.svg",iso:!0,name:"Libya"},ma:{capital:"Rabat",code:"ma",continent:"Africa",flag_1x1:"flags/1x1/ma.svg",flag_4x3:"flags/4x3/ma.svg",iso:!0,name:"Morocco"},mc:{capital:"Monaco",code:"mc",continent:"Europe",flag_1x1:"flags/1x1/mc.svg",flag_4x3:"flags/4x3/mc.svg",iso:!0,name:"Monaco"},md:{capital:"Chi\u0219in\u0103u",code:"md",continent:"Europe",flag_1x1:"flags/1x1/md.svg",flag_4x3:"flags/4x3/md.svg",iso:!0,name:"Moldova"},me:{capital:"Podgorica",code:"me",continent:"Europe",flag_1x1:"flags/1x1/me.svg",flag_4x3:"flags/4x3/me.svg",iso:!0,name:"Montenegro"},mf:{capital:"Marigot",code:"mf",continent:"North America",flag_1x1:"flags/1x1/mf.svg",flag_4x3:"flags/4x3/mf.svg",iso:!0,name:"Saint Martin"},mg:{capital:"Antananarivo",code:"mg",continent:"Africa",flag_1x1:"flags/1x1/mg.svg",flag_4x3:"flags/4x3/mg.svg",iso:!0,name:"Madagascar"},mh:{capital:"Majuro",code:"mh",continent:"Oceania",flag_1x1:"flags/1x1/mh.svg",flag_4x3:"flags/4x3/mh.svg",iso:!0,name:"Marshall Islands"},mk:{capital:"Skopje",code:"mk",continent:"Europe",flag_1x1:"flags/1x1/mk.svg",flag_4x3:"flags/4x3/mk.svg",iso:!0,name:"North Macedonia"},ml:{capital:"Bamako",code:"ml",continent:"Africa",flag_1x1:"flags/1x1/ml.svg",flag_4x3:"flags/4x3/ml.svg",iso:!0,name:"Mali"},mm:{capital:"Naypyidaw",code:"mm",continent:"Asia",flag_1x1:"flags/1x1/mm.svg",flag_4x3:"flags/4x3/mm.svg",iso:!0,name:"Myanmar"},mn:{capital:"Ulaanbaatar",code:"mn",continent:"Asia",flag_1x1:"flags/1x1/mn.svg",flag_4x3:"flags/4x3/mn.svg",iso:!0,name:"Mongolia"},mo:{capital:"Macau",code:"mo",continent:"Asia",flag_1x1:"flags/1x1/mo.svg",flag_4x3:"flags/4x3/mo.svg",iso:!0,name:"Macau"},mp:{capital:"Saipan",code:"mp",continent:"Oceania",flag_1x1:"flags/1x1/mp.svg",flag_4x3:"flags/4x3/mp.svg",iso:!0,name:"Northern Mariana Islands"},mq:{capital:"Fort-de-France",code:"mq",continent:"North America",flag_1x1:"flags/1x1/mq.svg",flag_4x3:"flags/4x3/mq.svg",iso:!0,name:"Martinique"},mr:{capital:"Nouakchott",code:"mr",continent:"Africa",flag_1x1:"flags/1x1/mr.svg",flag_4x3:"flags/4x3/mr.svg",iso:!0,name:"Mauritania"},ms:{capital:"Little Bay, Brades, Plymouth",code:"ms",continent:"North America",flag_1x1:"flags/1x1/ms.svg",flag_4x3:"flags/4x3/ms.svg",iso:!0,name:"Montserrat"},mt:{capital:"Valletta",code:"mt",continent:"Europe",flag_1x1:"flags/1x1/mt.svg",flag_4x3:"flags/4x3/mt.svg",iso:!0,name:"Malta"},mu:{capital:"Port Louis",code:"mu",continent:"Africa",flag_1x1:"flags/1x1/mu.svg",flag_4x3:"flags/4x3/mu.svg",iso:!0,name:"Mauritius"},mv:{capital:"Mal\xe9",code:"mv",continent:"Asia",flag_1x1:"flags/1x1/mv.svg",flag_4x3:"flags/4x3/mv.svg",iso:!0,name:"Maldives"},mw:{capital:"Lilongwe",code:"mw",continent:"Africa",flag_1x1:"flags/1x1/mw.svg",flag_4x3:"flags/4x3/mw.svg",iso:!0,name:"Malawi"},mx:{capital:"Mexico City",code:"mx",continent:"North America",flag_1x1:"flags/1x1/mx.svg",flag_4x3:"flags/4x3/mx.svg",iso:!0,name:"Mexico"},my:{capital:"Kuala Lumpur",code:"my",continent:"Asia",flag_1x1:"flags/1x1/my.svg",flag_4x3:"flags/4x3/my.svg",iso:!0,name:"Malaysia"},mz:{capital:"Maputo",code:"mz",continent:"Africa",flag_1x1:"flags/1x1/mz.svg",flag_4x3:"flags/4x3/mz.svg",iso:!0,name:"Mozambique"},na:{capital:"Windhoek",code:"na",continent:"Africa",flag_1x1:"flags/1x1/na.svg",flag_4x3:"flags/4x3/na.svg",iso:!0,name:"Namibia"},nc:{capital:"Noum\xe9a",code:"nc",continent:"Oceania",flag_1x1:"flags/1x1/nc.svg",flag_4x3:"flags/4x3/nc.svg",iso:!0,name:"New Caledonia"},ne:{capital:"Niamey",code:"ne",continent:"Africa",flag_1x1:"flags/1x1/ne.svg",flag_4x3:"flags/4x3/ne.svg",iso:!0,name:"Niger"},nf:{capital:"Kingston",code:"nf",continent:"Oceania",flag_1x1:"flags/1x1/nf.svg",flag_4x3:"flags/4x3/nf.svg",iso:!0,name:"Norfolk Island"},ng:{capital:"Abuja",code:"ng",continent:"Africa",flag_1x1:"flags/1x1/ng.svg",flag_4x3:"flags/4x3/ng.svg",iso:!0,name:"Nigeria"},ni:{capital:"Managua",code:"ni",continent:"North America",flag_1x1:"flags/1x1/ni.svg",flag_4x3:"flags/4x3/ni.svg",iso:!0,name:"Nicaragua"},nl:{capital:"Amsterdam",code:"nl",continent:"Europe",flag_1x1:"flags/1x1/nl.svg",flag_4x3:"flags/4x3/nl.svg",iso:!0,name:"Netherlands"},no:{capital:"Oslo",code:"no",continent:"Europe",flag_1x1:"flags/1x1/no.svg",flag_4x3:"flags/4x3/no.svg",iso:!0,name:"Norway"},np:{capital:"Kathmandu",code:"np",continent:"Asia",flag_1x1:"flags/1x1/np.svg",flag_4x3:"flags/4x3/np.svg",iso:!0,name:"Nepal"},nr:{capital:"Yaren District",code:"nr",continent:"Oceania",flag_1x1:"flags/1x1/nr.svg",flag_4x3:"flags/4x3/nr.svg",iso:!0,name:"Nauru"},nu:{capital:"Alofi",code:"nu",continent:"Oceania",flag_1x1:"flags/1x1/nu.svg",flag_4x3:"flags/4x3/nu.svg",iso:!0,name:"Niue"},nz:{capital:"Wellington",code:"nz",continent:"Oceania",flag_1x1:"flags/1x1/nz.svg",flag_4x3:"flags/4x3/nz.svg",iso:!0,name:"New Zealand"},om:{capital:"Muscat",code:"om",continent:"Asia",flag_1x1:"flags/1x1/om.svg",flag_4x3:"flags/4x3/om.svg",iso:!0,name:"Oman"},pa:{capital:"Panama City",code:"pa",continent:"North America",flag_1x1:"flags/1x1/pa.svg",flag_4x3:"flags/4x3/pa.svg",iso:!0,name:"Panama"},pe:{capital:"Lima",code:"pe",continent:"South America",flag_1x1:"flags/1x1/pe.svg",flag_4x3:"flags/4x3/pe.svg",iso:!0,name:"Peru"},pf:{capital:"Papeete",code:"pf",continent:"Oceania",flag_1x1:"flags/1x1/pf.svg",flag_4x3:"flags/4x3/pf.svg",iso:!0,name:"French Polynesia"},pg:{capital:"Port Moresby",code:"pg",continent:"Oceania",flag_1x1:"flags/1x1/pg.svg",flag_4x3:"flags/4x3/pg.svg",iso:!0,name:"Papua New Guinea"},ph:{capital:"Manila",code:"ph",continent:"Asia",flag_1x1:"flags/1x1/ph.svg",flag_4x3:"flags/4x3/ph.svg",iso:!0,name:"Philippines"},pk:{capital:"Islamabad",code:"pk",continent:"Asia",flag_1x1:"flags/1x1/pk.svg",flag_4x3:"flags/4x3/pk.svg",iso:!0,name:"Pakistan"},pl:{capital:"Warsaw",code:"pl",continent:"Europe",flag_1x1:"flags/1x1/pl.svg",flag_4x3:"flags/4x3/pl.svg",iso:!0,name:"Poland"},pm:{capital:"Saint-Pierre",code:"pm",continent:"North America",flag_1x1:"flags/1x1/pm.svg",flag_4x3:"flags/4x3/pm.svg",iso:!0,name:"Saint Pierre and Miquelon"},pn:{capital:"Adamstown",code:"pn",continent:"Oceania",flag_1x1:"flags/1x1/pn.svg",flag_4x3:"flags/4x3/pn.svg",iso:!0,name:"Pitcairn"},pr:{capital:"San Juan",code:"pr",continent:"North America",flag_1x1:"flags/1x1/pr.svg",flag_4x3:"flags/4x3/pr.svg",iso:!0,name:"Puerto Rico"},ps:{capital:"Ramallah",code:"ps",continent:"Asia",flag_1x1:"flags/1x1/ps.svg",flag_4x3:"flags/4x3/ps.svg",iso:!0,name:"State of Palestine"},pt:{capital:"Lisbon",code:"pt",continent:"Europe",flag_1x1:"flags/1x1/pt.svg",flag_4x3:"flags/4x3/pt.svg",iso:!0,name:"Portugal"},pw:{capital:"Ngerulmud",code:"pw",continent:"Oceania",flag_1x1:"flags/1x1/pw.svg",flag_4x3:"flags/4x3/pw.svg",iso:!0,name:"Palau"},py:{capital:"Asunci\xf3n",code:"py",continent:"South America",flag_1x1:"flags/1x1/py.svg",flag_4x3:"flags/4x3/py.svg",iso:!0,name:"Paraguay"},qa:{capital:"Doha",code:"qa",continent:"Asia",flag_1x1:"flags/1x1/qa.svg",flag_4x3:"flags/4x3/qa.svg",iso:!0,name:"Qatar"},re:{capital:"Saint-Denis",code:"re",continent:"Africa",flag_1x1:"flags/1x1/re.svg",flag_4x3:"flags/4x3/re.svg",iso:!0,name:"R\xe9union"},ro:{capital:"Bucharest",code:"ro",continent:"Europe",flag_1x1:"flags/1x1/ro.svg",flag_4x3:"flags/4x3/ro.svg",iso:!0,name:"Romania"},rs:{capital:"Belgrade",code:"rs",continent:"Europe",flag_1x1:"flags/1x1/rs.svg",flag_4x3:"flags/4x3/rs.svg",iso:!0,name:"Serbia"},ru:{capital:"Moscow",code:"ru",continent:"Europe",flag_1x1:"flags/1x1/ru.svg",flag_4x3:"flags/4x3/ru.svg",iso:!0,name:"Russia"},rw:{capital:"Kigali",code:"rw",continent:"Africa",flag_1x1:"flags/1x1/rw.svg",flag_4x3:"flags/4x3/rw.svg",iso:!0,name:"Rwanda"},sa:{capital:"Riyadh",code:"sa",continent:"Asia",flag_1x1:"flags/1x1/sa.svg",flag_4x3:"flags/4x3/sa.svg",iso:!0,name:"Saudi Arabia"},sb:{capital:"Honiara",code:"sb",continent:"Oceania",flag_1x1:"flags/1x1/sb.svg",flag_4x3:"flags/4x3/sb.svg",iso:!0,name:"Solomon Islands"},sc:{capital:"Victoria",code:"sc",continent:"Africa",flag_1x1:"flags/1x1/sc.svg",flag_4x3:"flags/4x3/sc.svg",iso:!0,name:"Seychelles"},sd:{capital:"Khartoum",code:"sd",continent:"Africa",flag_1x1:"flags/1x1/sd.svg",flag_4x3:"flags/4x3/sd.svg",iso:!0,name:"Sudan"},se:{capital:"Stockholm",code:"se",continent:"Europe",flag_1x1:"flags/1x1/se.svg",flag_4x3:"flags/4x3/se.svg",iso:!0,name:"Sweden"},sg:{capital:"Singapore",code:"sg",continent:"Asia",flag_1x1:"flags/1x1/sg.svg",flag_4x3:"flags/4x3/sg.svg",iso:!0,name:"Singapore"},sh:{capital:"Jamestown",code:"sh",continent:"Africa",flag_1x1:"flags/1x1/sh.svg",flag_4x3:"flags/4x3/sh.svg",iso:!0,name:"Saint Helena, Ascension and Tristan da Cunha"},si:{capital:"Ljubljana",code:"si",continent:"Europe",flag_1x1:"flags/1x1/si.svg",flag_4x3:"flags/4x3/si.svg",iso:!0,name:"Slovenia"},sj:{capital:"Longyearbyen",code:"sj",continent:"Europe",flag_1x1:"flags/1x1/sj.svg",flag_4x3:"flags/4x3/sj.svg",iso:!0,name:"Svalbard and Jan Mayen"},sk:{capital:"Bratislava",code:"sk",continent:"Europe",flag_1x1:"flags/1x1/sk.svg",flag_4x3:"flags/4x3/sk.svg",iso:!0,name:"Slovakia"},sl:{capital:"Freetown",code:"sl",continent:"Africa",flag_1x1:"flags/1x1/sl.svg",flag_4x3:"flags/4x3/sl.svg",iso:!0,name:"Sierra Leone"},sm:{capital:"San Marino",code:"sm",continent:"Europe",flag_1x1:"flags/1x1/sm.svg",flag_4x3:"flags/4x3/sm.svg",iso:!0,name:"San Marino"},sn:{capital:"Dakar",code:"sn",continent:"Africa",flag_1x1:"flags/1x1/sn.svg",flag_4x3:"flags/4x3/sn.svg",iso:!0,name:"Senegal"},so:{capital:"Mogadishu",code:"so",continent:"Africa",flag_1x1:"flags/1x1/so.svg",flag_4x3:"flags/4x3/so.svg",iso:!0,name:"Somalia"},sr:{capital:"Paramaribo",code:"sr",continent:"South America",flag_1x1:"flags/1x1/sr.svg",flag_4x3:"flags/4x3/sr.svg",iso:!0,name:"Suriname"},ss:{capital:"Juba",code:"ss",continent:"Africa",flag_1x1:"flags/1x1/ss.svg",flag_4x3:"flags/4x3/ss.svg",iso:!0,name:"South Sudan"},st:{capital:"S\xe3o Tom\xe9",code:"st",continent:"Africa",flag_1x1:"flags/1x1/st.svg",flag_4x3:"flags/4x3/st.svg",iso:!0,name:"Sao Tome and Principe"},sv:{capital:"San Salvador",code:"sv",continent:"North America",flag_1x1:"flags/1x1/sv.svg",flag_4x3:"flags/4x3/sv.svg",iso:!0,name:"El Salvador"},sx:{capital:"Philipsburg",code:"sx",continent:"North America",flag_1x1:"flags/1x1/sx.svg",flag_4x3:"flags/4x3/sx.svg",iso:!0,name:"Sint Maarten"},sy:{capital:"Damascus",code:"sy",continent:"Asia",flag_1x1:"flags/1x1/sy.svg",flag_4x3:"flags/4x3/sy.svg",iso:!0,name:"Syria"},sz:{capital:"Lobamba, Mbabane",code:"sz",continent:"Africa",flag_1x1:"flags/1x1/sz.svg",flag_4x3:"flags/4x3/sz.svg",iso:!0,name:"Eswatini"},ta:{code:"ta",flag_1x1:"flags/1x1/ta.svg",flag_4x3:"flags/4x3/ta.svg",iso:!1,name:"Tristan da Cunha"},tc:{capital:"Cockburn Town",code:"tc",continent:"North America",flag_1x1:"flags/1x1/tc.svg",flag_4x3:"flags/4x3/tc.svg",iso:!0,name:"Turks and Caicos Islands"},td:{capital:"N'Djamena",code:"td",continent:"Africa",flag_1x1:"flags/1x1/td.svg",flag_4x3:"flags/4x3/td.svg",iso:!0,name:"Chad"},tf:{capital:"Saint-Pierre, R\xe9union",code:"tf",continent:"Africa",flag_1x1:"flags/1x1/tf.svg",flag_4x3:"flags/4x3/tf.svg",iso:!0,name:"French Southern Territories"},tg:{capital:"Lom\xe9",code:"tg",continent:"Africa",flag_1x1:"flags/1x1/tg.svg",flag_4x3:"flags/4x3/tg.svg",iso:!0,name:"Togo"},th:{capital:"Bangkok",code:"th",continent:"Asia",flag_1x1:"flags/1x1/th.svg",flag_4x3:"flags/4x3/th.svg",iso:!0,name:"Thailand"},tj:{capital:"Dushanbe",code:"tj",continent:"Asia",flag_1x1:"flags/1x1/tj.svg",flag_4x3:"flags/4x3/tj.svg",iso:!0,name:"Tajikistan"},tk:{capital:"Nukunonu, Atafu,Tokelau",code:"tk",continent:"Oceania",flag_1x1:"flags/1x1/tk.svg",flag_4x3:"flags/4x3/tk.svg",iso:!0,name:"Tokelau"},tl:{capital:"Dili",code:"tl",continent:"Asia",flag_1x1:"flags/1x1/tl.svg",flag_4x3:"flags/4x3/tl.svg",iso:!0,name:"Timor-Leste"},tm:{capital:"Ashgabat",code:"tm",continent:"Asia",flag_1x1:"flags/1x1/tm.svg",flag_4x3:"flags/4x3/tm.svg",iso:!0,name:"Turkmenistan"},tn:{capital:"Tunis",code:"tn",continent:"Africa",flag_1x1:"flags/1x1/tn.svg",flag_4x3:"flags/4x3/tn.svg",iso:!0,name:"Tunisia"},to:{capital:"Nuku\u02bbalofa",code:"to",continent:"Oceania",flag_1x1:"flags/1x1/to.svg",flag_4x3:"flags/4x3/to.svg",iso:!0,name:"Tonga"},tr:{capital:"Ankara",code:"tr",continent:"Asia",flag_1x1:"flags/1x1/tr.svg",flag_4x3:"flags/4x3/tr.svg",iso:!0,name:"Turkey"},tt:{capital:"Port of Spain",code:"tt",continent:"South America",flag_1x1:"flags/1x1/tt.svg",flag_4x3:"flags/4x3/tt.svg",iso:!0,name:"Trinidad and Tobago"},tv:{capital:"Funafuti",code:"tv",continent:"Oceania",flag_1x1:"flags/1x1/tv.svg",flag_4x3:"flags/4x3/tv.svg",iso:!0,name:"Tuvalu"},tw:{capital:"Taipei",code:"tw",continent:"Asia",flag_1x1:"flags/1x1/tw.svg",flag_4x3:"flags/4x3/tw.svg",iso:!0,name:"Taiwan"},tz:{capital:"Dodoma",code:"tz",continent:"Africa",flag_1x1:"flags/1x1/tz.svg",flag_4x3:"flags/4x3/tz.svg",iso:!0,name:"Tanzania"},ua:{capital:"Kiev",code:"ua",continent:"Europe",flag_1x1:"flags/1x1/ua.svg",flag_4x3:"flags/4x3/ua.svg",iso:!0,name:"Ukraine"},ug:{capital:"Kampala",code:"ug",continent:"Africa",flag_1x1:"flags/1x1/ug.svg",flag_4x3:"flags/4x3/ug.svg",iso:!0,name:"Uganda"},um:{capital:"Washington, D.C.",code:"um",continent:"North America",flag_1x1:"flags/1x1/um.svg",flag_4x3:"flags/4x3/um.svg",iso:!0,name:"United States Minor Outlying Islands"},un:{code:"un",flag_1x1:"flags/1x1/un.svg",flag_4x3:"flags/4x3/un.svg",iso:!1,name:"United Nations"},us:{capital:"Washington, D.C.",code:"us",continent:"North America",flag_1x1:"flags/1x1/us.svg",flag_4x3:"flags/4x3/us.svg",iso:!0,name:"United States of America"},uy:{capital:"Montevideo",code:"uy",continent:"South America",flag_1x1:"flags/1x1/uy.svg",flag_4x3:"flags/4x3/uy.svg",iso:!0,name:"Uruguay"},uz:{capital:"Tashkent",code:"uz",continent:"Asia",flag_1x1:"flags/1x1/uz.svg",flag_4x3:"flags/4x3/uz.svg",iso:!0,name:"Uzbekistan"},va:{capital:"Vatican City",code:"va",continent:"Europe",flag_1x1:"flags/1x1/va.svg",flag_4x3:"flags/4x3/va.svg",iso:!0,name:"Holy See"},vc:{capital:"Kingstown",code:"vc",continent:"North America",flag_1x1:"flags/1x1/vc.svg",flag_4x3:"flags/4x3/vc.svg",iso:!0,name:"Saint Vincent and the Grenadines"},ve:{capital:"Caracas",code:"ve",continent:"South America",flag_1x1:"flags/1x1/ve.svg",flag_4x3:"flags/4x3/ve.svg",iso:!0,name:"Venezuela"},vg:{capital:"Road Town",code:"vg",continent:"North America",flag_1x1:"flags/1x1/vg.svg",flag_4x3:"flags/4x3/vg.svg",iso:!0,name:"Virgin Islands (British)"},vi:{capital:"Charlotte Amalie",code:"vi",continent:"North America",flag_1x1:"flags/1x1/vi.svg",flag_4x3:"flags/4x3/vi.svg",iso:!0,name:"Virgin Islands (U.S.)"},vn:{capital:"Hanoi",code:"vn",continent:"Asia",flag_1x1:"flags/1x1/vn.svg",flag_4x3:"flags/4x3/vn.svg",iso:!0,name:"Vietnam"},vu:{capital:"Port Vila",code:"vu",continent:"Oceania",flag_1x1:"flags/1x1/vu.svg",flag_4x3:"flags/4x3/vu.svg",iso:!0,name:"Vanuatu"},wf:{capital:"Mata-Utu",code:"wf",continent:"Oceania",flag_1x1:"flags/1x1/wf.svg",flag_4x3:"flags/4x3/wf.svg",iso:!0,name:"Wallis and Futuna"},ws:{capital:"Apia",code:"ws",continent:"Oceania",flag_1x1:"flags/1x1/ws.svg",flag_4x3:"flags/4x3/ws.svg",iso:!0,name:"Samoa"},xk:{capital:"Pristina",code:"xk",continent:"Europe",flag_1x1:"flags/1x1/xk.svg",flag_4x3:"flags/4x3/xk.svg",iso:!1,name:"Kosovo"},xx:{code:"xx",flag_1x1:"flags/1x1/xx.svg",flag_4x3:"flags/4x3/xx.svg",iso:!1,name:"Unknown"},ye:{capital:"Sana'a",code:"ye",continent:"Asia",flag_1x1:"flags/1x1/ye.svg",flag_4x3:"flags/4x3/ye.svg",iso:!0,name:"Yemen"},yt:{capital:"Mamoudzou",code:"yt",continent:"Africa",flag_1x1:"flags/1x1/yt.svg",flag_4x3:"flags/4x3/yt.svg",iso:!0,name:"Mayotte"},za:{capital:"Pretoria",code:"za",continent:"Africa",flag_1x1:"flags/1x1/za.svg",flag_4x3:"flags/4x3/za.svg",iso:!0,name:"South Africa"},zm:{capital:"Lusaka",code:"zm",continent:"Africa",flag_1x1:"flags/1x1/zm.svg",flag_4x3:"flags/4x3/zm.svg",iso:!0,name:"Zambia"},zw:{capital:"Harare",code:"zw",continent:"Africa",flag_1x1:"flags/1x1/zw.svg",flag_4x3:"flags/4x3/zw.svg",iso:!0,name:"Zimbabwe"}})),kS=function(e){var t=wS.get(e.cc.toLowerCase());return void 0!==t?(0,Mb.jsx)("div",{className:"flex justify-center",children:(0,Mb.jsx)("img",{className:"h-5 w-5",src:"static/".concat(t.flag_4x3),alt:t.name})}):(0,Mb.jsx)(Mb.Fragment,{children:e.cc})};function SS(e,t,n){return t<0&&(t=0),n<0&&(n=0),e.online4||e.online6?(0,Mb.jsxs)("div",{className:"inline-grid grid-cols-11 items-center space-x-1",children:[(0,Mb.jsx)("div",{className:"col-span-5 min-w-min text-right",children:lw(t,1,e.si?1:0)}),(0,Mb.jsx)("div",{children:"|"}),(0,Mb.jsx)("div",{className:"col-span-5 min-w-min text-left",children:lw(n,1,e.si?1:0)})]}):(0,Mb.jsx)("div",{children:"-"})}function _S(e){var t=new Map;return void 0!==e.labels&&(t=function(e){var t=new Map;return e.split(";").forEach((function(e){if(!(e.length<1)){var n=e.split("=");2===n.length&&t.set(n[0],n[1])}})),t}(e.labels)),(0,Mb.jsxs)(Mb.Fragment,{children:[t.has("os")&&ww(t.get("os")),e.gid.length>0&&(0,Mb.jsxs)(Mb.Fragment,{children:[(0,Mb.jsx)("div",{children:(0,Mb.jsx)(sw,{className:"h-5 w-5 text-amber-500 dark:text-yellow-400"})}),(0,Mb.jsx)("div",{children:e.gid})]}),t.has("spec")&&(0,Mb.jsxs)(Mb.Fragment,{children:[(0,Mb.jsx)("div",{children:(0,Mb.jsx)(uw,{className:"h-5 w-5"})}),(0,Mb.jsx)("div",{children:t.get("spec")})]}),t.has("ndd")&&(0,Mb.jsxs)(Mb.Fragment,{children:[(0,Mb.jsx)("div",{children:(0,Mb.jsx)(cw,{className:"h-5 w-5 "})}),(0,Mb.jsx)("div",{children:t.get("ndd")})]})]})}var ES=function(t){var n="mx-auto items-stretch gap-x-4 pl-2 text-tiny md:text-sm lg:text-base",r=function(e){var t=e.getFullYear(),n="".concat(e.getMonth()+1).padStart(2,"0"),r="".concat(e.getDate()).padStart(2,"0"),a="".concat(e.getHours()).padStart(2,"0"),o="".concat(e.getMinutes()).padStart(2,"0"),i="".concat(e.getSeconds()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r," ").concat(a,":").concat(o,":").concat(i)}(new Date(1e3*t.updated)),a=Ye((0,e.useState)([]),2),o=a[0],i=a[1];return(0,Mb.jsxs)("div",{className:"mx-auto min-w-min flex-1",children:[(0,Mb.jsx)("div",{children:t.servers.length>0?(0,Mb.jsxs)("table",{id:"ssr-table",className:"items-end pt-1 text-center text-indigo-800 dark:text-white",children:[(0,Mb.jsx)("thead",{children:(0,Mb.jsxs)("tr",{className:"".concat(n," h-8 border-b-[1px] border-indigo-100 bg-slate-100 text-center font-bold dark:border-white dark:bg-slate-700"),children:[(0,Mb.jsx)("th",{children:"\u8282\u70b9\u540d"}),(0,Mb.jsx)("th",{children:"\u534f\u8bae"}),(0,Mb.jsx)("th",{className:"hidden w-20 lg:table-cell",children:"\u5728\u7ebf"}),(0,Mb.jsx)("th",{className:"hidden w-20 lg:table-cell",children:"\u4f4d\u7f6e"}),(0,Mb.jsx)("th",{className:"hidden w-20 lg:table-cell",children:"\u7c7b\u578b"}),(0,Mb.jsx)("th",{className:"w-20",children:"\u8d1f\u8f7d"}),(0,Mb.jsx)("th",{className:"hidden md:table-cell lg:table-cell",children:"\u6708\u6d41\u91cf \u2193|\u2191"}),(0,Mb.jsx)("th",{children:"\u7f51\u7edc \u2193|\u2191"}),(0,Mb.jsx)("th",{className:"hidden md:table-cell lg:table-cell",children:"\u603b\u6d41\u91cf \u2193|\u2191"}),(0,Mb.jsx)("th",{children:"\u5904\u7406\u5668"}),(0,Mb.jsx)("th",{children:"\u5185\u5b58"}),(0,Mb.jsx)("th",{children:"\u786c\u76d8"}),(0,Mb.jsx)("th",{className:"hidden w-44 pr-5 pl-3 xl:table-cell",children:"\u8054\u901a | \u7535\u4fe1 | \u79fb\u52a8"})]})}),(0,Mb.jsx)("tbody",{children:t.servers.map((function(e,t){return(0,Mb.jsxs)(Mb.Fragment,{children:[(0,Mb.jsxs)("tr",{id:"r-".concat(t),onClick:function(){return function(e){var t=o,n=t.includes(e)?t.filter((function(t){return t!==e})):t.concat(e);i(n)}(t)},className:"".concat(n," h-[40px] ").concat(t>0?"font-tiny border-t-[1px] border-dashed border-slate-400 border-opacity-75 font-normal dark:border-solid dark:border-white":""," bg-slate-50 hover:bg-indigo-50 dark:bg-slate-700 dark:hover:bg-slate-600"),children:[(0,Mb.jsx)("td",{className:"w-20 min-w-min",children:(0,Mb.jsx)("div",{className:"mx-auto max-w-xs truncate pr-1",children:e.alias})}),(0,Mb.jsx)("td",{children:(0,Mb.jsxs)("div",{className:"flex justify-center",children:[(0,Mb.jsx)(xS,{online:e.online4,label:"IPv4"},"v4-".concat(t)),(0,Mb.jsx)(xS,{online:e.online6,label:"IPv6"},"v6-".concat(t))]})}),(0,Mb.jsx)("td",{className:"hidden w-24 min-w-min lg:table-cell",children:e.online4||e.online6?e.uptime:(0,Mb.jsx)(ew,{})}),(0,Mb.jsx)("td",{className:"hidden w-20 min-w-min lg:table-cell",children:(0,Mb.jsx)(kS,{cc:e.location})}),(0,Mb.jsx)("td",{className:"hidden w-20 min-w-min lg:table-cell",children:e.online4||e.online6?e.type:"-"}),(0,Mb.jsx)("td",{className:"w-20 min-w-min",children:e.online4||e.online6?e.load_1.toFixed(2):"-"}),(0,Mb.jsx)("td",{className:"hidden w-48 min-w-max md:table-cell lg:table-cell",children:SS(e,e.network_in-e.last_network_in,e.network_out-e.last_network_out)}),(0,Mb.jsx)("td",{className:"w-56 min-w-min md:w-48",children:SS(e,e.network_rx,e.network_tx)}),(0,Mb.jsx)("td",{className:"hidden w-48 min-w-min md:table-cell lg:table-cell",children:SS(e,e.network_in,e.network_out)}),(0,Mb.jsx)("td",{className:"w-24 pl-2",children:rw(e,"cpu")}),(0,Mb.jsx)("td",{className:"w-24 pl-2",children:rw(e,"mem")}),(0,Mb.jsx)("td",{className:"w-24 pl-2 pr-px lg:pr-0",children:rw(e,"hdd")}),(0,Mb.jsx)("td",{className:"hidden w-44 pr-2 pl-2 xl:table-cell",children:aw(e)})]},"r-".concat(t)),(0,Mb.jsx)("tr",{id:"r-".concat(t,"-expand"),className:"".concat(n," font-xs font-mono font-normal transition-all duration-[500ms] ease-out md:duration-[450ms] ").concat((e.online4||e.online6)&&o.includes(t)?"visible":"collapse"),children:(0,Mb.jsx)("td",{colSpan:16,children:(0,Mb.jsxs)("div",{className:"grid w-11/12 grid-cols-12 items-center space-x-1 overflow-hidden text-center transition-all duration-[500ms] ease-out md:duration-[450ms] ".concat((e.online4||e.online6)&&o.includes(t)?"max-h-44":"max-h-0"),children:[(0,Mb.jsx)("div",{className:"col-start-1 col-end-7 text-right",children:"\u8d1f\u8f7d:"}),(0,Mb.jsxs)("div",{className:"col-start-7 col-end-12 text-left",children:[e.load_1.toFixed(2),"/",e.load_5.toFixed(2),"/",e.load_15.toFixed(2)]}),(0,Mb.jsx)("div",{className:"col-start-1 col-end-7 text-right",children:"\u5185\u5b58:"}),(0,Mb.jsxs)("div",{className:"col-start-7 col-end-12 text-left",children:[lw(1024*e.memory_used),"/",lw(1024*e.memory_total)]}),(0,Mb.jsx)("div",{className:"col-start-1 col-end-7 text-right",children:"\u4ea4\u6362\u5206\u533a:"}),(0,Mb.jsxs)("div",{className:"col-start-7 col-end-12 text-left",children:[lw(e.swap_used*(e.si?1e3:1024),2,e.si?1:0),"/",lw(e.swap_total*(e.si?1e3:1024),2,e.si?1:0)]}),(0,Mb.jsx)("div",{className:"col-start-1 col-end-7 text-right",children:"\u786c\u76d8:"}),(0,Mb.jsxs)("div",{className:"col-start-7 col-end-12 text-left",children:[lw(e.hdd_used*(e.si?1e6:1048576),2,e.si?1:0),"/",lw(e.hdd_total*(e.si?1e6:1048576),2,e.si?1:0)]}),(0,Mb.jsx)("div",{className:"col-start-1 col-end-7 text-right",children:"TCP/UDP/\u8fdb/\u7ebf:"}),(0,Mb.jsxs)("div",{className:"col-start-7 col-end-12 text-left",children:[e.tcp_count,"/",e.udp_count,"/",e.process_count,"/",e.thread_count]}),(0,Mb.jsx)("div",{className:"col-start-1 col-end-7 text-right",children:"\u8054\u901a/\u7535\u4fe1/\u79fb\u52a8:"}),(0,Mb.jsxs)("div",{className:"col-start-7 col-end-12 text-left",children:[e.time_10010,"ms/",e.time_189,"ms/",e.time_10086,"ms"]}),(0,Mb.jsxs)("div",{className:"col-start-2 col-end-12 flex items-center justify-center space-x-1",children:[(0,Mb.jsxs)("div",{className:"text-red-400 dark:text-white",children:["#",t]}),(0,Mb.jsx)(Sx,{orientation:"vertical"}),_S(e)]})]})})},"r-".concat(t,"-expand"))]})}))})]},"ssr-table"):(0,Mb.jsx)("div",{className:"mx-auto mt-8 grid min-w-min justify-center bg-transparent",children:(0,Mb.jsx)(Ix,{direction:"row",spacing:4,children:(0,Mb.jsx)(vd,{size:"xl",speed:"0.75s",thickness:"4px",color:"blue.500"})})})}),(0,Mb.jsxs)("div",{className:"mt-2 pl-6 text-xs text-slate-400",children:["\u6700\u540e\u66f4\u65b0\uff1a",r]})]})};function CS(e){return Kx({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"}}]})(e)}var AS=function(){var t=Ye((0,e.useState)({servers:[],updated:0}),2),n=t[0],r=t[1],a=vt().colorMode,o=Ye((0,e.useState)("dark"),2),i=o[0],l=o[1];if(a!==i){var s="light"===a?"#f8fafc":"#334155";"light"===a?(document.documentElement.classList.remove("dark"),document.body.style.backgroundColor=s):(document.documentElement.classList.add("dark"),document.body.style.backgroundColor=s),l(a)}return(0,e.useEffect)((function(){var e=function(){fetch("json/stats.json").then((function(e){return e.json()})).then((function(e){r(e)})).catch((function(e){return console.log("\u9519\u8bef:",e)}))};e();var t=setInterval(e,1e3);return function(){clearInterval(t)}}),[]),(0,Mb.jsxs)("div",{id:"app",className:"grid h-full w-full bg-transparent subpixel-antialiased dark:bg-slate-700",children:[(0,Mb.jsx)("div",{id:"header",className:"h-[80px] w-full bg-slate-700 text-green-400 md:h-[100px]",children:(0,Mb.jsx)(Db,{})}),(0,Mb.jsx)("div",{id:"body",className:"container mx-auto -mt-[20px] h-auto w-full max-w-7xl dark:bg-slate-700 md:-mt-[32px]",children:(0,Mb.jsx)(ES,c({},n))}),(0,Mb.jsxs)("div",{id:"footer",className:"font-blod flex w-full items-center justify-center pt-4 pb-4 dark:bg-slate-700",children:[(0,Mb.jsx)(CS,{className:"h-5 w-5 text-indigo-800 dark:text-green-400"})," ",(0,Mb.jsx)("p",{className:"pl-1 text-indigo-800 dark:text-green-400",children:(0,Mb.jsx)(Nb,{to:"https://github.com/zdz/ServerStatus-Rust",text:"UI for ServerStatus-Rust"})})]})]})};r.createRoot(document.getElementById("root")).render((0,Mb.jsx)(e.StrictMode,{children:(0,Mb.jsxs)(Rb,{children:[(0,Mb.jsx)(Tt,{initialColorMode:"dark",type:"localStorage"}),(0,Mb.jsx)(AS,{})]})})),a()}()}();
\ No newline at end of file
diff --git a/web/static/js/main.11ebec8f.js.LICENSE.txt b/web/static/js/main.55ca27ef.js.LICENSE.txt
similarity index 100%
rename from web/static/js/main.11ebec8f.js.LICENSE.txt
rename to web/static/js/main.55ca27ef.js.LICENSE.txt
diff --git a/web/static/os/android.svg b/web/static/os/android.svg
new file mode 100644
index 00000000..d29cca80
--- /dev/null
+++ b/web/static/os/android.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/web/static/os/macos.svg b/web/static/os/macos.svg
new file mode 100644
index 00000000..c24c4152
--- /dev/null
+++ b/web/static/os/macos.svg
@@ -0,0 +1 @@
+
\ No newline at end of file