From a88c7e76147aa134cee6316bff9fc6e3b6b44d80 Mon Sep 17 00:00:00 2001 From: Mikhail Dzianishchyts Date: Thu, 21 Mar 2024 13:47:08 +0300 Subject: [PATCH] test --- tgui/packages/tgui/interfaces/APC.js | 41 +------- tgui/public/tgui.bundle.js | 134 +++++++++++++-------------- 2 files changed, 69 insertions(+), 106 deletions(-) diff --git a/tgui/packages/tgui/interfaces/APC.js b/tgui/packages/tgui/interfaces/APC.js index c89bb4351a0f..0d6be492bfb1 100644 --- a/tgui/packages/tgui/interfaces/APC.js +++ b/tgui/packages/tgui/interfaces/APC.js @@ -12,7 +12,7 @@ import { InterfaceLockNoticeBox } from './common/InterfaceLockNoticeBox'; export const APC = (props, context) => { return ( - + @@ -76,44 +76,7 @@ const ApcContent = (props, context) => { return ( <> -
- - act('breaker')} - /> - } - > - [ {externalPowerStatus.externalPowerText} ] - - - - - act('charge')} - /> - } - > - [ {chargingStatus.chargingText} ] - - -
+
{channelArray.map((channel) => { diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 52609bde5cb2..c56144e495d2 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,26 +1,26 @@ -(function(){(function(){var $t={15113:function(L,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=h(n(28770)),a=h(n(12866)),t=h(n(88577)),o=h(n(29727)),f=h(n(13657)),N=h(n(97902)),b=h(n(57547)),S=h(n(4709));r.detectOverflow=S.default;var k=n(65601);function h(d){return d&&d.__esModule?d:{default:d}}var u={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var d=arguments.length,l=new Array(d),s=0;s0&&(0,a.round)(h.width)/b.offsetWidth||1,c=b.offsetHeight>0&&(0,a.round)(h.height)/b.offsetHeight||1);var m=(0,e.isElement)(b)?(0,t.default)(b):window,i=m.visualViewport,d=!(0,o.default)()&&k,l=(h.left+(d&&i?i.offsetLeft:0))/u,s=(h.top+(d&&i?i.offsetTop:0))/c,C=h.width/u,g=h.height/c;return{width:C,height:g,top:s,right:l+C,bottom:s+g,left:l,x:l,y:s}}},98310:function(L,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(37802),a=d(n(63064)),t=d(n(16940)),o=d(n(88577)),f=d(n(29727)),N=d(n(9252)),b=d(n(75663)),S=n(65601),k=d(n(83199)),h=d(n(16292)),u=d(n(11848)),c=d(n(1707)),m=d(n(21194)),i=n(79257);function d(v){return v&&v.__esModule?v:{default:v}}function l(v,p){var V=(0,k.default)(v,!1,p==="fixed");return V.top=V.top+v.clientTop,V.left=V.left+v.clientLeft,V.bottom=V.top+v.clientHeight,V.right=V.left+v.clientWidth,V.width=v.clientWidth,V.height=v.clientHeight,V.x=V.left,V.y=V.top,V}function s(v,p,V){return p===e.viewport?(0,m.default)((0,a.default)(v,V)):(0,S.isElement)(p)?l(p,V):(0,m.default)((0,t.default)((0,N.default)(v)))}function C(v){var p=(0,o.default)((0,h.default)(v)),V=["absolute","fixed"].indexOf((0,b.default)(v).position)>=0,y=V&&(0,S.isHTMLElement)(v)?(0,f.default)(v):v;return(0,S.isElement)(y)?p.filter(function(B){return(0,S.isElement)(B)&&(0,u.default)(B,y)&&(0,c.default)(B)!=="body"}):[]}function g(v,p,V,y){var B=p==="clippingParents"?C(v):[].concat(p),I=[].concat(B,[V]),w=I[0],T=I.reduce(function(A,x){var E=s(v,x,y);return A.top=(0,i.max)(E.top,A.top),A.right=(0,i.min)(E.right,A.right),A.bottom=(0,i.min)(E.bottom,A.bottom),A.left=(0,i.max)(E.left,A.left),A},s(v,w,y));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(L,r,n){"use strict";r.__esModule=!0,r.default=u;var e=k(n(83199)),a=k(n(3107)),t=k(n(1707)),o=n(65601),f=k(n(94889)),N=k(n(9252)),b=k(n(27703)),S=n(79257);function k(c){return c&&c.__esModule?c:{default:c}}function h(c){var m=c.getBoundingClientRect(),i=(0,S.round)(m.width)/c.offsetWidth||1,d=(0,S.round)(m.height)/c.offsetHeight||1;return i!==1||d!==1}function u(c,m,i){i===void 0&&(i=!1);var d=(0,o.isHTMLElement)(m),l=(0,o.isHTMLElement)(m)&&h(m),s=(0,N.default)(m),C=(0,e.default)(c,l,i),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!i)&&(((0,t.default)(m)!=="body"||(0,b.default)(s))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):s&&(v.x=(0,f.default)(s))),{x:C.left+g.scrollLeft-v.x,y:C.top+g.scrollTop-v.y,width:C.width,height:C.height}}},75663:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},9252:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},16940:function(L,r,n){"use strict";r.__esModule=!0,r.default=b;var e=N(n(9252)),a=N(n(75663)),t=N(n(94889)),o=N(n(42532)),f=n(79257);function N(S){return S&&S.__esModule?S:{default:S}}function b(S){var k,h=(0,e.default)(S),u=(0,o.default)(S),c=(k=S.ownerDocument)==null?void 0:k.body,m=(0,f.max)(h.scrollWidth,h.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,f.max)(h.scrollHeight,h.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-u.scrollLeft+(0,t.default)(S),l=-u.scrollTop;return(0,a.default)(c||h).direction==="rtl"&&(d+=(0,f.max)(h.clientWidth,c?c.clientWidth:0)-m),{width:m,height:i,x:d,y:l}}},89741:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(83199));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=o.offsetWidth,b=o.offsetHeight;return Math.abs(f.width-N)<=1&&(N=f.width),Math.abs(f.height-b)<=1&&(b=f.height),{x:o.offsetLeft,y:o.offsetTop,width:N,height:b}}},1707:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(42532)),a=f(n(44901)),t=n(65601),o=f(n(89741));function f(b){return b&&b.__esModule?b:{default:b}}function N(b){return b===(0,a.default)(b)||!(0,t.isHTMLElement)(b)?(0,e.default)(b):(0,o.default)(b)}},29727:function(L,r,n){"use strict";r.__esModule=!0,r.default=u;var e=S(n(44901)),a=S(n(1707)),t=S(n(75663)),o=n(65601),f=S(n(36875)),N=S(n(16292)),b=S(n(88492));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function h(c){var m=/firefox/i.test((0,b.default)()),i=/Trident/i.test((0,b.default)());if(i&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var l=(0,N.default)(c);for((0,o.isShadowRoot)(l)&&(l=l.host);(0,o.isHTMLElement)(l)&&["html","body"].indexOf((0,a.default)(l))<0;){var s=(0,t.default)(l);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||m&&s.willChange==="filter"||m&&s.filter&&s.filter!=="none")return l;l=l.parentNode}return null}function u(c){for(var m=(0,e.default)(c),i=k(c);i&&(0,f.default)(i)&&(0,t.default)(i).position==="static";)i=k(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?m:i||h(c)||m}},16292:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)(N)==="html"?N:N.assignedSlot||N.parentNode||((0,t.isShadowRoot)(N)?N.host:null)||(0,a.default)(N)}},87899:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16292)),a=f(n(27703)),t=f(n(1707)),o=n(65601);function f(b){return b&&b.__esModule?b:{default:b}}function N(b){return["html","body","#document"].indexOf((0,t.default)(b))>=0?b.ownerDocument.body:(0,o.isHTMLElement)(b)&&(0,a.default)(b)?b:N((0,e.default)(b))}},63064:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(44901)),a=f(n(9252)),t=f(n(94889)),o=f(n(95294));function f(b){return b&&b.__esModule?b:{default:b}}function N(b,S){var k=(0,e.default)(b),h=(0,a.default)(b),u=k.visualViewport,c=h.clientWidth,m=h.clientHeight,i=0,d=0;if(u){c=u.width,m=u.height;var l=(0,o.default)();(l||!l&&S==="fixed")&&(i=u.offsetLeft,d=u.offsetTop)}return{width:c,height:m,x:i+(0,t.default)(b),y:d}}},44901:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},42532:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.pageXOffset,b=f.pageYOffset;return{scrollLeft:N,scrollTop:b}}},94889:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(83199)),a=o(n(9252)),t=o(n(42532));function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)((0,a.default)(N)).left+(0,t.default)(N).scrollLeft}},65601:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}function t(N){var b=(0,e.default)(N).Element;return N instanceof b||N instanceof Element}function o(N){var b=(0,e.default)(N).HTMLElement;return N instanceof b||N instanceof HTMLElement}function f(N){if(typeof ShadowRoot=="undefined")return!1;var b=(0,e.default)(N).ShadowRoot;return N instanceof b||N instanceof ShadowRoot}},95294:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(88492));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},27703:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(75663));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.overflow,b=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(N+S+b)}},36875:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1707));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},88577:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(87899)),a=f(n(16292)),t=f(n(44901)),o=f(n(27703));function f(b){return b&&b.__esModule?b:{default:b}}function N(b,S){var k;S===void 0&&(S=[]);var h=(0,e.default)(b),u=h===((k=b.ownerDocument)==null?void 0:k.body),c=(0,t.default)(h),m=u?[c].concat(c.visualViewport||[],(0,o.default)(h)?h:[]):h,i=S.concat(m);return u?i:i.concat(N((0,a.default)(m)))}},37802:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],N=r.start="start",b=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",h=r.popper="popper",u=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+N,I+"-"+b])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+N,I+"-"+b])},[]),i=r.beforeRead="beforeRead",d=r.read="read",l=r.afterRead="afterRead",s=r.beforeMain="beforeMain",C=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",p=r.write="write",V=r.afterWrite="afterWrite",y=r.modifierPhases=[i,d,l,s,C,g,v,p,V]},60028:function(L,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(37802);Object.keys(a).forEach(function(b){b==="default"||b==="__esModule"||Object.prototype.hasOwnProperty.call(e,b)||b in r&&r[b]===a[b]||(r[b]=a[b])});var t=n(16055);Object.keys(t).forEach(function(b){b==="default"||b==="__esModule"||Object.prototype.hasOwnProperty.call(e,b)||b in r&&r[b]===t[b]||(r[b]=t[b])});var o=n(15113);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(98420);r.createPopper=f.createPopper;var N=n(22008);r.createPopperLite=N.createPopper},20637:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(b){return b&&b.__esModule?b:{default:b}}function o(b){var S=b.state;Object.keys(S.elements).forEach(function(k){var h=S.styles[k]||{},u=S.attributes[k]||{},c=S.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,h),Object.keys(u).forEach(function(m){var i=u[m];i===!1?c.removeAttribute(m):c.setAttribute(m,i===!0?"":i)}))})}function f(b){var S=b.state,k={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,k.popper),S.styles=k,S.elements.arrow&&Object.assign(S.elements.arrow.style,k.arrow),function(){Object.keys(S.elements).forEach(function(h){var u=S.elements[h],c=S.attributes[h]||{},m=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:k[h]),i=m.reduce(function(d,l){return d[l]="",d},{});!(0,a.isHTMLElement)(u)||!(0,e.default)(u)||(Object.assign(u.style,i),Object.keys(c).forEach(function(d){u.removeAttribute(d)}))})}}var N=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},11106:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(16275)),a=h(n(12866)),t=h(n(11848)),o=h(n(29727)),f=h(n(26608)),N=n(87415),b=h(n(41e3)),S=h(n(62605)),k=n(37802);function h(d){return d&&d.__esModule?d:{default:d}}var u=function(){function d(l,s){return l=typeof l=="function"?l(Object.assign({},s.rects,{placement:s.placement})):l,(0,b.default)(typeof l!="number"?l:(0,S.default)(l,k.basePlacements))}return d}();function c(d){var l,s=d.state,C=d.name,g=d.options,v=s.elements.arrow,p=s.modifiersData.popperOffsets,V=(0,e.default)(s.placement),y=(0,f.default)(V),B=[k.left,k.right].indexOf(V)>=0,I=B?"height":"width";if(!(!v||!p)){var w=u(g.padding,s),T=(0,a.default)(v),A=y==="y"?k.top:k.left,x=y==="y"?k.bottom:k.right,E=s.rects.reference[I]+s.rects.reference[y]-p[y]-s.rects.popper[I],P=p[y]-s.rects.reference[y],R=(0,o.default)(v),M=R?y==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-P/2,j=w[A],F=M-T[I]-w[x],U=M/2-T[I]/2+D,_=(0,N.within)(j,U,F),$=y;s.modifiersData[C]=(l={},l[$]=_,l.centerOffset=_-U,l)}}function m(d){var l=d.state,s=d.options,C=s.element,g=C===void 0?"[data-popper-arrow]":C;g!=null&&(typeof g=="string"&&(g=l.elements.popper.querySelector(g),!g)||(0,t.default)(l.elements.popper,g)&&(l.elements.arrow=g))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(37802),a=k(n(29727)),t=k(n(44901)),o=k(n(9252)),f=k(n(75663)),N=k(n(16275)),b=k(n(56918)),S=n(79257);function k(d){return d&&d.__esModule?d:{default:d}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function u(d,l){var s=d.x,C=d.y,g=l.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(C*g)/g||0}}function c(d){var l,s=d.popper,C=d.popperRect,g=d.placement,v=d.variation,p=d.offsets,V=d.position,y=d.gpuAcceleration,B=d.adaptive,I=d.roundOffsets,w=d.isFixed,T=p.x,A=T===void 0?0:T,x=p.y,E=x===void 0?0:x,P=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var R=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),D=e.left,j=e.top,F=window;if(B){var U=(0,a.default)(s),_="clientHeight",$="clientWidth";if(U===(0,t.default)(s)&&(U=(0,o.default)(s),(0,f.default)(U).position!=="static"&&V==="absolute"&&(_="scrollHeight",$="scrollWidth")),U=U,g===e.top||(g===e.left||g===e.right)&&v===e.end){j=e.bottom;var z=w&&U===F&&F.visualViewport?F.visualViewport.height:U[_];E-=z-C.height,E*=y?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){D=e.right;var G=w&&U===F&&F.visualViewport?F.visualViewport.width:U[$];A-=G-C.width,A*=y?1:-1}}var H=Object.assign({position:V},B&&h),J=I===!0?u({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=J.x,E=J.y,y){var ae;return Object.assign({},H,(ae={},ae[j]=M?"0":"",ae[D]=R?"0":"",ae.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ae))}return Object.assign({},H,(l={},l[j]=M?E+"px":"",l[D]=R?A+"px":"",l.transform="",l))}function m(d){var l=d.state,s=d.options,C=s.gpuAcceleration,g=C===void 0?!0:C,v=s.adaptive,p=v===void 0?!0:v,V=s.roundOffsets,y=V===void 0?!0:V,B={placement:(0,N.default)(l.placement),variation:(0,b.default)(l.placement),popper:l.elements.popper,popperRect:l.rects.popper,gpuAcceleration:g,isFixed:l.options.strategy==="fixed"};l.modifiersData.popperOffsets!=null&&(l.styles.popper=Object.assign({},l.styles.popper,c(Object.assign({},B,{offsets:l.modifiersData.popperOffsets,position:l.options.strategy,adaptive:p,roundOffsets:y})))),l.modifiersData.arrow!=null&&(l.styles.arrow=Object.assign({},l.styles.arrow,c(Object.assign({},B,{offsets:l.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),l.attributes.popper=Object.assign({},l.attributes.popper,{"data-popper-placement":l.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},21068:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}var t={passive:!0};function o(N){var b=N.state,S=N.instance,k=N.options,h=k.scroll,u=h===void 0?!0:h,c=k.resize,m=c===void 0?!0:c,i=(0,e.default)(b.elements.popper),d=[].concat(b.scrollParents.reference,b.scrollParents.popper);return u&&d.forEach(function(l){l.addEventListener("scroll",S.update,t)}),m&&i.addEventListener("resize",S.update,t),function(){u&&d.forEach(function(l){l.removeEventListener("scroll",S.update,t)}),m&&i.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function N(){}return N}(),effect:o,data:{}}},51825:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(96346)),a=S(n(16275)),t=S(n(15022)),o=S(n(4709)),f=S(n(36705)),N=n(37802),b=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===N.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function h(c){var m=c.state,i=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var l=i.mainAxis,s=l===void 0?!0:l,C=i.altAxis,g=C===void 0?!0:C,v=i.fallbackPlacements,p=i.padding,V=i.boundary,y=i.rootBoundary,B=i.altBoundary,I=i.flipVariations,w=I===void 0?!0:I,T=i.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=v||(E||!w?[(0,e.default)(A)]:k(A)),R=[A].concat(P).reduce(function(Z,q){return Z.concat((0,a.default)(q)===N.auto?(0,f.default)(m,{placement:q,boundary:V,rootBoundary:y,padding:p,flipVariations:w,allowedAutoPlacements:T}):q)},[]),M=m.rects.reference,D=m.rects.popper,j=new Map,F=!0,U=R[0],_=0;_=0,J=H?"width":"height",ae=(0,o.default)(m,{placement:$,boundary:V,rootBoundary:y,altBoundary:B,padding:p}),ce=H?G?N.right:N.left:G?N.bottom:N.top;M[J]>D[J]&&(ce=(0,e.default)(ce));var se=(0,e.default)(ce),he=[];if(s&&he.push(ae[z]<=0),g&&he.push(ae[ce]<=0,ae[se]<=0),he.every(function(Z){return Z})){U=$,F=!1;break}j.set($,he)}if(F)for(var ye=w?3:1,Ie=function(){function Z(q){var ue=R.find(function(me){var ne=j.get(me);if(ne)return ne.slice(0,q).every(function(be){return be})});if(ue)return U=ue,"break"}return Z}(),pe=ye;pe>0;pe--){var oe=Ie(pe);if(oe==="break")break}m.placement!==U&&(m.modifiersData[d]._skip=!0,m.placement=U,m.reset=!0)}}var u=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=t(n(4709));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,k,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-k.height-h.y,right:S.right-k.width+h.x,bottom:S.bottom-k.height+h.y,left:S.left-k.width-h.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function N(S){var k=S.state,h=S.name,u=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,i=(0,a.default)(k,{elementContext:"reference"}),d=(0,a.default)(k,{altBoundary:!0}),l=o(i,u),s=o(d,c,m),C=f(l),g=f(s);k.modifiersData[h]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:C,hasPopperEscaped:g},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":g})}var b=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N}},16055:function(L,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=h(n(20637));r.applyStyles=e.default;var a=h(n(11106));r.arrow=a.default;var t=h(n(85445));r.computeStyles=t.default;var o=h(n(21068));r.eventListeners=o.default;var f=h(n(51825));r.flip=f.default;var N=h(n(44677));r.hide=N.default;var b=h(n(34331));r.offset=b.default;var S=h(n(56154));r.popperOffsets=S.default;var k=h(n(69770));r.preventOverflow=k.default;function h(u){return u&&u.__esModule?u:{default:u}}},34331:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(b){return b&&b.__esModule?b:{default:b}}function o(b,S,k){var h=(0,e.default)(b),u=[a.left,a.top].indexOf(h)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},S,{placement:b})):k,m=c[0],i=c[1];return m=m||0,i=(i||0)*u,[a.left,a.right].indexOf(h)>=0?{x:i,y:m}:{x:m,y:i}}function f(b){var S=b.state,k=b.options,h=b.name,u=k.offset,c=u===void 0?[0,0]:u,m=a.placements.reduce(function(s,C){return s[C]=o(C,S.rects,c),s},{}),i=m[S.placement],d=i.x,l=i.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=d,S.modifiersData.popperOffsets.y+=l),S.modifiersData[h]=m}var N=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(49306));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var N=f.state,b=f.name;N.modifiersData[b]=(0,e.default)({reference:N.rects.reference,element:N.rects.popper,strategy:"absolute",placement:N.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=c(n(16275)),t=c(n(26608)),o=c(n(49903)),f=n(87415),N=c(n(12866)),b=c(n(29727)),S=c(n(4709)),k=c(n(56918)),h=c(n(26143)),u=n(79257);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var l=d.state,s=d.options,C=d.name,g=s.mainAxis,v=g===void 0?!0:g,p=s.altAxis,V=p===void 0?!1:p,y=s.boundary,B=s.rootBoundary,I=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(l,{boundary:y,rootBoundary:B,padding:w,altBoundary:I}),R=(0,a.default)(l.placement),M=(0,k.default)(l.placement),D=!M,j=(0,t.default)(R),F=(0,o.default)(j),U=l.modifiersData.popperOffsets,_=l.rects.reference,$=l.rects.popper,z=typeof E=="function"?E(Object.assign({},l.rects,{placement:l.placement})):E,G=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=l.modifiersData.offset?l.modifiersData.offset[l.placement]:null,J={x:0,y:0};if(U){if(v){var ae,ce=j==="y"?e.top:e.left,se=j==="y"?e.bottom:e.right,he=j==="y"?"height":"width",ye=U[j],Ie=ye+P[ce],pe=ye-P[se],oe=A?-$[he]/2:0,Z=M===e.start?_[he]:$[he],q=M===e.start?-$[he]:-_[he],ue=l.elements.arrow,me=A&&ue?(0,N.default)(ue):{width:0,height:0},ne=l.modifiersData["arrow#persistent"]?l.modifiersData["arrow#persistent"].padding:(0,h.default)(),be=ne[ce],fe=ne[se],ge=(0,f.within)(0,_[he],me[he]),ke=D?_[he]/2-oe-ge-be-G.mainAxis:Z-ge-be-G.mainAxis,ve=D?-_[he]/2+oe+ge+fe+G.mainAxis:q+ge+fe+G.mainAxis,Se=l.elements.arrow&&(0,b.default)(l.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(ae=H==null?void 0:H[j])!=null?ae:0,Oe=ye+ke-xe-we,We=ye+ve-xe,Ve=(0,f.within)(A?(0,u.min)(Ie,Oe):Ie,ye,A?(0,u.max)(pe,We):pe);U[j]=Ve,J[j]=Ve-ye}if(V){var re,le=j==="x"?e.top:e.left,Ce=j==="x"?e.bottom:e.right,de=U[F],Ne=F==="y"?"height":"width",Ae=de+P[le],De=de-P[Ce],je=[e.top,e.left].indexOf(R)!==-1,_e=(re=H==null?void 0:H[F])!=null?re:0,Ue=je?Ae:de-_[Ne]-$[Ne]-_e+G.altAxis,Ke=je?de+_[Ne]+$[Ne]-_e-G.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(Ue,de,Ke):(0,f.within)(A?Ue:Ae,de,A?Ke:De);U[F]=Ge,J[F]=Ge-de}l.modifiersData[C]=J}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(15113);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=N(n(21068)),t=N(n(56154)),o=N(n(85445)),f=N(n(20637));function N(k){return k&&k.__esModule?k:{default:k}}var b=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:b})},98420:function(L,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(15113);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(21068)),o=i(n(56154)),f=i(n(85445)),N=i(n(20637)),b=i(n(34331)),S=i(n(51825)),k=i(n(69770)),h=i(n(11106)),u=i(n(44677)),c=n(22008);r.createPopperLite=c.createPopper;var m=n(16055);Object.keys(m).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(e,s)||s in r&&r[s]===m[s]||(r[s]=m[s])});function i(s){return s&&s.__esModule?s:{default:s}}var d=r.defaultModifiers=[t.default,o.default,f.default,N.default,b.default,S.default,k.default,h.default,u.default],l=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(56918)),a=n(37802),t=f(n(4709)),o=f(n(16275));function f(b){return b&&b.__esModule?b:{default:b}}function N(b,S){S===void 0&&(S={});var k=S,h=k.placement,u=k.boundary,c=k.rootBoundary,m=k.padding,i=k.flipVariations,d=k.allowedAutoPlacements,l=d===void 0?a.placements:d,s=(0,e.default)(h),C=s?i?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===s}):a.basePlacements,g=C.filter(function(p){return l.indexOf(p)>=0});g.length===0&&(g=C);var v=g.reduce(function(p,V){return p[V]=(0,t.default)(b,{placement:V,boundary:u,rootBoundary:c,padding:m})[(0,o.default)(V)],p},{});return Object.keys(v).sort(function(p,V){return v[p]-v[V]})}},49306:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16275)),a=f(n(56918)),t=f(n(26608)),o=n(37802);function f(b){return b&&b.__esModule?b:{default:b}}function N(b){var S=b.reference,k=b.element,h=b.placement,u=h?(0,e.default)(h):null,c=h?(0,a.default)(h):null,m=S.x+S.width/2-k.width/2,i=S.y+S.height/2-k.height/2,d;switch(u){case o.top:d={x:m,y:S.y-k.height};break;case o.bottom:d={x:m,y:S.y+S.height};break;case o.right:d={x:S.x+S.width,y:i};break;case o.left:d={x:S.x-k.width,y:i};break;default:d={x:S.x,y:S.y}}var l=u?(0,t.default)(u):null;if(l!=null){var s=l==="y"?"height":"width";switch(c){case o.start:d[l]=d[l]-(S[s]/2-k[s]/2);break;case o.end:d[l]=d[l]+(S[s]/2-k[s]/2);break;default:}}return d}},97902:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},4709:function(L,r,n){"use strict";r.__esModule=!0,r.default=u;var e=h(n(98310)),a=h(n(9252)),t=h(n(83199)),o=h(n(49306)),f=h(n(21194)),N=n(37802),b=n(65601),S=h(n(41e3)),k=h(n(62605));function h(c){return c&&c.__esModule?c:{default:c}}function u(c,m){m===void 0&&(m={});var i=m,d=i.placement,l=d===void 0?c.placement:d,s=i.strategy,C=s===void 0?c.strategy:s,g=i.boundary,v=g===void 0?N.clippingParents:g,p=i.rootBoundary,V=p===void 0?N.viewport:p,y=i.elementContext,B=y===void 0?N.popper:y,I=i.altBoundary,w=I===void 0?!1:I,T=i.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,k.default)(A,N.basePlacements)),E=B===N.popper?N.reference:N.popper,P=c.rects.popper,R=c.elements[w?E:B],M=(0,e.default)((0,b.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),v,V,C),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:P,strategy:"absolute",placement:l}),F=(0,f.default)(Object.assign({},P,j)),U=B===N.popper?F:D,_={top:M.top-U.top+x.top,bottom:U.bottom-M.bottom+x.bottom,left:M.left-U.left+x.left,right:U.right-M.right+x.right},$=c.modifiersData.offset;if(B===N.popper&&$){var z=$[l];Object.keys(_).forEach(function(G){var H=[N.right,N.bottom].indexOf(G)>=0?1:-1,J=[N.top,N.bottom].indexOf(G)>=0?"y":"x";_[G]+=z[J]*H})}return _}},62605:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},49903:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},15022:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},56918:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(L,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},57547:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},41e3:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(26143));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},13657:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,N=new Set,b=[];o.forEach(function(k){f.set(k.name,k)});function S(k){N.add(k.name);var h=[].concat(k.requires||[],k.requiresIfExists||[]);h.forEach(function(u){if(!N.has(u)){var c=f.get(u);c&&S(c)}}),b.push(k)}return o.forEach(function(k){N.has(k.name)||S(k)}),b}function t(o){var f=a(o);return e.modifierPhases.reduce(function(N,b){return N.concat(f.filter(function(S){return S.phase===b}))},[])}},21194:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},88492:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},87415:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,f,N){return(0,e.max)(o,(0,e.min)(f,N))}function t(o,f,N){var b=a(o,f,N);return b>N?N:b}},60208:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Ie,r._M=He,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=Ct,r.__render=Ft,r.createComponentVNode=_,r.createFragment=z,r.createPortal=ce,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=$,r.createVNode=D,r.directClone=J,r.findDOMfromVNode=V,r.forwardRef=Xt,r.getFlagsForElementVnode=he,r.linkEvent=h,r.normalizeProps=G,r.options=void 0,r.render=Wt,r.rerender=_t,r.version=void 0;var n=Array.isArray;function e(O){var W=typeof O;return W==="string"||W==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function N(O){return typeof O=="number"}function b(O){return O===null}function S(O){return O===void 0}function k(O,W){var K={};if(O)for(var Y in O)K[Y]=O[Y];if(W)for(var Q in W)K[Q]=W[Q];return K}function h(O,W){return o(W)?{data:O,event:W}:null}function u(O){return!b(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function i(O){return O.substr(2).toLowerCase()}function d(O,W){O.appendChild(W)}function l(O,W,K){b(K)?d(O,W):O.insertBefore(W,K)}function s(O,W){return W?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function C(O,W,K){O.replaceChild(W,K)}function g(O,W){O.removeChild(W)}function v(O){for(var W=0;W0,Be=b(ie),Le=f(ie)&&ie[0]===R;Te||Be||Le?(K=K||W.slice(0,ee),(Te||Le)&&(te=J(te)),(Be||Le)&&(te.key=R+ee),K.push(te)):K&&K.push(te),te.flags|=65536}}K=K||W,K.length===0?Y=1:Y=8}else K=W,K.flags|=65536,W.flags&81920&&(K=J(W)),Y=2;return O.children=K,O.childFlags=Y,O}function Ie(O){return t(O)||e(O)?$(O,null):n(O)?z(O,0,null):O.flags&16384?J(O):O}var pe="http://www.w3.org/1999/xlink",oe="http://www.w3.org/XML/1998/namespace",Z={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":oe,"xml:lang":oe,"xml:space":oe};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=q(0),me=q(null),ne=q(!0);function be(O,W){var K=W.$EV;return K||(K=W.$EV=q(null)),K[O]||++ue[O]===1&&(me[O]=re(O)),K}function fe(O,W){var K=W.$EV;K&&K[O]&&(--ue[O]===0&&(document.removeEventListener(i(O),me[O]),me[O]=null),K[O]=null)}function ge(O,W,K,Y){if(o(K))be(O,Y)[O]=K;else if(u(K)){if(x(W,K))return;be(O,Y)[O]=K}else fe(O,Y)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ve(O,W,K,Y){var Q=ke(O);do{if(W&&Q.disabled)return;var ee=Q.$EV;if(ee){var te=ee[K];if(te&&(Y.dom=Q,te.event?te.event(te.data,O):te(O),O.cancelBubble))return}Q=Q.parentNode}while(!b(Q))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var W={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Se,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function K(){return W.dom}return K}()}),W}function We(O){return function(W){if(W.button!==0){W.stopPropagation();return}ve(W,!0,O,Oe(W))}}function Ve(O){return function(W){ve(W,!1,O,Oe(W))}}function re(O){var W=O==="onClick"||O==="onDblClick"?We(O):Ve(O);return document.addEventListener(i(O),W),W}function le(O,W){var K=document.createElement("i");return K.innerHTML=W,K.innerHTML===O.innerHTML}function Ce(O,W,K){if(O[W]){var Y=O[W];Y.event?Y.event(Y.data,K):Y(K)}else{var Q=W.toLowerCase();O[Q]&&O[Q](K)}}function de(O,W){var K=function(Q){var ee=this.$V;if(ee){var te=ee.props||c,ie=ee.dom;if(f(O))Ce(te,O,Q);else for(var Te=0;Te-1&&W.options[ee]&&(ie=W.options[ee].value),K&&a(ie)&&(ie=O.defaultValue),Ge(Y,ie)}}var Bt=de("onInput",pt),It=de("onChange");function Lt(O,W){Ne(O,"input",Bt),W.onChange&&Ne(O,"change",It)}function pt(O,W,K){var Y=O.value,Q=W.value;if(a(Y)){if(K){var ee=O.defaultValue;!a(ee)&&ee!==Q&&(W.defaultValue=ee,W.value=ee)}}else Q!==Y&&(W.defaultValue=Y,W.value=Y)}function wt(O,W,K,Y,Q,ee){O&64?Ke(Y,K):O&256?ft(Y,K,Q,W):O&128&&pt(Y,K,Q),ee&&(K.$V=W)}function Gt(O,W,K){O&64?Ue(W,K):O&256?St(W):O&128&&Lt(W,K)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!P(O,null)&&O.current&&(O.current=null)}function ot(O,W,K){O&&(o(O)||O.current!==void 0)&&K.push(function(){!P(O,W)&&O.current!==void 0&&(O.current=W)})}function Xe(O,W){Qe(O),y(O,W)}function Qe(O){var W=O.flags,K=O.children,Y;if(W&481){Y=O.ref;var Q=O.props;lt(Y);var ee=O.childFlags;if(!b(Q))for(var te=Object.keys(Q),ie=0,Te=te.length;ie0;te&&(ee=Tt(K),ee&&Gt(W,Y,K));for(var ie in K)ht(ie,null,K[ie],Y,Q,ee,null);te&&wt(W,O,Y,K,!0,ee)}function At(O,W,K){var Y=Ie(O.render(W,O.state,K)),Q=K;return o(O.getChildContext)&&(Q=k(K,O.getChildContext())),O.$CX=Q,Y}function Et(O,W,K,Y,Q,ee){var te=new W(K,Y),ie=te.$N=!!(W.getDerivedStateFromProps||te.getSnapshotBeforeUpdate);if(te.$SVG=Q,te.$L=ee,O.children=te,te.$BS=!1,te.context=Y,te.props===c&&(te.props=K),ie)te.state=I(te,K,te.state);else if(o(te.componentWillMount)){te.$BR=!0,te.componentWillMount();var Te=te.$PS;if(!b(Te)){var Be=te.state;if(b(Be))te.state=Te;else for(var Le in Te)Be[Le]=Te[Le];te.$PS=null}te.$BR=!1}return te.$LI=At(te,K,Y),te}function Ct(O,W){var K=O.props||c;return O.flags&32768?O.type.render(K,O.ref,W):O.type(K,W)}function He(O,W,K,Y,Q,ee){var te=O.flags|=16384;te&481?Pt(O,W,K,Y,Q,ee):te&4?nn(O,W,K,Y,Q,ee):te&8?(on(O,W,K,Y,Q,ee),Rt(O,ee)):te&512||te&16?Mt(O,W,Q):te&8192?tn(O,K,W,Y,Q,ee):te&1024&&en(O,K,W,Q,ee)}function en(O,W,K,Y,Q){He(O.children,O.ref,W,!1,null,Q);var ee=ae();Mt(ee,K,Y),O.dom=ee.dom}function tn(O,W,K,Y,Q,ee){var te=O.children,ie=O.childFlags;ie&12&&te.length===0&&(ie=O.childFlags=2,te=O.children=ae()),ie===2?He(te,K,W,Y,Q,ee):nt(te,K,W,Y,Q,ee)}function Mt(O,W,K){var Y=O.dom=document.createTextNode(O.children);b(W)||l(W,Y,K)}function Pt(O,W,K,Y,Q,ee){var te=O.flags,ie=O.props,Te=O.className,Be=O.childFlags,Le=O.dom=s(O.type,Y=Y||(te&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(Y?Le.setAttribute("class",Te):Le.className=Te),Be===16)A(Le,Ee);else if(Be!==1){var Pe=Y&&O.type!=="foreignObject";Be===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),He(Ee,Le,K,Pe,null,ee)):(Be===8||Be===4)&&nt(Ee,Le,K,Pe,null,ee)}b(W)||l(W,Le,Q),b(ie)||xt(O,te,ie,Le,Y),ot(O.ref,Le,ee)}function nt(O,W,K,Y,Q,ee){for(var te=0;tePe)&&(Le=V(te[Pe-1],!1).nextSibling)}vt(Te,Be,te,ie,K,Y,Q,Le,O,ee)}function sn(O,W,K,Y){var Q=O.ref,ee=W.ref,te=W.children;if(vt(O.childFlags,W.childFlags,O.children,te,Q,K,!1,null,O,Y),W.dom=O.dom,Q!==ee&&!t(te)){var ie=te.dom;g(Q,ie),d(ee,ie)}}function mn(O,W,K,Y,Q,ee){var te=W.dom=O.dom,ie=O.props,Te=W.props,Be=!1,Le=!1,Ee;if(Y=Y||(Q&32)>0,ie!==Te){var Pe=ie||c;if(Ee=Te||c,Ee!==c){Be=(Q&448)>0,Be&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],ze=Ee[Fe];Me!==ze&&ht(Fe,Me,ze,te,Y,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,te,Y,Le,O)}var et=W.children,Ye=W.className;O.className!==Ye&&(a(Ye)?te.removeAttribute("class"):Y?te.setAttribute("class",Ye):te.className=Ye),Q&4096?un(te,et):vt(O.childFlags,W.childFlags,O.children,et,te,K,Y&&W.type!=="foreignObject",null,O,ee),Be&&wt(Q,W,te,Ee,!1,Le);var at=W.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,te,ee))}function fn(O,W,K,Y,Q,ee){Qe(O),nt(W,K,Y,Q,V(O,!0),ee),y(O,K)}function vt(O,W,K,Y,Q,ee,te,ie,Te,Be){switch(O){case 2:switch(W){case 2:Ze(K,Y,Q,ee,te,ie,Be);break;case 1:Xe(K,Q);break;case 16:Qe(K),A(Q,Y);break;default:fn(K,Y,Q,ee,te,Be);break}break;case 1:switch(W){case 2:He(Y,Q,ee,te,ie,Be);break;case 1:break;case 16:A(Q,Y);break;default:nt(Y,Q,ee,te,ie,Be);break}break;case 16:switch(W){case 16:ln(K,Y,Q);break;case 2:ut(Q),He(Y,Q,ee,te,ie,Be);break;case 1:ut(Q);break;default:ut(Q),nt(Y,Q,ee,te,ie,Be);break}break;default:switch(W){case 16:rt(K),A(Q,Y);break;case 2:dt(Q,Te,K),He(Y,Q,ee,te,ie,Be);break;case 1:dt(Q,Te,K);break;default:var Le=K.length|0,Ee=Y.length|0;Le===0?Ee>0&&nt(Y,Q,ee,te,ie,Be):Ee===0?dt(Q,Te,K):W===8&&O===8?Nn(K,Y,Q,ee,te,Le,Ee,ie,Te,Be):gn(K,Y,Q,ee,te,Le,Ee,ie,Be);break}break}}function pn(O,W,K,Y,Q){Q.push(function(){O.componentDidUpdate(W,K,Y)})}function Dt(O,W,K,Y,Q,ee,te,ie,Te){var Be=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(W=I(O,K,W!==Be?k(Be,W):W)),te||!Pe||Pe&&O.shouldComponentUpdate(K,W,Q)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(K,W,Q),O.props=K,O.state=W,O.context=Q;var Fe=null,Me=At(O,K,Q);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Be)),Ze(O.$LI,Me,Y,O.$CX,ee,ie,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Be,Fe,Te)}else O.props=K,O.state=W,O.context=Q}function hn(O,W,K,Y,Q,ee,te){var ie=W.children=O.children;if(!b(ie)){ie.$L=te;var Te=W.props||c,Be=W.ref,Le=O.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,Y),ie.$UN)return;ie.$BR=!1}b(ie.$PS)||(Ee=k(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,K,Y,Q,!1,ee,te),Le!==Be&&(lt(Le),ot(Be,ie,te))}}function Cn(O,W,K,Y,Q,ee,te){var ie=!0,Te=W.props||c,Be=W.ref,Le=O.props,Ee=!a(Be),Pe=O.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ie=Be.onComponentShouldUpdate(Le,Te)),ie!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Le,Te);var Fe=Ie(Ct(W,Y));Ze(Pe,Fe,K,Y,Q,ee,te),W.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Le,Te)}else W.children=Pe}function vn(O,W){var K=W.children,Y=W.dom=O.dom;K!==O.children&&(Y.nodeValue=K)}function gn(O,W,K,Y,Q,ee,te,ie,Te){for(var Be=ee>te?te:ee,Le=0,Ee,Pe;Lete)for(Le=Be;LeLe||Pe>Ee)break e;Fe=O[Pe],Me=W[Pe]}for(Fe=O[Le],Me=W[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(W[Ee]=Me=J(Me)),Ze(Fe,Me,K,Y,Q,ie,Be),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=W[Ee]}}if(Pe>Le){if(Pe<=Ee)for(ze=Ee+1,Re=zeEe)for(;Pe<=Le;)Xe(O[Pe++],K);else Vn(O,W,Y,ee,te,Le,Ee,Pe,K,Q,ie,Te,Be)}function Vn(O,W,K,Y,Q,ee,te,ie,Te,Be,Le,Ee,Pe){var Fe,Me,ze,Re=0,et=ie,Ye=ie,at=ee-ie+1,Je=te-ie+1,ct=new Int32Array(Je+1),tt=at===Y,Vt=!1,$e=0,it=0;if(Q<4||(at|Je)<32)for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itie?Vt=!0:$e=ie,Me.flags&16384&&(W[ie]=Me=J(Me)),Ze(Fe,Me,Te,K,Be,Le,Pe),++it;break}!tt&&ie>te&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var Ht={};for(Re=Ye;Re<=te;++Re)Ht[W[Re].key]=Re;for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[ie-Ye]=Re+1,$e>ie?Vt=!0:$e=ie,Me=W[ie],Me.flags&16384&&(W[ie]=Me=J(Me)),Ze(Fe,Me,Te,K,Be,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(W,Te,K,Be,Le,Pe);else if(Vt){var zt=bn(ct);for(ie=zt.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=W[$e],Me.flags&16384&&(W[$e]=Me=J(Me)),ze=$e+1,He(Me,Te,K,Be,ze=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=W[$e],Me.flags&16384&&(W[$e]=Me=J(Me)),ze=$e+1,He(Me,Te,K,Be,zejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));K>1,O[qe[ie]]0&&(st[K]=qe[ee-1]),qe[ee]=K)}ee=Q+1;var Be=new Int32Array(ee);for(te=qe[ee-1];ee-- >0;)Be[ee]=te,te=st[te],qe[ee]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,W,K,Y){var Q=[],ee=W.$V;w.v=!0,a(ee)?a(O)||(O.flags&16384&&(O=J(O)),He(O,W,Y,!1,null,Q),W.$V=O,ee=O):a(O)?(Xe(ee,W),W.$V=null):(O.flags&16384&&(O=J(O)),Ze(ee,O,W,Y,!1,null,Q),ee=W.$V=O),v(Q),w.v=!1,o(K)&&K(),o(T.renderComplete)&&T.renderComplete(ee,W)}function Wt(O,W,K,Y){K===void 0&&(K=null),Y===void 0&&(Y=c),Ft(O,W,K,Y)}function kn(O){return function(){function W(K,Y,Q,ee){O||(O=K),Wt(Y,O,Q,ee)}return W}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,W,K,Y){var Q=O.$PS;if(o(W)&&(W=W(Q?k(O.state,Q):O.state,O.props,O.context)),a(Q))O.$PS=W;else for(var ee in W)Q[ee]=W[ee];if(O.$BR)o(K)&&O.$L.push(K.bind(O));else{if(!w.v&&mt.length===0){Kt(O,Y),o(K)&&K.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),Y&&(O.$F=!0),gt||(gt=!0,Sn(_t)),o(K)){var te=O.$QU;te||(te=O.$QU=[]),te.push(K)}}}function Bn(O){for(var W=O.$QU,K=0;K=0;--U){var _=this.tryEntries[U],$=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var z=a.call(_,"catchLoc"),G=a.call(_,"finallyLoc");if(z&&G){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(z){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else if(G){if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return M}(),abrupt:function(){function M(D,j){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===D)return this.complete(F.completion,F.afterLoc),x(F),l}}return M}(),catch:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===D){var U=F.completion;if(U.type==="throw"){var _=U.arg;x(F)}return _}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(D,j,F){return this.delegate={iterator:P(D),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),l}return M}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},11386:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function b(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:b,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return S}(),get:function(){function S(k){return a.getResponseHeader(k)}return S}(),has:function(){function S(k){return a.getResponseHeader(k)!=null}return S}()}}}return b}();for(var N in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(b,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(N,r.headers[N]);a.send(r.body||null)})})},72026:function(L,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(s,C){var g=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(g)return(g=g.call(s)).next.bind(g);if(Array.isArray(s)||(g=e(s))||C&&s&&typeof s.length=="number"){g&&(s=g);var v=0;return function(){return v>=s.length?{done:!0}:{done:!1,value:s[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(s,C){if(s){if(typeof s=="string")return a(s,C);var g=Object.prototype.toString.call(s).slice(8,-1);if(g==="Object"&&s.constructor&&(g=s.constructor.name),g==="Map"||g==="Set")return Array.from(s);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(s,C)}}function a(s,C){(C==null||C>s.length)&&(C=s.length);for(var g=0,v=new Array(C);g0&&(0,a.round)(h.width)/b.offsetWidth||1,c=b.offsetHeight>0&&(0,a.round)(h.height)/b.offsetHeight||1);var m=(0,e.isElement)(b)?(0,t.default)(b):window,i=m.visualViewport,d=!(0,o.default)()&&y,u=(h.left+(d&&i?i.offsetLeft:0))/l,s=(h.top+(d&&i?i.offsetTop:0))/c,C=h.width/l,g=h.height/c;return{width:C,height:g,top:s,right:u+C,bottom:s+g,left:u,x:u,y:s}}},98310:function(L,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(37802),a=d(n(63064)),t=d(n(16940)),o=d(n(88577)),f=d(n(29727)),N=d(n(9252)),b=d(n(75663)),S=n(65601),y=d(n(83199)),h=d(n(16292)),l=d(n(11848)),c=d(n(1707)),m=d(n(21194)),i=n(79257);function d(v){return v&&v.__esModule?v:{default:v}}function u(v,p){var V=(0,y.default)(v,!1,p==="fixed");return V.top=V.top+v.clientTop,V.left=V.left+v.clientLeft,V.bottom=V.top+v.clientHeight,V.right=V.left+v.clientWidth,V.width=v.clientWidth,V.height=v.clientHeight,V.x=V.left,V.y=V.top,V}function s(v,p,V){return p===e.viewport?(0,m.default)((0,a.default)(v,V)):(0,S.isElement)(p)?u(p,V):(0,m.default)((0,t.default)((0,N.default)(v)))}function C(v){var p=(0,o.default)((0,h.default)(v)),V=["absolute","fixed"].indexOf((0,b.default)(v).position)>=0,k=V&&(0,S.isHTMLElement)(v)?(0,f.default)(v):v;return(0,S.isElement)(k)?p.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,k)&&(0,c.default)(B)!=="body"}):[]}function g(v,p,V,k){var B=p==="clippingParents"?C(v):[].concat(p),I=[].concat(B,[V]),w=I[0],T=I.reduce(function(A,x){var E=s(v,x,k);return A.top=(0,i.max)(E.top,A.top),A.right=(0,i.min)(E.right,A.right),A.bottom=(0,i.min)(E.bottom,A.bottom),A.left=(0,i.max)(E.left,A.left),A},s(v,w,k));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=y(n(83199)),a=y(n(3107)),t=y(n(1707)),o=n(65601),f=y(n(94889)),N=y(n(9252)),b=y(n(27703)),S=n(79257);function y(c){return c&&c.__esModule?c:{default:c}}function h(c){var m=c.getBoundingClientRect(),i=(0,S.round)(m.width)/c.offsetWidth||1,d=(0,S.round)(m.height)/c.offsetHeight||1;return i!==1||d!==1}function l(c,m,i){i===void 0&&(i=!1);var d=(0,o.isHTMLElement)(m),u=(0,o.isHTMLElement)(m)&&h(m),s=(0,N.default)(m),C=(0,e.default)(c,u,i),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!i)&&(((0,t.default)(m)!=="body"||(0,b.default)(s))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(v=(0,e.default)(m,!0),v.x+=m.clientLeft,v.y+=m.clientTop):s&&(v.x=(0,f.default)(s))),{x:C.left+g.scrollLeft-v.x,y:C.top+g.scrollTop-v.y,width:C.width,height:C.height}}},75663:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},9252:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},16940:function(L,r,n){"use strict";r.__esModule=!0,r.default=b;var e=N(n(9252)),a=N(n(75663)),t=N(n(94889)),o=N(n(42532)),f=n(79257);function N(S){return S&&S.__esModule?S:{default:S}}function b(S){var y,h=(0,e.default)(S),l=(0,o.default)(S),c=(y=S.ownerDocument)==null?void 0:y.body,m=(0,f.max)(h.scrollWidth,h.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,f.max)(h.scrollHeight,h.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-l.scrollLeft+(0,t.default)(S),u=-l.scrollTop;return(0,a.default)(c||h).direction==="rtl"&&(d+=(0,f.max)(h.clientWidth,c?c.clientWidth:0)-m),{width:m,height:i,x:d,y:u}}},89741:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(83199));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=o.offsetWidth,b=o.offsetHeight;return Math.abs(f.width-N)<=1&&(N=f.width),Math.abs(f.height-b)<=1&&(b=f.height),{x:o.offsetLeft,y:o.offsetTop,width:N,height:b}}},1707:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(42532)),a=f(n(44901)),t=n(65601),o=f(n(89741));function f(b){return b&&b.__esModule?b:{default:b}}function N(b){return b===(0,a.default)(b)||!(0,t.isHTMLElement)(b)?(0,e.default)(b):(0,o.default)(b)}},29727:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(44901)),a=S(n(1707)),t=S(n(75663)),o=n(65601),f=S(n(36875)),N=S(n(16292)),b=S(n(88492));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function h(c){var m=/firefox/i.test((0,b.default)()),i=/Trident/i.test((0,b.default)());if(i&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var u=(0,N.default)(c);for((0,o.isShadowRoot)(u)&&(u=u.host);(0,o.isHTMLElement)(u)&&["html","body"].indexOf((0,a.default)(u))<0;){var s=(0,t.default)(u);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||m&&s.willChange==="filter"||m&&s.filter&&s.filter!=="none")return u;u=u.parentNode}return null}function l(c){for(var m=(0,e.default)(c),i=y(c);i&&(0,f.default)(i)&&(0,t.default)(i).position==="static";)i=y(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?m:i||h(c)||m}},16292:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)(N)==="html"?N:N.assignedSlot||N.parentNode||((0,t.isShadowRoot)(N)?N.host:null)||(0,a.default)(N)}},87899:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16292)),a=f(n(27703)),t=f(n(1707)),o=n(65601);function f(b){return b&&b.__esModule?b:{default:b}}function N(b){return["html","body","#document"].indexOf((0,t.default)(b))>=0?b.ownerDocument.body:(0,o.isHTMLElement)(b)&&(0,a.default)(b)?b:N((0,e.default)(b))}},63064:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(44901)),a=f(n(9252)),t=f(n(94889)),o=f(n(95294));function f(b){return b&&b.__esModule?b:{default:b}}function N(b,S){var y=(0,e.default)(b),h=(0,a.default)(b),l=y.visualViewport,c=h.clientWidth,m=h.clientHeight,i=0,d=0;if(l){c=l.width,m=l.height;var u=(0,o.default)();(u||!u&&S==="fixed")&&(i=l.offsetLeft,d=l.offsetTop)}return{width:c,height:m,x:i+(0,t.default)(b),y:d}}},44901:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},42532:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.pageXOffset,b=f.pageYOffset;return{scrollLeft:N,scrollTop:b}}},94889:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(83199)),a=o(n(9252)),t=o(n(42532));function o(N){return N&&N.__esModule?N:{default:N}}function f(N){return(0,e.default)((0,a.default)(N)).left+(0,t.default)(N).scrollLeft}},65601:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}function t(N){var b=(0,e.default)(N).Element;return N instanceof b||N instanceof Element}function o(N){var b=(0,e.default)(N).HTMLElement;return N instanceof b||N instanceof HTMLElement}function f(N){if(typeof ShadowRoot=="undefined")return!1;var b=(0,e.default)(N).ShadowRoot;return N instanceof b||N instanceof ShadowRoot}},95294:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(88492));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},27703:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(75663));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),N=f.overflow,b=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(N+S+b)}},36875:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1707));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},88577:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(87899)),a=f(n(16292)),t=f(n(44901)),o=f(n(27703));function f(b){return b&&b.__esModule?b:{default:b}}function N(b,S){var y;S===void 0&&(S=[]);var h=(0,e.default)(b),l=h===((y=b.ownerDocument)==null?void 0:y.body),c=(0,t.default)(h),m=l?[c].concat(c.visualViewport||[],(0,o.default)(h)?h:[]):h,i=S.concat(m);return l?i:i.concat(N((0,a.default)(m)))}},37802:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],N=r.start="start",b=r.end="end",S=r.clippingParents="clippingParents",y=r.viewport="viewport",h=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+N,I+"-"+b])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+N,I+"-"+b])},[]),i=r.beforeRead="beforeRead",d=r.read="read",u=r.afterRead="afterRead",s=r.beforeMain="beforeMain",C=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",p=r.write="write",V=r.afterWrite="afterWrite",k=r.modifierPhases=[i,d,u,s,C,g,v,p,V]},60028:function(L,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(37802);Object.keys(a).forEach(function(b){b==="default"||b==="__esModule"||Object.prototype.hasOwnProperty.call(e,b)||b in r&&r[b]===a[b]||(r[b]=a[b])});var t=n(16055);Object.keys(t).forEach(function(b){b==="default"||b==="__esModule"||Object.prototype.hasOwnProperty.call(e,b)||b in r&&r[b]===t[b]||(r[b]=t[b])});var o=n(15113);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(98420);r.createPopper=f.createPopper;var N=n(22008);r.createPopperLite=N.createPopper},20637:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(b){return b&&b.__esModule?b:{default:b}}function o(b){var S=b.state;Object.keys(S.elements).forEach(function(y){var h=S.styles[y]||{},l=S.attributes[y]||{},c=S.elements[y];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,h),Object.keys(l).forEach(function(m){var i=l[m];i===!1?c.removeAttribute(m):c.setAttribute(m,i===!0?"":i)}))})}function f(b){var S=b.state,y={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,y.popper),S.styles=y,S.elements.arrow&&Object.assign(S.elements.arrow.style,y.arrow),function(){Object.keys(S.elements).forEach(function(h){var l=S.elements[h],c=S.attributes[h]||{},m=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:y[h]),i=m.reduce(function(d,u){return d[u]="",d},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,i),Object.keys(c).forEach(function(d){l.removeAttribute(d)}))})}}var N=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},11106:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(16275)),a=h(n(12866)),t=h(n(11848)),o=h(n(29727)),f=h(n(26608)),N=n(87415),b=h(n(41e3)),S=h(n(62605)),y=n(37802);function h(d){return d&&d.__esModule?d:{default:d}}var l=function(){function d(u,s){return u=typeof u=="function"?u(Object.assign({},s.rects,{placement:s.placement})):u,(0,b.default)(typeof u!="number"?u:(0,S.default)(u,y.basePlacements))}return d}();function c(d){var u,s=d.state,C=d.name,g=d.options,v=s.elements.arrow,p=s.modifiersData.popperOffsets,V=(0,e.default)(s.placement),k=(0,f.default)(V),B=[y.left,y.right].indexOf(V)>=0,I=B?"height":"width";if(!(!v||!p)){var w=l(g.padding,s),T=(0,a.default)(v),A=k==="y"?y.top:y.left,x=k==="y"?y.bottom:y.right,E=s.rects.reference[I]+s.rects.reference[k]-p[k]-s.rects.popper[I],P=p[k]-s.rects.reference[k],R=(0,o.default)(v),M=R?k==="y"?R.clientHeight||0:R.clientWidth||0:0,D=E/2-P/2,j=w[A],F=M-T[I]-w[x],U=M/2-T[I]/2+D,_=(0,N.within)(j,U,F),$=k;s.modifiersData[C]=(u={},u[$]=_,u.centerOffset=_-U,u)}}function m(d){var u=d.state,s=d.options,C=s.element,g=C===void 0?"[data-popper-arrow]":C;g!=null&&(typeof g=="string"&&(g=u.elements.popper.querySelector(g),!g)||(0,t.default)(u.elements.popper,g)&&(u.elements.arrow=g))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(37802),a=y(n(29727)),t=y(n(44901)),o=y(n(9252)),f=y(n(75663)),N=y(n(16275)),b=y(n(56918)),S=n(79257);function y(d){return d&&d.__esModule?d:{default:d}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(d,u){var s=d.x,C=d.y,g=u.devicePixelRatio||1;return{x:(0,S.round)(s*g)/g||0,y:(0,S.round)(C*g)/g||0}}function c(d){var u,s=d.popper,C=d.popperRect,g=d.placement,v=d.variation,p=d.offsets,V=d.position,k=d.gpuAcceleration,B=d.adaptive,I=d.roundOffsets,w=d.isFixed,T=p.x,A=T===void 0?0:T,x=p.y,E=x===void 0?0:x,P=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var R=p.hasOwnProperty("x"),M=p.hasOwnProperty("y"),D=e.left,j=e.top,F=window;if(B){var U=(0,a.default)(s),_="clientHeight",$="clientWidth";if(U===(0,t.default)(s)&&(U=(0,o.default)(s),(0,f.default)(U).position!=="static"&&V==="absolute"&&(_="scrollHeight",$="scrollWidth")),U=U,g===e.top||(g===e.left||g===e.right)&&v===e.end){j=e.bottom;var z=w&&U===F&&F.visualViewport?F.visualViewport.height:U[_];E-=z-C.height,E*=k?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){D=e.right;var G=w&&U===F&&F.visualViewport?F.visualViewport.width:U[$];A-=G-C.width,A*=k?1:-1}}var H=Object.assign({position:V},B&&h),J=I===!0?l({x:A,y:E},(0,t.default)(s)):{x:A,y:E};if(A=J.x,E=J.y,k){var ae;return Object.assign({},H,(ae={},ae[j]=M?"0":"",ae[D]=R?"0":"",ae.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ae))}return Object.assign({},H,(u={},u[j]=M?E+"px":"",u[D]=R?A+"px":"",u.transform="",u))}function m(d){var u=d.state,s=d.options,C=s.gpuAcceleration,g=C===void 0?!0:C,v=s.adaptive,p=v===void 0?!0:v,V=s.roundOffsets,k=V===void 0?!0:V,B={placement:(0,N.default)(u.placement),variation:(0,b.default)(u.placement),popper:u.elements.popper,popperRect:u.rects.popper,gpuAcceleration:g,isFixed:u.options.strategy==="fixed"};u.modifiersData.popperOffsets!=null&&(u.styles.popper=Object.assign({},u.styles.popper,c(Object.assign({},B,{offsets:u.modifiersData.popperOffsets,position:u.options.strategy,adaptive:p,roundOffsets:k})))),u.modifiersData.arrow!=null&&(u.styles.arrow=Object.assign({},u.styles.arrow,c(Object.assign({},B,{offsets:u.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:k})))),u.attributes.popper=Object.assign({},u.attributes.popper,{"data-popper-placement":u.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},21068:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}var t={passive:!0};function o(N){var b=N.state,S=N.instance,y=N.options,h=y.scroll,l=h===void 0?!0:h,c=y.resize,m=c===void 0?!0:c,i=(0,e.default)(b.elements.popper),d=[].concat(b.scrollParents.reference,b.scrollParents.popper);return l&&d.forEach(function(u){u.addEventListener("scroll",S.update,t)}),m&&i.addEventListener("resize",S.update,t),function(){l&&d.forEach(function(u){u.removeEventListener("scroll",S.update,t)}),m&&i.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function N(){}return N}(),effect:o,data:{}}},51825:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(96346)),a=S(n(16275)),t=S(n(15022)),o=S(n(4709)),f=S(n(36705)),N=n(37802),b=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function y(c){if((0,a.default)(c)===N.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function h(c){var m=c.state,i=c.options,d=c.name;if(!m.modifiersData[d]._skip){for(var u=i.mainAxis,s=u===void 0?!0:u,C=i.altAxis,g=C===void 0?!0:C,v=i.fallbackPlacements,p=i.padding,V=i.boundary,k=i.rootBoundary,B=i.altBoundary,I=i.flipVariations,w=I===void 0?!0:I,T=i.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,P=v||(E||!w?[(0,e.default)(A)]:y(A)),R=[A].concat(P).reduce(function(Z,q){return Z.concat((0,a.default)(q)===N.auto?(0,f.default)(m,{placement:q,boundary:V,rootBoundary:k,padding:p,flipVariations:w,allowedAutoPlacements:T}):q)},[]),M=m.rects.reference,D=m.rects.popper,j=new Map,F=!0,U=R[0],_=0;_=0,J=H?"width":"height",ae=(0,o.default)(m,{placement:$,boundary:V,rootBoundary:k,altBoundary:B,padding:p}),ce=H?G?N.right:N.left:G?N.bottom:N.top;M[J]>D[J]&&(ce=(0,e.default)(ce));var se=(0,e.default)(ce),he=[];if(s&&he.push(ae[z]<=0),g&&he.push(ae[ce]<=0,ae[se]<=0),he.every(function(Z){return Z})){U=$,F=!1;break}j.set($,he)}if(F)for(var ye=w?3:1,Ie=function(){function Z(q){var ue=R.find(function(me){var ne=j.get(me);if(ne)return ne.slice(0,q).every(function(be){return be})});if(ue)return U=ue,"break"}return Z}(),pe=ye;pe>0;pe--){var oe=Ie(pe);if(oe==="break")break}m.placement!==U&&(m.modifiersData[d]._skip=!0,m.placement=U,m.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=t(n(4709));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,y,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-y.height-h.y,right:S.right-y.width+h.x,bottom:S.bottom-y.height+h.y,left:S.left-y.width-h.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(y){return S[y]>=0})}function N(S){var y=S.state,h=S.name,l=y.rects.reference,c=y.rects.popper,m=y.modifiersData.preventOverflow,i=(0,a.default)(y,{elementContext:"reference"}),d=(0,a.default)(y,{altBoundary:!0}),u=o(i,l),s=o(d,c,m),C=f(u),g=f(s);y.modifiersData[h]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:C,hasPopperEscaped:g},y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":g})}var b=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N}},16055:function(L,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=h(n(20637));r.applyStyles=e.default;var a=h(n(11106));r.arrow=a.default;var t=h(n(85445));r.computeStyles=t.default;var o=h(n(21068));r.eventListeners=o.default;var f=h(n(51825));r.flip=f.default;var N=h(n(44677));r.hide=N.default;var b=h(n(34331));r.offset=b.default;var S=h(n(56154));r.popperOffsets=S.default;var y=h(n(69770));r.preventOverflow=y.default;function h(l){return l&&l.__esModule?l:{default:l}}},34331:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(b){return b&&b.__esModule?b:{default:b}}function o(b,S,y){var h=(0,e.default)(b),l=[a.left,a.top].indexOf(h)>=0?-1:1,c=typeof y=="function"?y(Object.assign({},S,{placement:b})):y,m=c[0],i=c[1];return m=m||0,i=(i||0)*l,[a.left,a.right].indexOf(h)>=0?{x:i,y:m}:{x:m,y:i}}function f(b){var S=b.state,y=b.options,h=b.name,l=y.offset,c=l===void 0?[0,0]:l,m=a.placements.reduce(function(s,C){return s[C]=o(C,S.rects,c),s},{}),i=m[S.placement],d=i.x,u=i.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=d,S.modifiersData.popperOffsets.y+=u),S.modifiersData[h]=m}var N=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},56154:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(49306));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var N=f.state,b=f.name;N.modifiersData[b]=(0,e.default)({reference:N.rects.reference,element:N.rects.popper,strategy:"absolute",placement:N.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=c(n(16275)),t=c(n(26608)),o=c(n(49903)),f=n(87415),N=c(n(12866)),b=c(n(29727)),S=c(n(4709)),y=c(n(56918)),h=c(n(26143)),l=n(79257);function c(d){return d&&d.__esModule?d:{default:d}}function m(d){var u=d.state,s=d.options,C=d.name,g=s.mainAxis,v=g===void 0?!0:g,p=s.altAxis,V=p===void 0?!1:p,k=s.boundary,B=s.rootBoundary,I=s.altBoundary,w=s.padding,T=s.tether,A=T===void 0?!0:T,x=s.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(u,{boundary:k,rootBoundary:B,padding:w,altBoundary:I}),R=(0,a.default)(u.placement),M=(0,y.default)(u.placement),D=!M,j=(0,t.default)(R),F=(0,o.default)(j),U=u.modifiersData.popperOffsets,_=u.rects.reference,$=u.rects.popper,z=typeof E=="function"?E(Object.assign({},u.rects,{placement:u.placement})):E,G=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),H=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,J={x:0,y:0};if(U){if(v){var ae,ce=j==="y"?e.top:e.left,se=j==="y"?e.bottom:e.right,he=j==="y"?"height":"width",ye=U[j],Ie=ye+P[ce],pe=ye-P[se],oe=A?-$[he]/2:0,Z=M===e.start?_[he]:$[he],q=M===e.start?-$[he]:-_[he],ue=u.elements.arrow,me=A&&ue?(0,N.default)(ue):{width:0,height:0},ne=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:(0,h.default)(),be=ne[ce],fe=ne[se],ge=(0,f.within)(0,_[he],me[he]),ke=D?_[he]/2-oe-ge-be-G.mainAxis:Z-ge-be-G.mainAxis,ve=D?-_[he]/2+oe+ge+fe+G.mainAxis:q+ge+fe+G.mainAxis,Se=u.elements.arrow&&(0,b.default)(u.elements.arrow),we=Se?j==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(ae=H==null?void 0:H[j])!=null?ae:0,Oe=ye+ke-xe-we,We=ye+ve-xe,Ve=(0,f.within)(A?(0,l.min)(Ie,Oe):Ie,ye,A?(0,l.max)(pe,We):pe);U[j]=Ve,J[j]=Ve-ye}if(V){var re,le=j==="x"?e.top:e.left,Ce=j==="x"?e.bottom:e.right,de=U[F],Ne=F==="y"?"height":"width",Ae=de+P[le],De=de-P[Ce],je=[e.top,e.left].indexOf(R)!==-1,_e=(re=H==null?void 0:H[F])!=null?re:0,Ue=je?Ae:de-_[Ne]-$[Ne]-_e+G.altAxis,Ke=je?de+_[Ne]+$[Ne]-_e-G.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(Ue,de,Ke):(0,f.within)(A?Ue:Ae,de,A?Ke:De);U[F]=Ge,J[F]=Ge-de}u.modifiersData[C]=J}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},22008:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(15113);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=N(n(21068)),t=N(n(56154)),o=N(n(85445)),f=N(n(20637));function N(y){return y&&y.__esModule?y:{default:y}}var b=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:b})},98420:function(L,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(15113);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(21068)),o=i(n(56154)),f=i(n(85445)),N=i(n(20637)),b=i(n(34331)),S=i(n(51825)),y=i(n(69770)),h=i(n(11106)),l=i(n(44677)),c=n(22008);r.createPopperLite=c.createPopper;var m=n(16055);Object.keys(m).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(e,s)||s in r&&r[s]===m[s]||(r[s]=m[s])});function i(s){return s&&s.__esModule?s:{default:s}}var d=r.defaultModifiers=[t.default,o.default,f.default,N.default,b.default,S.default,y.default,h.default,l.default],u=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},36705:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(56918)),a=n(37802),t=f(n(4709)),o=f(n(16275));function f(b){return b&&b.__esModule?b:{default:b}}function N(b,S){S===void 0&&(S={});var y=S,h=y.placement,l=y.boundary,c=y.rootBoundary,m=y.padding,i=y.flipVariations,d=y.allowedAutoPlacements,u=d===void 0?a.placements:d,s=(0,e.default)(h),C=s?i?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===s}):a.basePlacements,g=C.filter(function(p){return u.indexOf(p)>=0});g.length===0&&(g=C);var v=g.reduce(function(p,V){return p[V]=(0,t.default)(b,{placement:V,boundary:l,rootBoundary:c,padding:m})[(0,o.default)(V)],p},{});return Object.keys(v).sort(function(p,V){return v[p]-v[V]})}},49306:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=f(n(16275)),a=f(n(56918)),t=f(n(26608)),o=n(37802);function f(b){return b&&b.__esModule?b:{default:b}}function N(b){var S=b.reference,y=b.element,h=b.placement,l=h?(0,e.default)(h):null,c=h?(0,a.default)(h):null,m=S.x+S.width/2-y.width/2,i=S.y+S.height/2-y.height/2,d;switch(l){case o.top:d={x:m,y:S.y-y.height};break;case o.bottom:d={x:m,y:S.y+S.height};break;case o.right:d={x:S.x+S.width,y:i};break;case o.left:d={x:S.x-y.width,y:i};break;default:d={x:S.x,y:S.y}}var u=l?(0,t.default)(l):null;if(u!=null){var s=u==="y"?"height":"width";switch(c){case o.start:d[u]=d[u]-(S[s]/2-y[s]/2);break;case o.end:d[u]=d[u]+(S[s]/2-y[s]/2);break;default:}}return d}},97902:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},4709:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=h(n(98310)),a=h(n(9252)),t=h(n(83199)),o=h(n(49306)),f=h(n(21194)),N=n(37802),b=n(65601),S=h(n(41e3)),y=h(n(62605));function h(c){return c&&c.__esModule?c:{default:c}}function l(c,m){m===void 0&&(m={});var i=m,d=i.placement,u=d===void 0?c.placement:d,s=i.strategy,C=s===void 0?c.strategy:s,g=i.boundary,v=g===void 0?N.clippingParents:g,p=i.rootBoundary,V=p===void 0?N.viewport:p,k=i.elementContext,B=k===void 0?N.popper:k,I=i.altBoundary,w=I===void 0?!1:I,T=i.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,y.default)(A,N.basePlacements)),E=B===N.popper?N.reference:N.popper,P=c.rects.popper,R=c.elements[w?E:B],M=(0,e.default)((0,b.isElement)(R)?R:R.contextElement||(0,a.default)(c.elements.popper),v,V,C),D=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:D,element:P,strategy:"absolute",placement:u}),F=(0,f.default)(Object.assign({},P,j)),U=B===N.popper?F:D,_={top:M.top-U.top+x.top,bottom:U.bottom-M.bottom+x.bottom,left:M.left-U.left+x.left,right:U.right-M.right+x.right},$=c.modifiersData.offset;if(B===N.popper&&$){var z=$[u];Object.keys(_).forEach(function(G){var H=[N.right,N.bottom].indexOf(G)>=0?1:-1,J=[N.top,N.bottom].indexOf(G)>=0?"y":"x";_[G]+=z[J]*H})}return _}},62605:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},49903:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},15022:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},56918:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(L,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},57547:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},41e3:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(26143));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},13657:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var f=new Map,N=new Set,b=[];o.forEach(function(y){f.set(y.name,y)});function S(y){N.add(y.name);var h=[].concat(y.requires||[],y.requiresIfExists||[]);h.forEach(function(l){if(!N.has(l)){var c=f.get(l);c&&S(c)}}),b.push(y)}return o.forEach(function(y){N.has(y.name)||S(y)}),b}function t(o){var f=a(o);return e.modifierPhases.reduce(function(N,b){return N.concat(f.filter(function(S){return S.phase===b}))},[])}},21194:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},88492:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},87415:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,f,N){return(0,e.max)(o,(0,e.min)(f,N))}function t(o,f,N){var b=a(o,f,N);return b>N?N:b}},60208:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Ie,r._M=He,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=Ct,r.__render=Ft,r.createComponentVNode=_,r.createFragment=z,r.createPortal=ce,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=$,r.createVNode=D,r.directClone=J,r.findDOMfromVNode=V,r.forwardRef=Xt,r.getFlagsForElementVnode=he,r.linkEvent=h,r.normalizeProps=G,r.options=void 0,r.render=Wt,r.rerender=_t,r.version=void 0;var n=Array.isArray;function e(O){var W=typeof O;return W==="string"||W==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function N(O){return typeof O=="number"}function b(O){return O===null}function S(O){return O===void 0}function y(O,W){var K={};if(O)for(var Y in O)K[Y]=O[Y];if(W)for(var Q in W)K[Q]=W[Q];return K}function h(O,W){return o(W)?{data:O,event:W}:null}function l(O){return!b(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function i(O){return O.substr(2).toLowerCase()}function d(O,W){O.appendChild(W)}function u(O,W,K){b(K)?d(O,W):O.insertBefore(W,K)}function s(O,W){return W?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function C(O,W,K){O.replaceChild(W,K)}function g(O,W){O.removeChild(W)}function v(O){for(var W=0;W0,Be=b(ie),Le=f(ie)&&ie[0]===R;Te||Be||Le?(K=K||W.slice(0,ee),(Te||Le)&&(te=J(te)),(Be||Le)&&(te.key=R+ee),K.push(te)):K&&K.push(te),te.flags|=65536}}K=K||W,K.length===0?Y=1:Y=8}else K=W,K.flags|=65536,W.flags&81920&&(K=J(W)),Y=2;return O.children=K,O.childFlags=Y,O}function Ie(O){return t(O)||e(O)?$(O,null):n(O)?z(O,0,null):O.flags&16384?J(O):O}var pe="http://www.w3.org/1999/xlink",oe="http://www.w3.org/XML/1998/namespace",Z={"xlink:actuate":pe,"xlink:arcrole":pe,"xlink:href":pe,"xlink:role":pe,"xlink:show":pe,"xlink:title":pe,"xlink:type":pe,"xml:base":oe,"xml:lang":oe,"xml:space":oe};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=q(0),me=q(null),ne=q(!0);function be(O,W){var K=W.$EV;return K||(K=W.$EV=q(null)),K[O]||++ue[O]===1&&(me[O]=re(O)),K}function fe(O,W){var K=W.$EV;K&&K[O]&&(--ue[O]===0&&(document.removeEventListener(i(O),me[O]),me[O]=null),K[O]=null)}function ge(O,W,K,Y){if(o(K))be(O,Y)[O]=K;else if(l(K)){if(x(W,K))return;be(O,Y)[O]=K}else fe(O,Y)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ve(O,W,K,Y){var Q=ke(O);do{if(W&&Q.disabled)return;var ee=Q.$EV;if(ee){var te=ee[K];if(te&&(Y.dom=Q,te.event?te.event(te.data,O):te(O),O.cancelBubble))return}Q=Q.parentNode}while(!b(Q))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var W={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Se,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function K(){return W.dom}return K}()}),W}function We(O){return function(W){if(W.button!==0){W.stopPropagation();return}ve(W,!0,O,Oe(W))}}function Ve(O){return function(W){ve(W,!1,O,Oe(W))}}function re(O){var W=O==="onClick"||O==="onDblClick"?We(O):Ve(O);return document.addEventListener(i(O),W),W}function le(O,W){var K=document.createElement("i");return K.innerHTML=W,K.innerHTML===O.innerHTML}function Ce(O,W,K){if(O[W]){var Y=O[W];Y.event?Y.event(Y.data,K):Y(K)}else{var Q=W.toLowerCase();O[Q]&&O[Q](K)}}function de(O,W){var K=function(Q){var ee=this.$V;if(ee){var te=ee.props||c,ie=ee.dom;if(f(O))Ce(te,O,Q);else for(var Te=0;Te-1&&W.options[ee]&&(ie=W.options[ee].value),K&&a(ie)&&(ie=O.defaultValue),Ge(Y,ie)}}var Bt=de("onInput",pt),It=de("onChange");function Lt(O,W){Ne(O,"input",Bt),W.onChange&&Ne(O,"change",It)}function pt(O,W,K){var Y=O.value,Q=W.value;if(a(Y)){if(K){var ee=O.defaultValue;!a(ee)&&ee!==Q&&(W.defaultValue=ee,W.value=ee)}}else Q!==Y&&(W.defaultValue=Y,W.value=Y)}function wt(O,W,K,Y,Q,ee){O&64?Ke(Y,K):O&256?ft(Y,K,Q,W):O&128&&pt(Y,K,Q),ee&&(K.$V=W)}function Gt(O,W,K){O&64?Ue(W,K):O&256?St(W):O&128&&Lt(W,K)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!P(O,null)&&O.current&&(O.current=null)}function ot(O,W,K){O&&(o(O)||O.current!==void 0)&&K.push(function(){!P(O,W)&&O.current!==void 0&&(O.current=W)})}function Xe(O,W){Qe(O),k(O,W)}function Qe(O){var W=O.flags,K=O.children,Y;if(W&481){Y=O.ref;var Q=O.props;lt(Y);var ee=O.childFlags;if(!b(Q))for(var te=Object.keys(Q),ie=0,Te=te.length;ie0;te&&(ee=Tt(K),ee&&Gt(W,Y,K));for(var ie in K)ht(ie,null,K[ie],Y,Q,ee,null);te&&wt(W,O,Y,K,!0,ee)}function At(O,W,K){var Y=Ie(O.render(W,O.state,K)),Q=K;return o(O.getChildContext)&&(Q=y(K,O.getChildContext())),O.$CX=Q,Y}function Et(O,W,K,Y,Q,ee){var te=new W(K,Y),ie=te.$N=!!(W.getDerivedStateFromProps||te.getSnapshotBeforeUpdate);if(te.$SVG=Q,te.$L=ee,O.children=te,te.$BS=!1,te.context=Y,te.props===c&&(te.props=K),ie)te.state=I(te,K,te.state);else if(o(te.componentWillMount)){te.$BR=!0,te.componentWillMount();var Te=te.$PS;if(!b(Te)){var Be=te.state;if(b(Be))te.state=Te;else for(var Le in Te)Be[Le]=Te[Le];te.$PS=null}te.$BR=!1}return te.$LI=At(te,K,Y),te}function Ct(O,W){var K=O.props||c;return O.flags&32768?O.type.render(K,O.ref,W):O.type(K,W)}function He(O,W,K,Y,Q,ee){var te=O.flags|=16384;te&481?Pt(O,W,K,Y,Q,ee):te&4?nn(O,W,K,Y,Q,ee):te&8?(on(O,W,K,Y,Q,ee),Rt(O,ee)):te&512||te&16?Mt(O,W,Q):te&8192?tn(O,K,W,Y,Q,ee):te&1024&&en(O,K,W,Q,ee)}function en(O,W,K,Y,Q){He(O.children,O.ref,W,!1,null,Q);var ee=ae();Mt(ee,K,Y),O.dom=ee.dom}function tn(O,W,K,Y,Q,ee){var te=O.children,ie=O.childFlags;ie&12&&te.length===0&&(ie=O.childFlags=2,te=O.children=ae()),ie===2?He(te,K,W,Y,Q,ee):nt(te,K,W,Y,Q,ee)}function Mt(O,W,K){var Y=O.dom=document.createTextNode(O.children);b(W)||u(W,Y,K)}function Pt(O,W,K,Y,Q,ee){var te=O.flags,ie=O.props,Te=O.className,Be=O.childFlags,Le=O.dom=s(O.type,Y=Y||(te&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(Y?Le.setAttribute("class",Te):Le.className=Te),Be===16)A(Le,Ee);else if(Be!==1){var Pe=Y&&O.type!=="foreignObject";Be===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),He(Ee,Le,K,Pe,null,ee)):(Be===8||Be===4)&&nt(Ee,Le,K,Pe,null,ee)}b(W)||u(W,Le,Q),b(ie)||xt(O,te,ie,Le,Y),ot(O.ref,Le,ee)}function nt(O,W,K,Y,Q,ee){for(var te=0;tePe)&&(Le=V(te[Pe-1],!1).nextSibling)}vt(Te,Be,te,ie,K,Y,Q,Le,O,ee)}function sn(O,W,K,Y){var Q=O.ref,ee=W.ref,te=W.children;if(vt(O.childFlags,W.childFlags,O.children,te,Q,K,!1,null,O,Y),W.dom=O.dom,Q!==ee&&!t(te)){var ie=te.dom;g(Q,ie),d(ee,ie)}}function mn(O,W,K,Y,Q,ee){var te=W.dom=O.dom,ie=O.props,Te=W.props,Be=!1,Le=!1,Ee;if(Y=Y||(Q&32)>0,ie!==Te){var Pe=ie||c;if(Ee=Te||c,Ee!==c){Be=(Q&448)>0,Be&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],ze=Ee[Fe];Me!==ze&&ht(Fe,Me,ze,te,Y,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,te,Y,Le,O)}var et=W.children,Ye=W.className;O.className!==Ye&&(a(Ye)?te.removeAttribute("class"):Y?te.setAttribute("class",Ye):te.className=Ye),Q&4096?un(te,et):vt(O.childFlags,W.childFlags,O.children,et,te,K,Y&&W.type!=="foreignObject",null,O,ee),Be&&wt(Q,W,te,Ee,!1,Le);var at=W.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,te,ee))}function fn(O,W,K,Y,Q,ee){Qe(O),nt(W,K,Y,Q,V(O,!0),ee),k(O,K)}function vt(O,W,K,Y,Q,ee,te,ie,Te,Be){switch(O){case 2:switch(W){case 2:Ze(K,Y,Q,ee,te,ie,Be);break;case 1:Xe(K,Q);break;case 16:Qe(K),A(Q,Y);break;default:fn(K,Y,Q,ee,te,Be);break}break;case 1:switch(W){case 2:He(Y,Q,ee,te,ie,Be);break;case 1:break;case 16:A(Q,Y);break;default:nt(Y,Q,ee,te,ie,Be);break}break;case 16:switch(W){case 16:ln(K,Y,Q);break;case 2:ut(Q),He(Y,Q,ee,te,ie,Be);break;case 1:ut(Q);break;default:ut(Q),nt(Y,Q,ee,te,ie,Be);break}break;default:switch(W){case 16:rt(K),A(Q,Y);break;case 2:dt(Q,Te,K),He(Y,Q,ee,te,ie,Be);break;case 1:dt(Q,Te,K);break;default:var Le=K.length|0,Ee=Y.length|0;Le===0?Ee>0&&nt(Y,Q,ee,te,ie,Be):Ee===0?dt(Q,Te,K):W===8&&O===8?Nn(K,Y,Q,ee,te,Le,Ee,ie,Te,Be):gn(K,Y,Q,ee,te,Le,Ee,ie,Be);break}break}}function pn(O,W,K,Y,Q){Q.push(function(){O.componentDidUpdate(W,K,Y)})}function Dt(O,W,K,Y,Q,ee,te,ie,Te){var Be=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(W=I(O,K,W!==Be?y(Be,W):W)),te||!Pe||Pe&&O.shouldComponentUpdate(K,W,Q)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(K,W,Q),O.props=K,O.state=W,O.context=Q;var Fe=null,Me=At(O,K,Q);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Be)),Ze(O.$LI,Me,Y,O.$CX,ee,ie,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Be,Fe,Te)}else O.props=K,O.state=W,O.context=Q}function hn(O,W,K,Y,Q,ee,te){var ie=W.children=O.children;if(!b(ie)){ie.$L=te;var Te=W.props||c,Be=W.ref,Le=O.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,Y),ie.$UN)return;ie.$BR=!1}b(ie.$PS)||(Ee=y(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,K,Y,Q,!1,ee,te),Le!==Be&&(lt(Le),ot(Be,ie,te))}}function Cn(O,W,K,Y,Q,ee,te){var ie=!0,Te=W.props||c,Be=W.ref,Le=O.props,Ee=!a(Be),Pe=O.children;if(Ee&&o(Be.onComponentShouldUpdate)&&(ie=Be.onComponentShouldUpdate(Le,Te)),ie!==!1){Ee&&o(Be.onComponentWillUpdate)&&Be.onComponentWillUpdate(Le,Te);var Fe=Ie(Ct(W,Y));Ze(Pe,Fe,K,Y,Q,ee,te),W.children=Fe,Ee&&o(Be.onComponentDidUpdate)&&Be.onComponentDidUpdate(Le,Te)}else W.children=Pe}function vn(O,W){var K=W.children,Y=W.dom=O.dom;K!==O.children&&(Y.nodeValue=K)}function gn(O,W,K,Y,Q,ee,te,ie,Te){for(var Be=ee>te?te:ee,Le=0,Ee,Pe;Lete)for(Le=Be;LeLe||Pe>Ee)break e;Fe=O[Pe],Me=W[Pe]}for(Fe=O[Le],Me=W[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(W[Ee]=Me=J(Me)),Ze(Fe,Me,K,Y,Q,ie,Be),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=W[Ee]}}if(Pe>Le){if(Pe<=Ee)for(ze=Ee+1,Re=zeEe)for(;Pe<=Le;)Xe(O[Pe++],K);else Vn(O,W,Y,ee,te,Le,Ee,Pe,K,Q,ie,Te,Be)}function Vn(O,W,K,Y,Q,ee,te,ie,Te,Be,Le,Ee,Pe){var Fe,Me,ze,Re=0,et=ie,Ye=ie,at=ee-ie+1,Je=te-ie+1,ct=new Int32Array(Je+1),tt=at===Y,Vt=!1,$e=0,it=0;if(Q<4||(at|Je)<32)for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itie?Vt=!0:$e=ie,Me.flags&16384&&(W[ie]=Me=J(Me)),Ze(Fe,Me,Te,K,Be,Le,Pe),++it;break}!tt&&ie>te&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var Ht={};for(Re=Ye;Re<=te;++Re)Ht[W[Re].key]=Re;for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[ie-Ye]=Re+1,$e>ie?Vt=!0:$e=ie,Me=W[ie],Me.flags&16384&&(W[ie]=Me=J(Me)),Ze(Fe,Me,Te,K,Be,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(W,Te,K,Be,Le,Pe);else if(Vt){var zt=bn(ct);for(ie=zt.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=W[$e],Me.flags&16384&&(W[$e]=Me=J(Me)),ze=$e+1,He(Me,Te,K,Be,ze=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=W[$e],Me.flags&16384&&(W[$e]=Me=J(Me)),ze=$e+1,He(Me,Te,K,Be,zejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));K>1,O[qe[ie]]0&&(st[K]=qe[ee-1]),qe[ee]=K)}ee=Q+1;var Be=new Int32Array(ee);for(te=qe[ee-1];ee-- >0;)Be[ee]=te,te=st[te],qe[ee]=0;return Be}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,W,K,Y){var Q=[],ee=W.$V;w.v=!0,a(ee)?a(O)||(O.flags&16384&&(O=J(O)),He(O,W,Y,!1,null,Q),W.$V=O,ee=O):a(O)?(Xe(ee,W),W.$V=null):(O.flags&16384&&(O=J(O)),Ze(ee,O,W,Y,!1,null,Q),ee=W.$V=O),v(Q),w.v=!1,o(K)&&K(),o(T.renderComplete)&&T.renderComplete(ee,W)}function Wt(O,W,K,Y){K===void 0&&(K=null),Y===void 0&&(Y=c),Ft(O,W,K,Y)}function kn(O){return function(){function W(K,Y,Q,ee){O||(O=K),Wt(Y,O,Q,ee)}return W}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,W,K,Y){var Q=O.$PS;if(o(W)&&(W=W(Q?y(O.state,Q):O.state,O.props,O.context)),a(Q))O.$PS=W;else for(var ee in W)Q[ee]=W[ee];if(O.$BR)o(K)&&O.$L.push(K.bind(O));else{if(!w.v&&mt.length===0){Kt(O,Y),o(K)&&K.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),Y&&(O.$F=!0),gt||(gt=!0,Sn(_t)),o(K)){var te=O.$QU;te||(te=O.$QU=[]),te.push(K)}}}function Bn(O){for(var W=O.$QU,K=0;K=0;--U){var _=this.tryEntries[U],$=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var z=a.call(_,"catchLoc"),G=a.call(_,"finallyLoc");if(z&&G){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(z){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else if(G){if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return M}(),abrupt:function(){function M(D,j){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===D)return this.complete(F.completion,F.afterLoc),x(F),u}}return M}(),catch:function(){function M(D){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===D){var U=F.completion;if(U.type==="throw"){var _=U.arg;x(F)}return _}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(D,j,F){return this.delegate={iterator:P(D),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),u}return M}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},11386:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function b(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:b,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(y){return[y,a.getResponseHeader(y)]})}return S}(),get:function(){function S(y){return a.getResponseHeader(y)}return S}(),has:function(){function S(y){return a.getResponseHeader(y)!=null}return S}()}}}return b}();for(var N in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(b,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(N,r.headers[N]);a.send(r.body||null)})})},72026:function(L,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(s,C){var g=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(g)return(g=g.call(s)).next.bind(g);if(Array.isArray(s)||(g=e(s))||C&&s&&typeof s.length=="number"){g&&(s=g);var v=0;return function(){return v>=s.length?{done:!0}:{done:!1,value:s[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(s,C){if(s){if(typeof s=="string")return a(s,C);var g=Object.prototype.toString.call(s).slice(8,-1);if(g==="Object"&&s.constructor&&(g=s.constructor.name),g==="Map"||g==="Set")return Array.from(s);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(s,C)}}function a(s,C){(C==null||C>s.length)&&(C=s.length);for(var g=0,v=new Array(C);gI)return 1}return 0},k=r.sortBy=function(){function s(){for(var C=arguments.length,g=new Array(C),v=0;vI)return 1}return 0},y=r.sortBy=function(){function s(){for(var C=arguments.length,g=new Array(C),v=0;v1?N-1:0),S=1;S1?N-1:0),S=1;S1?S-1:0),h=1;h1?k-1:0),u=1;u1?S-1:0),h=1;h1?y-1:0),l=1;lu?u:k}return S}(),e=r.clamp01=function(){function S(k){return k<0?0:k>1?1:k}return S}(),a=r.scale=function(){function S(k,h,u){return(k-h)/(u-h)}return S}(),t=r.round=function(){function S(k,h){if(!k||isNaN(k))return k;var u,c,m,i;return h|=0,u=Math.pow(10,h),k*=u,i=k>0|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(i>0)),(m?k:Math.round(k))/u}return S}(),o=r.toFixed=function(){function S(k,h){return h===void 0&&(h=0),Number(k).toFixed(Math.max(h,0))}return S}(),f=r.inRange=function(){function S(k,h){return h&&k>=h[0]&&k<=h[1]}return S}(),N=r.keyOfMatchingRange=function(){function S(k,h){for(var u=0,c=Object.keys(h);ul?l:y}return S}(),e=r.clamp01=function(){function S(y){return y<0?0:y>1?1:y}return S}(),a=r.scale=function(){function S(y,h,l){return(y-h)/(l-h)}return S}(),t=r.round=function(){function S(y,h){if(!y||isNaN(y))return y;var l,c,m,i;return h|=0,l=Math.pow(10,h),y*=l,i=y>0|-(y<0),m=Math.abs(y%1)>=.4999999999854481,c=Math.floor(y),m&&(y=c+(i>0)),(m?y:Math.round(y))/l}return S}(),o=r.toFixed=function(){function S(y,h){return h===void 0&&(h=0),Number(y).toFixed(Math.max(h,0))}return S}(),f=r.inRange=function(){function S(y,h){return h&&y>=h[0]&&y<=h[1]}return S}(),N=r.keyOfMatchingRange=function(){function S(y,h){for(var l=0,c=Object.keys(h);l1?i-1:0),l=1;l1?y-1:0),I=1;I=0;--me){var ne=this.tryEntries[me],be=ne.completion;if(ne.tryLoc==="root")return ue("end");if(ne.tryLoc<=this.prev){var fe=V.call(ne,"catchLoc"),ge=V.call(ne,"finallyLoc");if(fe&&ge){if(this.prev=0;--ue){var me=this.tryEntries[ue];if(me.tryLoc<=this.prev&&V.call(me,"finallyLoc")&&this.prev=0;--q){var ue=this.tryEntries[q];if(ue.finallyLoc===Z)return this.complete(ue.completion,ue.afterLoc),ye(ue),j}}return oe}(),catch:function(){function oe(Z){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.tryLoc===Z){var me=ue.completion;if(me.type==="throw"){var ne=me.arg;ye(ue)}return ne}}throw new Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(Z,q,ue){return this.delegate={iterator:pe(Z),resultName:q,nextLoc:ue},this.method==="next"&&(this.arg=g),j}return oe}()},v}function e(g,v,p,V,y,B,I){try{var w=g[B](I),T=w.value}catch(A){p(A);return}w.done?v(T):Promise.resolve(T).then(V,y)}function a(g){return function(){var v=this,p=arguments;return new Promise(function(V,y){var B=g.apply(v,p);function I(T){e(B,V,y,I,w,"next",T)}function w(T){e(B,V,y,I,w,"throw",T)}I(void 0)})}}/** + */var a=r.createStore=function(){function S(y,h){if(h)return h(S)(y);var l,c=[],m=function(){function u(){return l}return u}(),i=function(){function u(s){c.push(s)}return u}(),d=function(){function u(s){l=y(l,s);for(var C=0;C1?i-1:0),u=1;u1?k-1:0),I=1;I=0;--me){var ne=this.tryEntries[me],be=ne.completion;if(ne.tryLoc==="root")return ue("end");if(ne.tryLoc<=this.prev){var fe=V.call(ne,"catchLoc"),ge=V.call(ne,"finallyLoc");if(fe&&ge){if(this.prev=0;--ue){var me=this.tryEntries[ue];if(me.tryLoc<=this.prev&&V.call(me,"finallyLoc")&&this.prev=0;--q){var ue=this.tryEntries[q];if(ue.finallyLoc===Z)return this.complete(ue.completion,ue.afterLoc),ye(ue),j}}return oe}(),catch:function(){function oe(Z){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.tryLoc===Z){var me=ue.completion;if(me.type==="throw"){var ne=me.arg;ye(ue)}return ne}}throw new Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(Z,q,ue){return this.delegate={iterator:pe(Z),resultName:q,nextLoc:ue},this.method==="next"&&(this.arg=g),j}return oe}()},v}function e(g,v,p,V,k,B,I){try{var w=g[B](I),T=w.value}catch(A){p(A);return}w.done?v(T):Promise.resolve(T).then(V,k)}function a(g){return function(){var v=this,p=arguments;return new Promise(function(V,k){var B=g.apply(v,p);function I(T){e(B,V,k,I,w,"next",T)}function w(T){e(B,V,k,I,w,"throw",T)}I(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_LOCAL_STORAGE=1,f=r.IMPL_INDEXED_DB=2,N=1,b="para-tgui",S="storage-v1",k="readonly",h="readwrite",u=function(v){return function(){try{return!!v()}catch(p){return!1}}},c=u(function(){return window.localStorage&&window.localStorage.getItem}),m=u(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),i=function(){function g(){this.impl=t,this.store={}}var v=g.prototype;return v.get=function(){function p(V){return this.store[V]}return p}(),v.set=function(){function p(V,y){this.store[V]=y}return p}(),v.remove=function(){function p(V){this.store[V]=void 0}return p}(),v.clear=function(){function p(){this.store={}}return p}(),g}(),d=function(){function g(){this.impl=o}var v=g.prototype;return v.get=function(){function p(V){var y=localStorage.getItem(V);if(typeof y=="string")return JSON.parse(y)}return p}(),v.set=function(){function p(V,y){localStorage.setItem(V,JSON.stringify(y))}return p}(),v.remove=function(){function p(V){localStorage.removeItem(V)}return p}(),v.clear=function(){function p(){localStorage.clear()}return p}(),g}(),l=function(){function g(){this.impl=f,this.dbPromise=new Promise(function(p,V){var y=window.indexedDB||window.msIndexedDB,B=y.open(b,N);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(I){V(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return p(B.result)},B.onerror=function(){V(new Error("Failed to open IDB: "+B.error))}})}var v=g.prototype;return v.getStore=function(){function p(V){return this.dbPromise.then(function(y){return y.transaction(S,V).objectStore(S)})}return p}(),v.get=function(){var p=a(n().mark(function(){function y(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(k);case 2:return I=T.sent,T.abrupt("return",new Promise(function(A,x){var E=I.get(B);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return T.stop()}}return w}(),y,this)}return y}()));function V(y){return p.apply(this,arguments)}return V}(),v.set=function(){var p=a(n().mark(function(){function y(B,I){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return I===null&&(I=void 0),A.next=3,this.getStore(h);case 3:w=A.sent,w.put(I,B);case 5:case"end":return A.stop()}}return T}(),y,this)}return y}()));function V(y,B){return p.apply(this,arguments)}return V}(),v.remove=function(){var p=a(n().mark(function(){function y(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(h);case 2:I=T.sent,I.delete(B);case 4:case"end":return T.stop()}}return w}(),y,this)}return y}()));function V(y){return p.apply(this,arguments)}return V}(),v.clear=function(){var p=a(n().mark(function(){function y(){var B;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(h);case 2:B=w.sent,B.clear();case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function V(){return p.apply(this,arguments)}return V}(),g}(),s=function(){function g(){this.backendPromise=a(n().mark(function(){function p(){var V;return n().wrap(function(){function y(B){for(;;)switch(B.prev=B.next){case 0:if(!m()){B.next=10;break}return B.prev=1,V=new l,B.next=5,V.dbPromise;case 5:return B.abrupt("return",V);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!c()){B.next=12;break}return B.abrupt("return",new d);case 12:return B.abrupt("return",new i);case 13:case"end":return B.stop()}}return y}(),p,null,[[1,8]])}return p}()))()}var v=g.prototype;return v.get=function(){var p=a(n().mark(function(){function y(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.get(B));case 4:case"end":return T.stop()}}return w}(),y,this)}return y}()));function V(y){return p.apply(this,arguments)}return V}(),v.set=function(){var p=a(n().mark(function(){function y(B,I){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return w=A.sent,A.abrupt("return",w.set(B,I));case 4:case"end":return A.stop()}}return T}(),y,this)}return y}()));function V(y,B){return p.apply(this,arguments)}return V}(),v.remove=function(){var p=a(n().mark(function(){function y(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.remove(B));case 4:case"end":return T.stop()}}return w}(),y,this)}return y}()));function V(y){return p.apply(this,arguments)}return V}(),v.clear=function(){var p=a(n().mark(function(){function y(){var B;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.clear());case 4:case"end":return w.stop()}}return I}(),y,this)}return y}()));function V(){return p.apply(this,arguments)}return V}(),g}(),C=r.storage=new s},37843:function(L,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(h,u){var c=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(c)return(c=c.call(h)).next.bind(c);if(Array.isArray(h)||(c=e(h))||u&&h&&typeof h.length=="number"){c&&(h=c);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(h,u){if(h){if(typeof h=="string")return a(h,u);var c=Object.prototype.toString.call(h).slice(8,-1);if(c==="Object"&&h.constructor&&(c=h.constructor.name),c==="Map"||c==="Set")return Array.from(h);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(h,u)}}function a(h,u){(u==null||u>h.length)&&(u=h.length);for(var c=0,m=new Array(u);c=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(h,l){if(h){if(typeof h=="string")return a(h,l);var c=Object.prototype.toString.call(h).slice(8,-1);if(c==="Object"&&h.constructor&&(c=h.constructor.name),c==="Map"||c==="Set")return Array.from(h);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(h,l)}}function a(h,l){(l==null||l>h.length)&&(l=h.length);for(var c=0,m=new Array(l);c",apos:"'"};return u.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(i,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(i,d){var l=parseInt(d,10);return String.fromCharCode(l)}).replace(/&#x?([0-9a-f]+);/gi,function(i,d){var l=parseInt(d,16);return String.fromCharCode(l)})}return h}(),k=r.buildQueryString=function(){function h(u){return Object.keys(u).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(u[c])}).join("&")}return h}()},32742:function(L,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function h(l){if(Array.isArray(l))return h(l.join(""));for(var c=l.split("\n"),m,i=n(c),d;!(d=i()).done;)for(var u=d.value,s=0;s",apos:"'"};return l.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(i,d){return m[d]}).replace(/&#?([0-9]+);/gi,function(i,d){var u=parseInt(d,10);return String.fromCharCode(u)}).replace(/&#x?([0-9a-f]+);/gi,function(i,d){var u=parseInt(d,16);return String.fromCharCode(u)})}return h}(),y=r.buildQueryString=function(){function h(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return h}()},32742:function(L,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debounce=function(){function t(o,f,N){N===void 0&&(N=!1);var b;return function(){for(var S=arguments.length,k=new Array(S),h=0;h=f)o.apply(null,h),N=c;else{var m;b=setTimeout(function(){return S.apply(void 0,h)},f-(c-((m=N)!=null?m:0)))}}return S}()}return t}()},41202:function(L,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(72026);/** + */var n=r.debounce=function(){function t(o,f,N){N===void 0&&(N=!1);var b;return function(){for(var S=arguments.length,y=new Array(S),h=0;h=f)o.apply(null,h),N=c;else{var m;b=setTimeout(function(){return S.apply(void 0,h)},f-(c-((m=N)!=null?m:0)))}}return S}()}return t}()},41202:function(L,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(72026);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -58,11 +58,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(d,l){return d+l},t=function(d,l){return d-l},o=function(d,l){return d*l},f=function(d,l){return d/l},N=r.vecAdd=function(){function i(){for(var d=arguments.length,l=new Array(d),s=0;s=0)&&(k[u]=b[u]);return k}var N=r.BlockQuote=function(){function b(S){var k=S.className,h=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",k])},h)))}return b}()},93843:function(L,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(66586),a=n(28823),t=n(32883),o=n(30381),f=["as","className","children"];/** + */function f(b,S){if(b==null)return{};var y={},h=Object.keys(b),l,c;for(c=0;c=0)&&(y[l]=b[l]);return y}var N=r.BlockQuote=function(){function b(S){var y=S.className,h=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",y])},h)))}return b}()},93843:function(L,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(66586),a=n(28823),t=n(32883),o=n(30381),f=["as","className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(v,p){if(v==null)return{};var V={},y=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var b=r.unit=function(){function v(p){if(typeof p=="string")return p.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(p)/12+"rem":p;if(typeof p=="number")return Byond.IS_LTE_IE8?p*12+"px":p+"rem"}return v}(),S=r.halfUnit=function(){function v(p){if(typeof p=="string")return b(p);if(typeof p=="number")return b(p*.5)}return v}(),k=function(p){return!h(p)},h=function(p){if(typeof p=="string")return o.CSS_COLORS.includes(p)},u=function(p){return function(V,y){(typeof y=="number"||typeof y=="string")&&(V[p]=y)}},c=function(p,V){return function(y,B){(typeof B=="number"||typeof B=="string")&&(y[p]=V(B))}},m=function(p,V){return function(y,B){B&&(y[p]=V)}},i=function(p,V,y){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(V.style=x),V}return v}(),C=r.computeBoxClassName=function(){function v(p){var V=p.textColor||p.color,y=p.backgroundColor;return(0,e.classes)([h(V)&&"color-"+V,h(y)&&"color-bg-"+y])}return v}(),g=r.Box=function(){function v(p){var V=p.as,y=V===void 0?"div":V,B=p.className,I=p.children,w=N(p,f);if(typeof I=="function")return I(s(p));var T=typeof B=="string"?B+" "+C(w):C(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,y,T,I,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(28823),a=n(66586),t=n(31068),o=n(50175),f=n(93843),N=n(69433),b=n(30341),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],u=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function N(v,p){if(v==null)return{};var V={},k=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var b=r.unit=function(){function v(p){if(typeof p=="string")return p.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(p)/12+"rem":p;if(typeof p=="number")return Byond.IS_LTE_IE8?p*12+"px":p+"rem"}return v}(),S=r.halfUnit=function(){function v(p){if(typeof p=="string")return b(p);if(typeof p=="number")return b(p*.5)}return v}(),y=function(p){return!h(p)},h=function(p){if(typeof p=="string")return o.CSS_COLORS.includes(p)},l=function(p){return function(V,k){(typeof k=="number"||typeof k=="string")&&(V[p]=k)}},c=function(p,V){return function(k,B){(typeof B=="number"||typeof B=="string")&&(k[p]=V(B))}},m=function(p,V){return function(k,B){B&&(k[p]=V)}},i=function(p,V,k){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(V.style=x),V}return v}(),C=r.computeBoxClassName=function(){function v(p){var V=p.textColor||p.color,k=p.backgroundColor;return(0,e.classes)([h(V)&&"color-"+V,h(k)&&"color-bg-"+k])}return v}(),g=r.Box=function(){function v(p){var V=p.as,k=V===void 0?"div":V,B=p.className,I=p.children,w=N(p,f);if(typeof I=="function")return I(s(p));var T=typeof B=="string"?B+" "+C(w):C(w),A=s(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,k,T,I,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(28823),a=n(66586),t=n(31068),o=n(50175),f=n(93843),N=n(69433),b=n(30341),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],y=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,m(v,p)}function m(v,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function V(y,B){return y.__proto__=B,y}return V}(),m(v,p)}function i(v,p){if(v==null)return{};var V={},y=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var d=(0,o.createLogger)("Button"),l=r.Button=function(){function v(p){var V=p.className,y=p.fluid,B=p.icon,I=p.iconRotation,w=p.iconSpin,T=p.color,A=p.textColor,x=p.disabled,E=p.selected,P=p.tooltip,R=p.tooltipPosition,M=p.ellipsis,D=p.compact,j=p.circular,F=p.content,U=p.iconColor,_=p.iconRight,$=p.iconStyle,z=p.children,G=p.onclick,H=p.onClick,J=p.multiLine,ae=i(p,S),ce=!!(F||z);G&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ae.onClick=function(he){!x&&H&&H(he)},Byond.IS_LTE_IE8&&(ae.unselectable=!0);var se=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",y&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ce&&"Button--hasContent",M&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",_&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",V]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function he(ye){var Ie=window.event?ye.which:ye.keyCode;if(Ie===t.KEY_SPACE||Ie===t.KEY_ENTER){ye.preventDefault(),!x&&H&&H(ye);return}if(Ie===t.KEY_ESCAPE){ye.preventDefault();return}}return he}()},ae,{children:[B&&!_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:$}),F,z,B&&_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:$})]})));return P&&(se=(0,e.createComponentVNode)(2,b.Tooltip,{content:P,position:R,children:se})),se}return v}();l.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function v(p){var V=p.checked,y=i(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({color:"transparent",icon:V?"check-square-o":"square-o",selected:V},y)))}return v}();l.Checkbox=s;var C=r.ButtonConfirm=function(v){c(p,v);function p(){var y;return y=v.call(this)||this,y.state={clickedOnce:!1},y.handleClick=function(){y.state.clickedOnce&&y.setClickedOnce(!1)},y}var V=p.prototype;return V.setClickedOnce=function(){function y(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return y}(),V.render=function(){function y(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,P=I.icon,R=I.color,M=I.content,D=I.onClick,j=i(I,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:R,onClick:function(){function F(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return F}()},j)))}return y}(),p}(e.Component);l.Confirm=C;var g=r.ButtonInput=function(v){c(p,v);function p(){var y;return y=v.call(this)||this,y.inputRef=(0,e.createRef)(),y.state={inInput:!1},y}var V=p.prototype;return V.setInInput=function(){function y(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return y}(),V.commitResult=function(){function y(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return y}(),V.render=function(){function y(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,P=I.tooltip,R=I.tooltipPosition,M=I.color,D=M===void 0?"default":M,j=I.disabled,F=I.placeholder,U=I.maxLength,_=I.multiLine,$=i(I,u),z=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+D,_+"Button--multiLine"])},$,{onClick:function(){function G(){return B.setInInput(!0)}return G}(),children:[A&&(0,e.createComponentVNode)(2,N.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function G(H){B.state.inInput&&(B.setInInput(!1),B.commitResult(H))}return G}(),onKeyDown:function(){function G(H){if(H.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(H);return}H.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return G}()},null,this.inputRef)]})));return P&&(z=(0,e.createComponentVNode)(2,b.Tooltip,{content:P,position:R,children:z})),z}return y}(),p}(e.Component);l.Input=g},75614:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(28823),a=n(66586),t=n(32742),o=n(50175),f=n(93843),N=["params"],b=["params"],S=["parent","params"];function k(C,g){if(C==null)return{};var v={},p=Object.keys(C),V,y;for(y=0;y=0)&&(v[V]=C[V]);return v}function h(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,u(C,g)}function u(C,g){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(p,V){return p.__proto__=V,p}return v}(),u(C,g)}/** + */function c(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,m(v,p)}function m(v,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function V(k,B){return k.__proto__=B,k}return V}(),m(v,p)}function i(v,p){if(v==null)return{};var V={},k=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var d=(0,o.createLogger)("Button"),u=r.Button=function(){function v(p){var V=p.className,k=p.fluid,B=p.icon,I=p.iconRotation,w=p.iconSpin,T=p.color,A=p.textColor,x=p.disabled,E=p.selected,P=p.tooltip,R=p.tooltipPosition,M=p.ellipsis,D=p.compact,j=p.circular,F=p.content,U=p.iconColor,_=p.iconRight,$=p.iconStyle,z=p.children,G=p.onclick,H=p.onClick,J=p.multiLine,ae=i(p,S),ce=!!(F||z);G&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ae.onClick=function(he){!x&&H&&H(he)},Byond.IS_LTE_IE8&&(ae.unselectable=!0);var se=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",k&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ce&&"Button--hasContent",M&&"Button--ellipsis",j&&"Button--circular",D&&"Button--compact",_&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",V]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function he(ye){var Ie=window.event?ye.which:ye.keyCode;if(Ie===t.KEY_SPACE||Ie===t.KEY_ENTER){ye.preventDefault(),!x&&H&&H(ye);return}if(Ie===t.KEY_ESCAPE){ye.preventDefault();return}}return he}()},ae,{children:[B&&!_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:$}),F,z,B&&_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:$})]})));return P&&(se=(0,e.createComponentVNode)(2,b.Tooltip,{content:P,position:R,children:se})),se}return v}();u.defaultHooks=a.pureComponentHooks;var s=r.ButtonCheckbox=function(){function v(p){var V=p.checked,k=i(p,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({color:"transparent",icon:V?"check-square-o":"square-o",selected:V},k)))}return v}();u.Checkbox=s;var C=r.ButtonConfirm=function(v){c(p,v);function p(){var k;return k=v.call(this)||this,k.state={clickedOnce:!1},k.handleClick=function(){k.state.clickedOnce&&k.setClickedOnce(!1)},k}var V=p.prototype;return V.setClickedOnce=function(){function k(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return k}(),V.render=function(){function k(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,P=I.icon,R=I.color,M=I.content,D=I.onClick,j=i(I,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:R,onClick:function(){function F(){return B.state.clickedOnce?D():B.setClickedOnce(!0)}return F}()},j)))}return k}(),p}(e.Component);u.Confirm=C;var g=r.ButtonInput=function(v){c(p,v);function p(){var k;return k=v.call(this)||this,k.inputRef=(0,e.createRef)(),k.state={inInput:!1},k}var V=p.prototype;return V.setInInput=function(){function k(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return k}(),V.commitResult=function(){function k(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return k}(),V.render=function(){function k(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,P=I.tooltip,R=I.tooltipPosition,M=I.color,D=M===void 0?"default":M,j=I.disabled,F=I.placeholder,U=I.maxLength,_=I.multiLine,$=i(I,l),z=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+D,_+"Button--multiLine"])},$,{onClick:function(){function G(){return B.setInInput(!0)}return G}(),children:[A&&(0,e.createComponentVNode)(2,N.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function G(H){B.state.inInput&&(B.setInInput(!1),B.commitResult(H))}return G}(),onKeyDown:function(){function G(H){if(H.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(H);return}H.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return G}()},null,this.inputRef)]})));return P&&(z=(0,e.createComponentVNode)(2,b.Tooltip,{content:P,position:R,children:z})),z}return k}(),p}(e.Component);u.Input=g},75614:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(28823),a=n(66586),t=n(32742),o=n(50175),f=n(93843),N=["params"],b=["params"],S=["parent","params"];function y(C,g){if(C==null)return{};var v={},p=Object.keys(C),V,k;for(k=0;k=0)&&(v[V]=C[V]);return v}function h(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,l(C,g)}function l(C,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(p,V){return p.__proto__=V,p}return v}(),l(C,g)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],i=function(g){var v=m.length;m.push(null);var p=g||"byondui_"+v;return c.log("allocated '"+p+"'"),{render:function(){function V(y){c.log("rendering '"+p+"'"),m[v]=p,Byond.winset(p,y)}return V}(),unmount:function(){function V(){c.log("unmounting '"+p+"'"),m[v]=null,Byond.winset(p,{parent:""})}return V}()}};window.addEventListener("beforeunload",function(){for(var C=0;C=0)&&(l[C]=i[C]);return l}function b(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,S(i,d)}function S(i,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(s,C){return s.__proto__=C,s}return l}(),S(i,d)}/** +*/var c=(0,o.createLogger)("ByondUi"),m=[],i=function(g){var v=m.length;m.push(null);var p=g||"byondui_"+v;return c.log("allocated '"+p+"'"),{render:function(){function V(k){c.log("rendering '"+p+"'"),m[v]=p,Byond.winset(p,k)}return V}(),unmount:function(){function V(){c.log("unmounting '"+p+"'"),m[v]=null,Byond.winset(p,{parent:""})}return V}()}};window.addEventListener("beforeunload",function(){for(var C=0;C=0)&&(u[C]=i[C]);return u}function b(i,d){i.prototype=Object.create(d.prototype),i.prototype.constructor=i,S(i,d)}function S(i,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(s,C){return s.__proto__=C,s}return u}(),S(i,d)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=function(d,l,s,C){if(d.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);s!==void 0&&(g[0]=s[0],v[0]=s[1]),C!==void 0&&(g[1]=C[0],v[1]=C[1]);var p=(0,a.map)(function(V){return(0,a.zipWith)(function(y,B,I,w){return(y-B)/(I-B)*w})(V,g,v,l)})(d);return p},h=function(d){for(var l="",s=0;s0){var M=R[0],D=R[R.length-1];R.push([P[0]+x,D[1]]),R.push([P[0]+x,-x]),R.push([-x,-x]),R.push([-x,M[1]])}var j=h(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return F}()})))}return s}(),d}(e.Component);u.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:Byond.IS_LTE_IE8?c:u}},52760:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(28823),a=n(93843),t=n(16699),o=["children","color","title","buttons"];function f(k,h){if(k==null)return{};var u={},c=Object.keys(k),m,i;for(i=0;i=0)&&(u[m]=k[m]);return u}function N(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,b(k,h)}function b(k,h){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(c,m){return c.__proto__=m,c}return u}(),b(k,h)}/** +*/var y=function(d,u,s,C){if(d.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);s!==void 0&&(g[0]=s[0],v[0]=s[1]),C!==void 0&&(g[1]=C[0],v[1]=C[1]);var p=(0,a.map)(function(V){return(0,a.zipWith)(function(k,B,I,w){return(k-B)/(I-B)*w})(V,g,v,u)})(d);return p},h=function(d){for(var u="",s=0;s0){var M=R[0],D=R[R.length-1];R.push([P[0]+x,D[1]]),R.push([P[0]+x,-x]),R.push([-x,-x]),R.push([-x,M[1]])}var j=h(R);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return F}()})))}return s}(),d}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(d){return null},m=r.Chart={Line:Byond.IS_LTE_IE8?c:l}},52760:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(28823),a=n(93843),t=n(16699),o=["children","color","title","buttons"];function f(y,h){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i=0)&&(l[m]=y[m]);return l}function N(y,h){y.prototype=Object.create(h.prototype),y.prototype.constructor=y,b(y,h)}function b(y,h){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),b(y,h)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(k){N(h,k);function h(c){var m;m=k.call(this,c)||this;var i=c.open;return m.state={open:i||!1},m}var u=h.prototype;return u.render=function(){function c(){var m=this,i=this.props,d=this.state.open,l=i.children,s=i.color,C=s===void 0?"default":s,g=i.title,v=i.buttons,p=f(i,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!d})}return V}()},p,{children:g}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:l})]})}return c}(),h}(e.Component)},25762:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["content","children","className","color","backgroundColor"];/** +*/var S=r.Collapsible=function(y){N(h,y);function h(c){var m;m=y.call(this,c)||this;var i=c.open;return m.state={open:i||!1},m}var l=h.prototype;return l.render=function(){function c(){var m=this,i=this.props,d=this.state.open,u=i.children,s=i.color,C=s===void 0?"default":s,g=i.title,v=i.buttons,p=f(i,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function V(){return m.setState({open:!d})}return V}()},p,{children:g}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:u})]})}return c}(),h}(e.Component)},25762:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(b,S){if(b==null)return{};var k={},h=Object.keys(b),u,c;for(c=0;c=0)&&(k[u]=b[u]);return k}var N=r.ColorBox=function(){function b(S){var k=S.content,h=S.children,u=S.className,c=S.color,m=S.backgroundColor,i=f(S,o);return i.color=k?null:"transparent",i.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",u,(0,t.computeBoxClassName)(i)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return b}();N.defaultHooks=a.pureComponentHooks},73712:function(L,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(28823),a=n(93843),t=["format"];function o(S,k){if(S==null)return{};var h={},u=Object.keys(S),c,m;for(m=0;m=0)&&(h[c]=S[c]);return h}function f(S,k){S.prototype=Object.create(k.prototype),S.prototype.constructor=S,N(S,k)}function N(S,k){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(u,c){return u.__proto__=c,u}return h}(),N(S,k)}var b=r.Countdown=function(S){f(k,S);function k(u){var c;return c=S.call(this,u)||this,c.timer=null,c.state={value:Math.max(u.timeLeft*100,0)},c}var h=k.prototype;return h.tick=function(){function u(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return u}(),h.componentDidMount=function(){function u(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return u}(),h.componentWillUnmount=function(){function u(){clearInterval(this.timer)}return u}(),h.componentDidUpdate=function(){function u(c){var m=this;this.props.current!==c.current&&this.setState(function(i){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return u}(),h.render=function(){function u(){var c=this.props,m=c.format,i=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},i,{children:m?m(this.state.value,d):d})))}return u}(),k}(e.Component);b.defaultProps={rate:1e3}},15148:function(L,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","children"];/** + */function f(b,S){if(b==null)return{};var y={},h=Object.keys(b),l,c;for(c=0;c=0)&&(y[l]=b[l]);return y}var N=r.ColorBox=function(){function b(S){var y=S.content,h=S.children,l=S.className,c=S.color,m=S.backgroundColor,i=f(S,o);return i.color=y?null:"transparent",i.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",l,(0,t.computeBoxClassName)(i)]),y||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return b}();N.defaultHooks=a.pureComponentHooks},73712:function(L,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(28823),a=n(93843),t=["format"];function o(S,y){if(S==null)return{};var h={},l=Object.keys(S),c,m;for(m=0;m=0)&&(h[c]=S[c]);return h}function f(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,N(S,y)}function N(S,y){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(l,c){return l.__proto__=c,l}return h}(),N(S,y)}var b=r.Countdown=function(S){f(y,S);function y(l){var c;return c=S.call(this,l)||this,c.timer=null,c.state={value:Math.max(l.timeLeft*100,0)},c}var h=y.prototype;return h.tick=function(){function l(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return l}(),h.componentDidMount=function(){function l(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return l}(),h.componentWillUnmount=function(){function l(){clearInterval(this.timer)}return l}(),h.componentDidUpdate=function(){function l(c){var m=this;this.props.current!==c.current&&this.setState(function(i){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return l}(),h.render=function(){function l(){var c=this.props,m=c.format,i=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},i,{children:m?m(this.state.value,d):d})))}return l}(),y}(e.Component);b.defaultProps={rate:1e3}},15148:function(L,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(b,S){if(b==null)return{};var k={},h=Object.keys(b),u,c;for(c=0;c=0)&&(k[u]=b[u]);return k}var N=r.Dimmer=function(){function b(S){var k=S.className,h=S.children,u=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},u,{children:(0,e.createVNode)(1,"div","Dimmer__inner",h,0)})))}return b}()},81878:function(L,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(28823),a=n(66586);/** + */function f(b,S){if(b==null)return{};var y={},h=Object.keys(b),l,c;for(c=0;c=0)&&(y[l]=b[l]);return y}var N=r.Dimmer=function(){function b(S){var y=S.className,h=S.children,l=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(y))},l,{children:(0,e.createVNode)(1,"div","Dimmer__inner",h,0)})))}return b}()},81878:function(L,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(28823),a=n(66586);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var N=f.vertical,b=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",b&&"Divider--hidden",N?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281);function f(h,u){h.prototype=Object.create(u.prototype),h.prototype.constructor=h,N(h,u)}function N(h,u){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),N(h,u)}var b=400,S=function(u,c){return u.screenX*c[0]+u.screenY*c[1]},k=r.DraggableControl=function(h){f(u,h);function u(m){var i;return i=h.call(this,m)||this,i.inputRef=(0,e.createRef)(),i.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var d=i.props.suppressFlicker;d>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},d))},i.handleDragStart=function(d){var l=i.props,s=l.value,C=l.dragMatrix,g=l.disabled,v=i.state.editing;v||g||(document.body.style["pointer-events"]="none",i.ref=d.currentTarget,i.setState({originalValue:s,dragging:!1,value:s,origin:S(d,C)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var p=i.state,V=p.dragging,y=p.value,B=i.props.onDrag;V&&B&&B(d,y)},i.props.updateRate||b),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var l,s=i.props,C=s.minValue,g=s.maxValue,v=s.step,p=s.dragMatrix,V=s.disabled;if(!V){var y=i.ref.offsetWidth/((g-C)/v),B=(l=i.props.stepPixelSize)!=null?l:y;typeof B=="function"&&(B=B(y)),i.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(d,p)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,C,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},i.handleDragEnd=function(d){var l=i.props,s=l.onChange,C=l.onDrag,g=i.state,v=g.dragging,p=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),v)i.suppressFlicker(),s&&s(d,p),C&&C(d,p);else if(i.inputRef){var V=i.inputRef.current;V.value=p;try{V.focus(),V.select()}catch(y){}}},i}var c=u.prototype;return c.render=function(){function m(){var i=this,d=this.state,l=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,p=v.animated,V=v.value,y=v.unit,B=v.minValue,I=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,P=v.lineHeight,R=v.fontSize,M=v.disabled,D=V;(l||g)&&(D=C);var j=function(){function _($){return $+(y?" "+y:"")}return _}(),F=p&&!l&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||M?"none":void 0,height:E,"line-height":P,"font-size":R},onBlur:function(){function _($){if(s){var z=(0,a.clamp)(parseFloat($.target.value),B,I);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),T&&T($,z),A&&A($,z)}}return _}(),onKeyDown:function(){function _($){if($.keyCode===13){var z=(0,a.clamp)(parseFloat($.target.value),B,I);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),T&&T($,z),A&&A($,z);return}if($.keyCode===27){i.setState({editing:!1});return}}return _}(),disabled:M},null,this.inputRef);return x({dragging:l,editing:s,value:V,displayValue:D,displayElement:F,inputElement:U,handleDragStart:this.handleDragStart})}return m}(),u}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},99936:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(28823),a=n(60028),t=n(66586),o=n(93843),f=n(69433),N=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],b=["className"],S;function k(s,C){if(s==null)return{};var g={},v=Object.keys(s),p,V;for(V=0;V=0)&&(g[p]=s[p]);return g}function h(s,C){s.prototype=Object.create(C.prototype),s.prototype.constructor=s,u(s,C)}function u(s,C){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,p){return v.__proto__=p,v}return g}(),u(s,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function s(){return null}return s}()},i="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",l=r.Dropdown=function(s){h(C,s);function C(v){var p;return p=s.call(this,v)||this,p.menuContents=void 0,p.handleClick=function(){p.state.open&&p.setOpen(!1)},p.state={open:!1,selected:p.props.selected},p.menuContents=null,p}var g=C.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var p=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var p=C.renderedMenu;p===void 0&&(p=document.createElement("div"),p.className=i,document.body.appendChild(p),C.renderedMenu=p);var V=this.getDOMNode();C.currentOpenMenu=V,p.scrollTop=0,p.style.width=this.props.menuWidth||V.offsetWidth+"px",p.style.opacity="1",p.style.pointerEvents="auto",setTimeout(function(){var y;(y=C.renderedMenu)==null||y.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var p=this,V=C.renderedMenu;if(V){V.offsetHeight>200?V.className=d:V.className=i;var y=this.props.options,B=y===void 0?[]:y,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",p.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){p.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),V,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,V,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(p){var V=this;this.setState(function(y){return Object.assign({},y,{open:p})}),p?setTimeout(function(){V.openMenu(),window.addEventListener("click",V.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(p){this.setState(function(V){return Object.assign({},V,{selected:p})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(p)}return v}(),g.render=function(){function v(){var p=this,V=this.props,y=V.icon,B=V.iconRotation,I=V.iconSpin,w=V.clipSelectedText,T=w===void 0?!0:w,A=V.color,x=A===void 0?"default":A,E=V.dropdownStyle,P=V.over,R=V.nochevron,M=V.width,D=V.onClick,j=V.onSelected,F=V.selected,U=V.disabled,_=V.displayText,$=k(V,N),z=$.className,G=k($,b),H=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",z]),onClick:function(){function J(ae){U&&!p.state.open||(p.setOpen(!p.state.open),D&&D(ae))}return J}()},G,{children:[y&&(0,e.createComponentVNode)(2,f.Icon,{name:y,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",_||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:H?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);S=l,l.renderedMenu=void 0,l.singletonPopper=void 0,l.currentOpenMenu=void 0,l.virtualElement={getBoundingClientRect:function(){function s(){var C,g;return(C=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?C:m}return s}()}},92462:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","direction","wrap","align","justify","inline"],f=["className"],N=["className","style","grow","order","shrink","basis","align"],b=["className"];/** + */var t=r.Divider=function(){function o(f){var N=f.vertical,b=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",b&&"Divider--hidden",N?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281);function f(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,N(h,l)}function N(h,l){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),N(h,l)}var b=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},y=r.DraggableControl=function(h){f(l,h);function l(m){var i;return i=h.call(this,m)||this,i.inputRef=(0,e.createRef)(),i.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var d=i.props.suppressFlicker;d>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},d))},i.handleDragStart=function(d){var u=i.props,s=u.value,C=u.dragMatrix,g=u.disabled,v=i.state.editing;v||g||(document.body.style["pointer-events"]="none",i.ref=d.currentTarget,i.setState({originalValue:s,dragging:!1,value:s,origin:S(d,C)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var p=i.state,V=p.dragging,k=p.value,B=i.props.onDrag;V&&B&&B(d,k)},i.props.updateRate||b),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(d){var u,s=i.props,C=s.minValue,g=s.maxValue,v=s.step,p=s.dragMatrix,V=s.disabled;if(!V){var k=i.ref.offsetWidth/((g-C)/v),B=(u=i.props.stepPixelSize)!=null?u:k;typeof B=="function"&&(B=B(k)),i.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(d,p)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,C,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},i.handleDragEnd=function(d){var u=i.props,s=u.onChange,C=u.onDrag,g=i.state,v=g.dragging,p=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),v)i.suppressFlicker(),s&&s(d,p),C&&C(d,p);else if(i.inputRef){var V=i.inputRef.current;V.value=p;try{V.focus(),V.select()}catch(k){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,p=v.animated,V=v.value,k=v.unit,B=v.minValue,I=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,P=v.lineHeight,R=v.fontSize,M=v.disabled,D=V;(u||g)&&(D=C);var j=function(){function _($){return $+(k?" "+k:"")}return _}(),F=p&&!u&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:w,children:j})||j(w?w(D):D),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!s||M?"none":void 0,height:E,"line-height":P,"font-size":R},onBlur:function(){function _($){if(s){var z=(0,a.clamp)(parseFloat($.target.value),B,I);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),T&&T($,z),A&&A($,z)}}return _}(),onKeyDown:function(){function _($){if($.keyCode===13){var z=(0,a.clamp)(parseFloat($.target.value),B,I);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),T&&T($,z),A&&A($,z);return}if($.keyCode===27){i.setState({editing:!1});return}}return _}(),disabled:M},null,this.inputRef);return x({dragging:u,editing:s,value:V,displayValue:D,displayElement:F,inputElement:U,handleDragStart:this.handleDragStart})}return m}(),l}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},99936:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(28823),a=n(60028),t=n(66586),o=n(93843),f=n(69433),N=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],b=["className"],S;function y(s,C){if(s==null)return{};var g={},v=Object.keys(s),p,V;for(V=0;V=0)&&(g[p]=s[p]);return g}function h(s,C){s.prototype=Object.create(C.prototype),s.prototype.constructor=s,l(s,C)}function l(s,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,p){return v.__proto__=p,v}return g}(),l(s,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function s(){return null}return s}()},i="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",u=r.Dropdown=function(s){h(C,s);function C(v){var p;return p=s.call(this,v)||this,p.menuContents=void 0,p.handleClick=function(){p.state.open&&p.setOpen(!1)},p.state={open:!1,selected:p.props.selected},p.menuContents=null,p}var g=C.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var p=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var p=C.renderedMenu;p===void 0&&(p=document.createElement("div"),p.className=i,document.body.appendChild(p),C.renderedMenu=p);var V=this.getDOMNode();C.currentOpenMenu=V,p.scrollTop=0,p.style.width=this.props.menuWidth||V.offsetWidth+"px",p.style.opacity="1",p.style.pointerEvents="auto",setTimeout(function(){var k;(k=C.renderedMenu)==null||k.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var p=this,V=C.renderedMenu;if(V){V.offsetHeight>200?V.className=d:V.className=i;var k=this.props.options,B=k===void 0?[]:k,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",p.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){p.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),V,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,V,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(p){var V=this;this.setState(function(k){return Object.assign({},k,{open:p})}),p?setTimeout(function(){V.openMenu(),window.addEventListener("click",V.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(p){this.setState(function(V){return Object.assign({},V,{selected:p})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(p)}return v}(),g.render=function(){function v(){var p=this,V=this.props,k=V.icon,B=V.iconRotation,I=V.iconSpin,w=V.clipSelectedText,T=w===void 0?!0:w,A=V.color,x=A===void 0?"default":A,E=V.dropdownStyle,P=V.over,R=V.nochevron,M=V.width,D=V.onClick,j=V.onSelected,F=V.selected,U=V.disabled,_=V.displayText,$=y(V,N),z=$.className,G=y($,b),H=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",z]),onClick:function(){function J(ae){U&&!p.state.open||(p.setOpen(!p.state.open),D&&D(ae))}return J}()},G,{children:[k&&(0,e.createComponentVNode)(2,f.Icon,{name:k,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",_||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),R||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:H?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);S=u,u.renderedMenu=void 0,u.singletonPopper=void 0,u.currentOpenMenu=void 0,u.virtualElement={getBoundingClientRect:function(){function s(){var C,g;return(C=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?C:m}return s}()}},92462:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","direction","wrap","align","justify","inline"],f=["className"],N=["className","style","grow","order","shrink","basis","align"],b=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(d,l){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}var k=r.computeFlexClassName=function(){function d(l){return(0,a.classes)(["Flex",l.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&l.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(l)])}return d}(),h=r.computeFlexProps=function(){function d(l){var s=l.className,C=l.direction,g=l.wrap,v=l.align,p=l.justify,V=l.inline,y=S(l,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},y.style,{"flex-direction":C,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":p})},y))}return d}(),u=r.Flex=function(){function d(l){var s=l.className,C=S(l,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,k(C)]),null,1,Object.assign({},h(C))))}return d}();u.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(l){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(l)])}return d}(),m=r.computeFlexItemProps=function(){function d(l){var s=l.className,C=l.style,g=l.grow,v=l.order,p=l.shrink,V=l.basis,y=V===void 0?l.width:V,B=l.align,I=S(l,N);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(y),order:v,"align-self":B})},I))}return d}(),i=function(l){var s=l.className,C=S(l,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(l)]),null,1,Object.assign({},m(C))))};i.defaultHooks=a.pureComponentHooks,u.Item=i},81753:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(28823),a=n(99753),t=n(66586),o=["children"],f=["size","style"];/** + */function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}var y=r.computeFlexClassName=function(){function d(u){return(0,a.classes)(["Flex",u.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&u.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(u)])}return d}(),h=r.computeFlexProps=function(){function d(u){var s=u.className,C=u.direction,g=u.wrap,v=u.align,p=u.justify,V=u.inline,k=S(u,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},k.style,{"flex-direction":C,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":p})},k))}return d}(),l=r.Flex=function(){function d(u){var s=u.className,C=S(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,y(C)]),null,1,Object.assign({},h(C))))}return d}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(u){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(u)])}return d}(),m=r.computeFlexItemProps=function(){function d(u){var s=u.className,C=u.style,g=u.grow,v=u.order,p=u.shrink,V=u.basis,k=V===void 0?u.width:V,B=u.align,I=S(u,N);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(k),order:v,"align-self":B})},I))}return d}(),i=function(u){var s=u.className,C=S(u,b);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([s,c(u)]),null,1,Object.assign({},m(C))))};i.defaultHooks=a.pureComponentHooks,l.Item=i},81753:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(28823),a=n(99753),t=n(66586),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(k,h){if(k==null)return{};var u={},c=Object.keys(k),m,i;for(i=0;i=0)&&(u[m]=k[m]);return u}var b=r.Grid=function(){function k(h){var u=h.children,c=N(h,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:u})})))}return k}();b.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function k(h){var u=h.size,c=u===void 0?1:u,m=h.style,i=N(h,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},i)))}return k}();b.defaultHooks=t.pureComponentHooks,b.Column=S},69433:function(L,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** + */function N(y,h){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i=0)&&(l[m]=y[m]);return l}var b=r.Grid=function(){function y(h){var l=h.children,c=N(h,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:l})})))}return y}();b.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function y(h){var l=h.size,c=l===void 0?1:l,m=h.style,i=N(h,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},i)))}return y}();b.defaultHooks=t.pureComponentHooks,b.Column=S},69433:function(L,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["name","size","spin","className","style","rotation","inverse"],f=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(h,u){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var b=/-o$/,S=r.Icon=function(){function h(u){var c=u.name,m=u.size,i=u.spin,d=u.className,l=u.style,s=l===void 0?{}:l,C=u.rotation,g=u.inverse,v=N(u,o);m&&(s["font-size"]=m*100+"%"),typeof C=="number"&&(s.transform="rotate("+C+"deg)");var p=b.test(c),V=c.replace(b,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,p?"far":"fas","fa-"+V,i&&"fa-spin"]),style:s},v)))}return h}();S.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function h(u){var c=u.className,m=u.style,i=m===void 0?{}:m,d=u.children,l=N(u,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:i},l,{children:d})))}return h}();S.Stack=k},51190:function(L,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(31068),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],N=["className","fluid","monospace"];function b(c,m){if(c==null)return{};var i={},d=Object.keys(c),l,s;for(s=0;s=0)&&(i[l]=c[l]);return i}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,k(c,m)}function k(c,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,l){return d.__proto__=l,d}return i}(),k(c,m)}/** + */function N(h,l){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var b=/-o$/,S=r.Icon=function(){function h(l){var c=l.name,m=l.size,i=l.spin,d=l.className,u=l.style,s=u===void 0?{}:u,C=l.rotation,g=l.inverse,v=N(l,o);m&&(s["font-size"]=m*100+"%"),typeof C=="number"&&(s.transform="rotate("+C+"deg)");var p=b.test(c),V=c.replace(b,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,p?"far":"fas","fa-"+V,i&&"fa-spin"]),style:s},v)))}return h}();S.defaultHooks=a.pureComponentHooks;var y=r.IconStack=function(){function h(l){var c=l.className,m=l.style,i=m===void 0?{}:m,d=l.children,u=N(l,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:i},u,{children:d})))}return h}();S.Stack=y},51190:function(L,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(31068),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],N=["className","fluid","monospace"];function b(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s=0)&&(i[u]=c[u]);return i}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,y(c,m)}function y(c,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),y(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var h=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),u=r.Input=function(c){S(m,c);function m(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(l){var s=d.state.editing,C=d.props.onInput;s||d.setEditing(!0),C&&C(l,l.target.value)},d.handleFocus=function(l){var s=d.state.editing;s||d.setEditing(!0)},d.handleBlur=function(l){var s=d.state.editing,C=d.props.onChange;s&&(d.setEditing(!1),C&&C(l,l.target.value))},d.handleKeyDown=function(l){var s=d.props,C=s.onInput,g=s.onChange,v=s.onEnter;if(l.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(l,l.target.value),C&&C(l,l.target.value),v&&v(l,l.target.value),d.props.selfClear?l.target.value="":l.target.blur();return}if(l.keyCode===o.KEY_ESCAPE){d.setEditing(!1),l.target.value=h(d.props.value),l.target.blur();return}},d}var i=m.prototype;return i.componentDidMount=function(){function d(){var l=this,s=this.props.value,C=this.inputRef.current;C&&(C.value=h(s),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),l.props.autoSelect&&C.select()},1)}return d}(),i.componentDidUpdate=function(){function d(l,s){var C=this.state.editing,g=l.value,v=this.props.value,p=this.inputRef.current;p&&!C&&g!==v&&(p.value=h(v))}return d}(),i.setEditing=function(){function d(l){this.setState({editing:l})}return d}(),i.render=function(){function d(){var l=this.props,s=l.selfClear,C=l.onInput,g=l.onChange,v=l.onEnter,p=l.value,V=l.maxLength,y=l.placeholder,B=l.autofocus,I=l.disabled,w=l.multiline,T=l.cols,A=T===void 0?32:T,x=l.rows,E=x===void 0?4:x,P=b(l,f),R=P.className,M=P.fluid,D=P.monospace,j=b(P,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",D&&"Input--monospace",I&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:V,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:V,disabled:I},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),b=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var h=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),l=r.Input=function(c){S(m,c);function m(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(u){var s=d.state.editing,C=d.props.onInput;s||d.setEditing(!0),C&&C(u,u.target.value)},d.handleFocus=function(u){var s=d.state.editing;s||d.setEditing(!0)},d.handleBlur=function(u){var s=d.state.editing,C=d.props.onChange;s&&(d.setEditing(!1),C&&C(u,u.target.value))},d.handleKeyDown=function(u){var s=d.props,C=s.onInput,g=s.onChange,v=s.onEnter;if(u.keyCode===o.KEY_ENTER){d.setEditing(!1),g&&g(u,u.target.value),C&&C(u,u.target.value),v&&v(u,u.target.value),d.props.selfClear?u.target.value="":u.target.blur();return}if(u.keyCode===o.KEY_ESCAPE){d.setEditing(!1),u.target.value=h(d.props.value),u.target.blur();return}},d}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.inputRef.current;C&&(C.value=h(s),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var C=this.state.editing,g=u.value,v=this.props.value,p=this.inputRef.current;p&&!C&&g!==v&&(p.value=h(v))}return d}(),i.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),i.render=function(){function d(){var u=this.props,s=u.selfClear,C=u.onInput,g=u.onChange,v=u.onEnter,p=u.value,V=u.maxLength,k=u.placeholder,B=u.autofocus,I=u.disabled,w=u.multiline,T=u.cols,A=T===void 0?32:T,x=u.rows,E=x===void 0?4:x,P=b(u,f),R=P.className,M=P.fluid,D=P.monospace,j=b(P,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",D&&"Input--monospace",I&&"Input--disabled",R])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:k,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:V,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:k,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:V,disabled:I},null,this.inputRef)]})))}return d}(),m}(e.Component)},35095:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),b=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(h,u){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var k=r.Knob=function(){function h(u){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},u)));var c=u.animated,m=u.format,i=u.maxValue,d=u.minValue,l=u.onChange,s=u.onDrag,C=u.step,g=u.stepPixelSize,v=u.suppressFlicker,p=u.unit,V=u.value,y=u.className,B=u.style,I=u.fillValue,w=u.color,T=u.ranges,A=T===void 0?{}:T,x=u.size,E=x===void 0?1:x,P=u.bipolar,R=u.children,M=u.popUpPosition,D=S(u,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:i,minValue:d,onChange:l,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:p,value:V},{children:function(){function j(F){var U=F.dragging,_=F.editing,$=F.value,z=F.displayValue,G=F.displayElement,H=F.inputElement,J=F.handleDragStart,ae=(0,a.scale)(I!=null?I:z,d,i),ce=(0,a.scale)(z,d,i),se=w||(0,a.keyOfMatchingRange)(I!=null?I:$,A)||"default",he=(ce-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",y,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+he+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ae*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),H],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:J})))}return j}()})))}return h}()},36563:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(28823),a=n(92462),t=["children"],o=["label","children"];/** + */function S(h,l){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var y=r.Knob=function(){function h(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,C=l.step,g=l.stepPixelSize,v=l.suppressFlicker,p=l.unit,V=l.value,k=l.className,B=l.style,I=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,P=l.bipolar,R=l.children,M=l.popUpPosition,D=S(l,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:i,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:p,value:V},{children:function(){function j(F){var U=F.dragging,_=F.editing,$=F.value,z=F.displayValue,G=F.displayElement,H=F.inputElement,J=F.handleDragStart,ae=(0,a.scale)(I!=null?I:z,d,i),ce=(0,a.scale)(z,d,i),se=w||(0,a.keyOfMatchingRange)(I!=null?I:$,A)||"default",he=(ce-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",k,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+he+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),G,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((P?2.75:2)-ae*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),H],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},D)),{onMouseDown:J})))}return j}()})))}return h}()},36563:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(28823),a=n(92462),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(S,k){if(S==null)return{};var h={},u=Object.keys(S),c,m;for(m=0;m=0)&&(h[c]=S[c]);return h}var N=r.LabeledControls=function(){function S(k){var h=k.children,u=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},u,{children:h})))}return S}(),b=function(k){var h=k.label,u=k.children,c=f(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:h})]})))})};N.Item=b},88488:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(81878);/** + */function f(S,y){if(S==null)return{};var h={},l=Object.keys(S),c,m;for(m=0;m=0)&&(h[c]=S[c]);return h}var N=r.LabeledControls=function(){function S(y){var h=y.children,l=f(y,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},l,{children:h})))}return S}(),b=function(y){var h=y.label,l=y.children,c=f(y,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:h})]})))})};N.Item=b},88488:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(81878);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=r.LabeledList=function(){function S(k){var h=k.children;return(0,e.createVNode)(1,"table","LabeledList",h,0)}return S}();f.defaultHooks=a.pureComponentHooks;var N=function(k){var h=k.className,u=k.label,c=k.labelColor,m=c===void 0?"label":c,i=k.color,d=k.textAlign,l=k.buttons,s=k.content,C=k.children;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",h]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:m,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:u?u+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,textAlign:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,children:[s,C]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0)};N.defaultHooks=a.pureComponentHooks;var b=function(k){var h=k.size?(0,t.unit)(Math.max(0,k.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":h,"padding-bottom":h}}),2)};b.defaultHooks=a.pureComponentHooks,f.Item=N,f.Divider=b},59743:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(15148),f=["className","children","onEnter"];/** + */var f=r.LabeledList=function(){function S(y){var h=y.children;return(0,e.createVNode)(1,"table","LabeledList",h,0)}return S}();f.defaultHooks=a.pureComponentHooks;var N=function(y){var h=y.className,l=y.label,c=y.labelColor,m=c===void 0?"label":c,i=y.color,d=y.textAlign,u=y.buttons,s=y.content,C=y.children;return(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",h]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:m,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:l?l+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,textAlign:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,children:[s,C]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0)};N.defaultHooks=a.pureComponentHooks;var b=function(y){var h=y.size?(0,t.unit)(Math.max(0,y.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":h,"padding-bottom":h}}),2)};b.defaultHooks=a.pureComponentHooks,f.Item=N,f.Divider=b},59743:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(15148),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(S,k){if(S==null)return{};var h={},u=Object.keys(S),c,m;for(m=0;m=0)&&(h[c]=S[c]);return h}var b=r.Modal=function(){function S(k){var h=k.className,u=k.children,c=k.onEnter,m=N(k,f),i;return c&&(i=function(){function d(l){l.keyCode===13&&c(l)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(m)]),u,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(28823),a=n(2971),t=n(91819),o=n(88488),f=n(83611),N=n(96820);function b(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function S(l,s){l.prototype=Object.create(s.prototype),l.prototype.constructor=l,k(l,s)}function k(l,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(g,v){return g.__proto__=v,g}return C}(),k(l,s)}var h=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},u=r.NanoMap=function(l){S(s,l);function s(g){var v;v=l.call(this,g)||this;var p=window.innerWidth/2-256,V=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(y){v.ref=y.target,v.setState({dragging:!1,originX:y.screenX,originY:y.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),h(y)},v.handleDragMove=function(y){v.setState(function(B){var I=Object.assign({},B),w=y.screenX-I.originX,T=y.screenY-I.originY;return B.dragging?(I.offsetX+=w,I.offsetY+=T,I.originX=y.screenX,I.originY=y.screenY):I.dragging=!0,I}),h(y)},v.handleDragEnd=function(y){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),h(y)},v.handleZoom=function(y,B){v.setState(function(I){var w=Math.min(Math.max(B,1),8),T=(w-I.zoom)*1.5;return I.zoom=w,I.offsetX=I.offsetX-262*T,I.offsetY=I.offsetY-256*T,g.onZoom&&g.onZoom(I.zoom),I})},v}var C=s.prototype;return C.render=function(){function g(){var v=(0,t.useBackend)(this.context),p=v.config,V=this.state,y=V.dragging,B=V.offsetX,I=V.offsetY,w=V.zoom,T=w===void 0?1:w,A=this.props.children,x=p.map+"_nanomap_z1.png",E=510*T+"px",P={width:E,height:E,"margin-top":I+"px","margin-left":B+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:y?"move":"auto"},R={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,N.resolveAsset)(x),style:R}),(0,e.createComponentVNode)(2,a.Box,{children:A})]}),(0,e.createComponentVNode)(2,m,{zoom:T,onZoom:this.handleZoom})]})}return g}(),s}(e.Component),c=function(s,C){var g=s.x,v=s.y,p=s.zoom,V=p===void 0?1:p,y=s.icon,B=s.tooltip,I=s.color,w=g*2*V-V-3,T=v*2*V-V-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:B,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:T+"px",left:w+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:y,color:I,fontSize:"6px"})})}),2)};u.Marker=c;var m=function(s,C){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(v){return v+"x"}return g}(),value:s.zoom,onDrag:function(){function g(v,p){return s.onZoom(v,p)}return g}()})})})})};u.Zoomer=m;var i,d=function(l){S(s,l);function s(g){var v;v=l.call(this,g)||this;var p=(0,t.useBackend)(v.props.context),V=p.act;return v.state={color:v.props.color},v.handleClick=function(y){i!==void 0&&i.setState({color:"blue"}),V("switch_camera",{name:v.props.name}),i=b(v),v.setState({color:"green"})},v}var C=s.prototype;return C.render=function(){function g(){var v=this.props.x*2*this.props.zoom-this.props.zoom-3,p=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:p+"px",left:v+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return g}(),s}(e.Component);u.NanoButton=d},19153:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","color","info","warning","success","danger"];/** + */function N(S,y){if(S==null)return{};var h={},l=Object.keys(S),c,m;for(m=0;m=0)&&(h[c]=S[c]);return h}var b=r.Modal=function(){function S(y){var h=y.className,l=y.children,c=y.onEnter,m=N(y,f),i;return c&&(i=function(){function d(u){u.keyCode===13&&c(u)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(m)]),l,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},94405:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(28823),a=n(2971),t=n(91819),o=n(88488),f=n(83611),N=n(96820);function b(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,y(u,s)}function y(u,s){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(g,v){return g.__proto__=v,g}return C}(),y(u,s)}var h=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},l=r.NanoMap=function(u){S(s,u);function s(g){var v;v=u.call(this,g)||this;var p=window.innerWidth/2-256,V=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(k){v.ref=k.target,v.setState({dragging:!1,originX:k.screenX,originY:k.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),h(k)},v.handleDragMove=function(k){v.setState(function(B){var I=Object.assign({},B),w=k.screenX-I.originX,T=k.screenY-I.originY;return B.dragging?(I.offsetX+=w,I.offsetY+=T,I.originX=k.screenX,I.originY=k.screenY):I.dragging=!0,I}),h(k)},v.handleDragEnd=function(k){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),h(k)},v.handleZoom=function(k,B){v.setState(function(I){var w=Math.min(Math.max(B,1),8),T=(w-I.zoom)*1.5;return I.zoom=w,I.offsetX=I.offsetX-262*T,I.offsetY=I.offsetY-256*T,g.onZoom&&g.onZoom(I.zoom),I})},v}var C=s.prototype;return C.render=function(){function g(){var v=(0,t.useBackend)(this.context),p=v.config,V=this.state,k=V.dragging,B=V.offsetX,I=V.offsetY,w=V.zoom,T=w===void 0?1:w,A=this.props.children,x=p.map+"_nanomap_z1.png",E=510*T+"px",P={width:E,height:E,"margin-top":I+"px","margin-left":B+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:k?"move":"auto"},R={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,N.resolveAsset)(x),style:R}),(0,e.createComponentVNode)(2,a.Box,{children:A})]}),(0,e.createComponentVNode)(2,m,{zoom:T,onZoom:this.handleZoom})]})}return g}(),s}(e.Component),c=function(s,C){var g=s.x,v=s.y,p=s.zoom,V=p===void 0?1:p,k=s.icon,B=s.tooltip,I=s.color,w=g*2*V-V-3,T=v*2*V-V-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:B,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:T+"px",left:w+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:k,color:I,fontSize:"6px"})})}),2)};l.Marker=c;var m=function(s,C){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(v){return v+"x"}return g}(),value:s.zoom,onDrag:function(){function g(v,p){return s.onZoom(v,p)}return g}()})})})})};l.Zoomer=m;var i,d=function(u){S(s,u);function s(g){var v;v=u.call(this,g)||this;var p=(0,t.useBackend)(v.props.context),V=p.act;return v.state={color:v.props.color},v.handleClick=function(k){i!==void 0&&i.setState({color:"blue"}),V("switch_camera",{name:v.props.name}),i=b(v),v.setState({color:"green"})},v}var C=s.prototype;return C.render=function(){function g(){var v=this.props.x*2*this.props.zoom-this.props.zoom-3,p=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:p+"px",left:v+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return g}(),s}(e.Component);l.NanoButton=d},19153:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function f(b,S){if(b==null)return{};var k={},h=Object.keys(b),u,c;for(c=0;c=0)&&(k[u]=b[u]);return k}var N=r.NoticeBox=function(){function b(S){var k=S.className,h=S.color,u=S.info,c=S.warning,m=S.success,i=S.danger,d=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",h&&"NoticeBox--color--"+h,u&&"NoticeBox--type--info",m&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",k])},d)))}return b}();N.defaultHooks=a.pureComponentHooks},43023:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843);function N(h,u){h.prototype=Object.create(u.prototype),h.prototype.constructor=h,b(h,u)}function b(h,u){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),b(h,u)}/** + */function f(b,S){if(b==null)return{};var y={},h=Object.keys(b),l,c;for(c=0;c=0)&&(y[l]=b[l]);return y}var N=r.NoticeBox=function(){function b(S){var y=S.className,h=S.color,l=S.info,c=S.warning,m=S.success,i=S.danger,d=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",h&&"NoticeBox--color--"+h,l&&"NoticeBox--type--info",m&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",y])},d)))}return b}();N.defaultHooks=a.pureComponentHooks},43023:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843);function N(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,b(h,l)}function b(h,l){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),b(h,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,k=r.NumberInput=function(h){N(u,h);function u(m){var i;i=h.call(this,m)||this;var d=m.value;return i.inputRef=(0,e.createRef)(),i.state={value:d,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var l=i.props.suppressFlicker;l>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},l))},i.handleDragStart=function(l){var s=i.props.value,C=i.state.editing;C||(document.body.style["pointer-events"]="none",i.ref=l.target,i.setState({dragging:!1,origin:l.screenY,value:s,internalValue:s}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var g=i.state,v=g.dragging,p=g.value,V=i.props.onDrag;v&&V&&V(l,p)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(l){var s=i.props,C=s.minValue,g=s.maxValue,v=s.step,p=s.stepPixelSize;i.setState(function(V){var y=Object.assign({},V),B=y.origin-l.screenY;if(V.dragging){var I=Number.isFinite(C)?C%v:0;y.internalValue=(0,a.clamp)(y.internalValue+B*v/p,C-v,g+v),y.value=(0,a.clamp)(y.internalValue-y.internalValue%v+I,C,g),y.origin=l.screenY}else Math.abs(B)>4&&(y.dragging=!0);return y})},i.handleDragEnd=function(l){var s=i.props,C=s.onChange,g=s.onDrag,v=i.state,p=v.dragging,V=v.value,y=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),p)i.suppressFlicker(),C&&C(l,V),g&&g(l,V);else if(i.inputRef){var B=i.inputRef.current;B.value=y;try{B.focus(),B.select()}catch(I){}}},i}var c=u.prototype;return c.render=function(){function m(){var i=this,d=this.state,l=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,p=v.className,V=v.fluid,y=v.animated,B=v.value,I=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,P=v.fontSize,R=v.format,M=v.onChange,D=v.onDrag,j=B;(l||g)&&(j=C);var F=(0,e.createVNode)(1,"div","NumberInput__content",[y&&!l&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R}):R?R(j):j,I?" "+I:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",V&&"NumberInput--fluid",p]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((j-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function U(_){if(s){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$)}}return U}(),onKeyDown:function(){function U(_){if(_.keyCode===13){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$);return}if(_.keyCode===27){i.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return m}(),u}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},21624:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(N,b){N.prototype=Object.create(b.prototype),N.prototype.constructor=N,o(N,b)}function o(N,b){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(k,h){return k.__proto__=h,k}return S}(),o(N,b)}var f=r.Popper=function(N){t(b,N);function b(){var k;return k=N.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,b.id+=1,k}var S=b.prototype;return S.componentDidMount=function(){function k(){var h=this,u=this.props,c=u.additionalStyles,m=u.options;if(this.renderedContent=document.createElement("div"),c)for(var i=0,d=Object.entries(c);i0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},u))},i.handleDragStart=function(u){var s=i.props.value,C=i.state.editing;C||(document.body.style["pointer-events"]="none",i.ref=u.target,i.setState({dragging:!1,origin:u.screenY,value:s,internalValue:s}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var g=i.state,v=g.dragging,p=g.value,V=i.props.onDrag;v&&V&&V(u,p)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(u){var s=i.props,C=s.minValue,g=s.maxValue,v=s.step,p=s.stepPixelSize;i.setState(function(V){var k=Object.assign({},V),B=k.origin-u.screenY;if(V.dragging){var I=Number.isFinite(C)?C%v:0;k.internalValue=(0,a.clamp)(k.internalValue+B*v/p,C-v,g+v),k.value=(0,a.clamp)(k.internalValue-k.internalValue%v+I,C,g),k.origin=u.screenY}else Math.abs(B)>4&&(k.dragging=!0);return k})},i.handleDragEnd=function(u){var s=i.props,C=s.onChange,g=s.onDrag,v=i.state,p=v.dragging,V=v.value,k=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),p)i.suppressFlicker(),C&&C(u,V),g&&g(u,V);else if(i.inputRef){var B=i.inputRef.current;B.value=k;try{B.focus(),B.select()}catch(I){}}},i}var c=l.prototype;return c.render=function(){function m(){var i=this,d=this.state,u=d.dragging,s=d.editing,C=d.value,g=d.suppressingFlicker,v=this.props,p=v.className,V=v.fluid,k=v.animated,B=v.value,I=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,P=v.fontSize,R=v.format,M=v.onChange,D=v.onDrag,j=B;(u||g)&&(j=C);var F=(0,e.createVNode)(1,"div","NumberInput__content",[k&&!u&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:R}):R?R(j):j,I?" "+I:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",V&&"NumberInput--fluid",p]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((j-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:s?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function U(_){if(s){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$)}}return U}(),onKeyDown:function(){function U(_){if(_.keyCode===13){var $=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN($)){i.setState({editing:!1});return}i.setState({editing:!1,value:$}),i.suppressFlicker(),M&&M(_,$),D&&D(_,$);return}if(_.keyCode===27){i.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return m}(),l}(e.Component);y.defaultHooks=t.pureComponentHooks,y.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},21624:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(N,b){N.prototype=Object.create(b.prototype),N.prototype.constructor=N,o(N,b)}function o(N,b){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(y,h){return y.__proto__=h,y}return S}(),o(N,b)}var f=r.Popper=function(N){t(b,N);function b(){var y;return y=N.call(this)||this,y.renderedContent=void 0,y.popperInstance=void 0,b.id+=1,y}var S=b.prototype;return S.componentDidMount=function(){function y(){var h=this,l=this.props,c=l.additionalStyles,m=l.options;if(this.renderedContent=document.createElement("div"),c)for(var i=0,d=Object.entries(c);i=0)&&(i[l]=c[l]);return i}var h=r.ProgressBar=function(){function c(m){var i=m.className,d=m.value,l=m.minValue,s=l===void 0?0:l,C=m.maxValue,g=C===void 0?1:C,v=m.color,p=m.ranges,V=p===void 0?{}:p,y=m.children,B=m.fractionDigits,I=B===void 0?0:B,w=k(m,f),T=(0,a.scale)(d,s,g),A=y!==void 0,x=v||(0,a.keyOfMatchingRange)(d,V)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,i,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?y:(0,a.toFixed)(T*100,I)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();h.defaultHooks=t.pureComponentHooks;var u=r.ProgressBarCountdown=function(c){b(m,c);function m(d){var l;return l=c.call(this,d)||this,l.timer=null,l.state={value:Math.max(d.current*100,0)},l}var i=m.prototype;return i.tick=function(){function d(){var l=Math.max(this.state.value+this.props.rate,0);l<=0&&clearInterval(this.timer),this.setState(function(s){return{value:l}})}return d}(),i.componentDidMount=function(){function d(){var l=this;this.timer=setInterval(function(){return l.tick()},this.props.rate)}return d}(),i.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),i.render=function(){function d(){var l=this.props,s=l.start,C=l.current,g=l.end,v=k(l,N),p=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,h,Object.assign({value:p},v)))}return d}(),m}(e.Component);u.defaultProps={rate:1e3},h.Countdown=u},49421:function(L,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(28823),a=n(66586),t=n(58331),o=n(93843),f=n(31068),N=["onChange","onEnter","onInput","value"],b=["className","fluid","monospace"];function S(d,l){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}function k(d,l){d.prototype=Object.create(l.prototype),d.prototype.constructor=d,h(d,l)}function h(d,l){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),h(d,l)}var u=0,c=1e4,m=function(l,s,C,g){var v=s||u,p=C||C===0?C:c;if(!l||!l.length)return String(v);var V=g?parseFloat(l.replace(/[^\-\d.]/g,"")):parseInt(l.replace(/[^\-\d]/g,""),10);return isNaN(V)?String(v):String((0,t.clamp)(V,v,p))},i=r.RestrictedInput=function(d){k(l,d);function l(){var C;return C=d.call(this)||this,C.inputRef=(0,e.createRef)(),C.state={editing:!1},C.handleBlur=function(g){var v=C.state.editing;v&&C.setEditing(!1)},C.handleChange=function(g){var v=C.props,p=v.maxValue,V=v.minValue,y=v.onChange,B=v.allowFloats;g.target.value=m(g.target.value,V,p,B),y&&y(g,+g.target.value)},C.handleFocus=function(g){var v=C.state.editing;v||C.setEditing(!0)},C.handleInput=function(g){var v=C.state.editing,p=C.props.onInput;v||C.setEditing(!0),p&&p(g,+g.target.value)},C.handleKeyDown=function(g){var v=C.props,p=v.maxValue,V=v.minValue,y=v.onChange,B=v.onEnter,I=v.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,V,p,I);C.setEditing(!1),y&&y(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(C.props.onEscape){C.props.onEscape(g);return}C.setEditing(!1),g.target.value=C.props.value,g.target.blur();return}},C}var s=l.prototype;return s.componentDidMount=function(){function C(){var g,v=this,p=this.props,V=p.maxValue,y=p.minValue,B=p.allowFloats,I=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(I,y,V,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return C}(),s.componentDidUpdate=function(){function C(g,v){var p,V,y=this.props,B=y.maxValue,I=y.minValue,w=y.allowFloats,T=this.state.editing,A=(p=g.value)==null?void 0:p.toString(),x=(V=this.props.value)==null?void 0:V.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,I,B,w))}return C}(),s.setEditing=function(){function C(g){this.setState({editing:g})}return C}(),s.render=function(){function C(){var g=this.props,v=g.onChange,p=g.onEnter,V=g.onInput,y=g.value,B=S(g,N),I=B.className,w=B.fluid,T=B.monospace,A=S(B,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",I])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return C}(),l}(e.Component)},37479:function(L,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843),N=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** + */function b(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,S(c,m)}function S(c,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),S(c,m)}function y(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s=0)&&(i[u]=c[u]);return i}var h=r.ProgressBar=function(){function c(m){var i=m.className,d=m.value,u=m.minValue,s=u===void 0?0:u,C=m.maxValue,g=C===void 0?1:C,v=m.color,p=m.ranges,V=p===void 0?{}:p,k=m.children,B=m.fractionDigits,I=B===void 0?0:B,w=y(m,f),T=(0,a.scale)(d,s,g),A=k!==void 0,x=v||(0,a.keyOfMatchingRange)(d,V)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,i,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?k:(0,a.toFixed)(T*100,I)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();h.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){b(m,c);function m(d){var u;return u=c.call(this,d)||this,u.timer=null,u.state={value:Math.max(d.current*100,0)},u}var i=m.prototype;return i.tick=function(){function d(){var u=Math.max(this.state.value+this.props.rate,0);u<=0&&clearInterval(this.timer),this.setState(function(s){return{value:u}})}return d}(),i.componentDidMount=function(){function d(){var u=this;this.timer=setInterval(function(){return u.tick()},this.props.rate)}return d}(),i.componentWillUnmount=function(){function d(){clearInterval(this.timer)}return d}(),i.render=function(){function d(){var u=this.props,s=u.start,C=u.current,g=u.end,v=y(u,N),p=(this.state.value/100-s)/(g-s);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,h,Object.assign({value:p},v)))}return d}(),m}(e.Component);l.defaultProps={rate:1e3},h.Countdown=l},49421:function(L,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(28823),a=n(66586),t=n(58331),o=n(93843),f=n(31068),N=["onChange","onEnter","onInput","value"],b=["className","fluid","monospace"];function S(d,u){if(d==null)return{};var s={},C=Object.keys(d),g,v;for(v=0;v=0)&&(s[g]=d[g]);return s}function y(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,h(d,u)}function h(d,u){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),h(d,u)}var l=0,c=1e4,m=function(u,s,C,g){var v=s||l,p=C||C===0?C:c;if(!u||!u.length)return String(v);var V=g?parseFloat(u.replace(/[^\-\d.]/g,"")):parseInt(u.replace(/[^\-\d]/g,""),10);return isNaN(V)?String(v):String((0,t.clamp)(V,v,p))},i=r.RestrictedInput=function(d){y(u,d);function u(){var C;return C=d.call(this)||this,C.inputRef=(0,e.createRef)(),C.state={editing:!1},C.handleBlur=function(g){var v=C.state.editing;v&&C.setEditing(!1)},C.handleChange=function(g){var v=C.props,p=v.maxValue,V=v.minValue,k=v.onChange,B=v.allowFloats;g.target.value=m(g.target.value,V,p,B),k&&k(g,+g.target.value)},C.handleFocus=function(g){var v=C.state.editing;v||C.setEditing(!0)},C.handleInput=function(g){var v=C.state.editing,p=C.props.onInput;v||C.setEditing(!0),p&&p(g,+g.target.value)},C.handleKeyDown=function(g){var v=C.props,p=v.maxValue,V=v.minValue,k=v.onChange,B=v.onEnter,I=v.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,V,p,I);C.setEditing(!1),k&&k(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(C.props.onEscape){C.props.onEscape(g);return}C.setEditing(!1),g.target.value=C.props.value,g.target.blur();return}},C}var s=u.prototype;return s.componentDidMount=function(){function C(){var g,v=this,p=this.props,V=p.maxValue,k=p.minValue,B=p.allowFloats,I=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(I,k,V,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return C}(),s.componentDidUpdate=function(){function C(g,v){var p,V,k=this.props,B=k.maxValue,I=k.minValue,w=k.allowFloats,T=this.state.editing,A=(p=g.value)==null?void 0:p.toString(),x=(V=this.props.value)==null?void 0:V.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,I,B,w))}return C}(),s.setEditing=function(){function C(g){this.setState({editing:g})}return C}(),s.render=function(){function C(){var g=this.props,v=g.onChange,p=g.onEnter,V=g.onInput,k=g.value,B=S(g,N),I=B.className,w=B.fluid,T=B.monospace,A=S(B,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",I])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return C}(),u}(e.Component)},37479:function(L,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),f=n(93843),N=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function b(k,h){if(k==null)return{};var u={},c=Object.keys(k),m,i;for(i=0;i=0)&&(u[m]=k[m]);return u}var S=r.RoundGauge=function(){function k(h){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},h)));var u=h.value,c=h.minValue,m=c===void 0?1:c,i=h.maxValue,d=i===void 0?1:i,l=h.ranges,s=h.alertAfter,C=h.format,g=h.size,v=g===void 0?1:g,p=h.className,V=h.style,y=b(h,N),B=(0,a.scale)(u,m,d),I=(0,a.clamp01)(B),w=l?{}:{primary:[0,1]};l&&Object.keys(l).forEach(function(A){var x=l[A];w[A]=[(0,a.scale)(x[0],m,d),(0,a.scale)(x[1],m,d)]});var T=null;return s=0)&&(c[i]=h[i]);return c}function b(h,u){h.prototype=Object.create(u.prototype),h.prototype.constructor=h,S(h,u)}function S(h,u){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),S(h,u)}/** + */function b(y,h){if(y==null)return{};var l={},c=Object.keys(y),m,i;for(i=0;i=0)&&(l[m]=y[m]);return l}var S=r.RoundGauge=function(){function y(h){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},h)));var l=h.value,c=h.minValue,m=c===void 0?1:c,i=h.maxValue,d=i===void 0?1:i,u=h.ranges,s=h.alertAfter,C=h.format,g=h.size,v=g===void 0?1:g,p=h.className,V=h.style,k=b(h,N),B=(0,a.scale)(l,m,d),I=(0,a.clamp01)(B),w=u?{}:{primary:[0,1]};u&&Object.keys(u).forEach(function(A){var x=u[A];w[A]=[(0,a.scale)(x[0],m,d),(0,a.scale)(x[1],m,d)]});var T=null;return s=0)&&(c[i]=h[i]);return c}function b(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,S(h,l)}function S(h,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,i){return m.__proto__=i,m}return c}(),S(h,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=r.Section=function(h){b(u,h);function u(m){var i;return i=h.call(this,m)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.scrollableRef=(0,e.createRef)(),i.scrollable=m.scrollable,i}var c=u.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var i=this.props,d=i.className,l=i.title,s=i.buttons,C=i.fill,g=i.fitted,v=i.scrollable,p=i.children,V=N(i,f),y=(0,a.canRender)(l)||(0,a.canRender)(s);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",C&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",d,(0,o.computeBoxClassName)(V)]),[y&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",l,0),(0,e.createVNode)(1,"div","Section__buttons",s,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",p,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(V))))}return m}(),u}(e.Component)},83611:function(L,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),b=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** +*/var y=r.Section=function(h){b(l,h);function l(m){var i;return i=h.call(this,m)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.scrollableRef=(0,e.createRef)(),i.scrollable=m.scrollable,i}var c=l.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var i=this.props,d=i.className,u=i.title,s=i.buttons,C=i.fill,g=i.fitted,v=i.scrollable,p=i.children,V=N(i,f),k=(0,a.canRender)(u)||(0,a.canRender)(s);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",C&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",d,(0,o.computeBoxClassName)(V)]),[k&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",u,0),(0,e.createVNode)(1,"div","Section__buttons",s,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",p,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(V))))}return m}(),l}(e.Component)},83611:function(L,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),f=n(41584),N=n(43023),b=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(h,u){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var k=r.Slider=function(){function h(u){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},u)));var c=u.animated,m=u.format,i=u.maxValue,d=u.minValue,l=u.onChange,s=u.onDrag,C=u.step,g=u.stepPixelSize,v=u.suppressFlicker,p=u.unit,V=u.value,y=u.className,B=u.fillValue,I=u.color,w=u.ranges,T=w===void 0?{}:w,A=u.children,x=u.disabled,E=S(u,b),P=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:i,minValue:d,onChange:l,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:p,value:V,disabled:x},{children:function(){function R(M){var D=M.dragging,j=M.editing,F=M.value,U=M.displayValue,_=M.displayElement,$=M.inputElement,z=M.handleDragStart,G=B!=null,H=(0,a.scale)(F,d,i),J=(0,a.scale)(B!=null?B:U,d,i),ae=(0,a.scale)(U,d,i),ce=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ce,y,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",G&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,ae))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),D&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)(ae)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",P?A:_,0),$],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:z})))}return R}()})))}return h}()},78581:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(28823),a=n(66586),t=n(92462),o=["className","vertical","fill"],f=["className","innerRef"],N=["className","hidden"];/** + */function S(h,l){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var y=r.Slider=function(){function h(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},l)));var c=l.animated,m=l.format,i=l.maxValue,d=l.minValue,u=l.onChange,s=l.onDrag,C=l.step,g=l.stepPixelSize,v=l.suppressFlicker,p=l.unit,V=l.value,k=l.className,B=l.fillValue,I=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,b),P=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:i,minValue:d,onChange:u,onDrag:s,step:C,stepPixelSize:g,suppressFlicker:v,unit:p,value:V,disabled:x},{children:function(){function R(M){var D=M.dragging,j=M.editing,F=M.value,U=M.displayValue,_=M.displayElement,$=M.inputElement,z=M.handleDragStart,G=B!=null,H=(0,a.scale)(F,d,i),J=(0,a.scale)(B!=null?B:U,d,i),ae=(0,a.scale)(U,d,i),ce=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ce,k,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",G&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,ae))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),D&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)(ae)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",P?A:_,0),$],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:z})))}return R}()})))}return h}()},78581:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(28823),a=n(66586),t=n(92462),o=["className","vertical","fill"],f=["className","innerRef"],N=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function b(u,c){if(u==null)return{};var m={},i=Object.keys(u),d,l;for(l=0;l=0)&&(m[d]=u[d]);return m}var S=r.Stack=function(){function u(c){var m=c.className,i=c.vertical,d=c.fill,l=b(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",d&&"Stack--fill",i?"Stack--vertical":"Stack--horizontal",m,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:i?"column":"row"},l)))))}return u}(),k=function(c){var m=c.className,i=c.innerRef,d=b(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d)),null,i))};S.Item=k;var h=function(c){var m=c.className,i=c.hidden,d=b(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",i&&"Stack__divider--hidden",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d))))};S.Divider=h},99753:function(L,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","collapsing","children"],f=["className","header"],N=["className","collapsing","header"];/** + */function b(l,c){if(l==null)return{};var m={},i=Object.keys(l),d,u;for(u=0;u=0)&&(m[d]=l[d]);return m}var S=r.Stack=function(){function l(c){var m=c.className,i=c.vertical,d=c.fill,u=b(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",d&&"Stack--fill",i?"Stack--vertical":"Stack--horizontal",m,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:i?"column":"row"},u)))))}return l}(),y=function(c){var m=c.className,i=c.innerRef,d=b(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d)),null,i))};S.Item=y;var h=function(c){var m=c.className,i=c.hidden,d=b(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",i&&"Stack__divider--hidden",m,(0,t.computeFlexItemClassName)(d)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(d))))};S.Divider=h},99753:function(L,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","collapsing","children"],f=["className","header"],N=["className","collapsing","header"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(u,c){if(u==null)return{};var m={},i=Object.keys(u),d,l;for(l=0;l=0)&&(m[d]=u[d]);return m}var S=r.Table=function(){function u(c){var m=c.className,i=c.collapsing,d=c.children,l=b(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",i&&"Table--collapsing",m,(0,t.computeBoxClassName)(l)]),(0,e.createVNode)(1,"tbody",null,d,0),2,Object.assign({},(0,t.computeBoxProps)(l))))}return u}();S.defaultHooks=a.pureComponentHooks;var k=r.TableRow=function(){function u(c){var m=c.className,i=c.header,d=b(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",i&&"Table__row--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(d))))}return u}();k.defaultHooks=a.pureComponentHooks;var h=r.TableCell=function(){function u(c){var m=c.className,i=c.collapsing,d=c.header,l=b(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",i&&"Table__cell--collapsing",d&&"Table__cell--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(l))))}return u}();h.defaultHooks=a.pureComponentHooks,S.Row=k,S.Cell=h},96517:function(L,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(69433),f=["className","vertical","fill","fluid","children"],N=["className","selected","color","icon","leftSlot","rightSlot","children"];/** + */function b(l,c){if(l==null)return{};var m={},i=Object.keys(l),d,u;for(u=0;u=0)&&(m[d]=l[d]);return m}var S=r.Table=function(){function l(c){var m=c.className,i=c.collapsing,d=c.children,u=b(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",i&&"Table--collapsing",m,(0,t.computeBoxClassName)(u)]),(0,e.createVNode)(1,"tbody",null,d,0),2,Object.assign({},(0,t.computeBoxProps)(u))))}return l}();S.defaultHooks=a.pureComponentHooks;var y=r.TableRow=function(){function l(c){var m=c.className,i=c.header,d=b(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",i&&"Table__row--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(d))))}return l}();y.defaultHooks=a.pureComponentHooks;var h=r.TableCell=function(){function l(c){var m=c.className,i=c.collapsing,d=c.header,u=b(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",i&&"Table__cell--collapsing",d&&"Table__cell--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(u))))}return l}();h.defaultHooks=a.pureComponentHooks,S.Row=y,S.Cell=h},96517:function(L,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(69433),f=["className","vertical","fill","fluid","children"],N=["className","selected","color","icon","leftSlot","rightSlot","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(h,u){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var S=r.Tabs=function(){function h(u){var c=u.className,m=u.vertical,i=u.fill,d=u.fluid,l=u.children,s=b(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",d&&"Tabs--fluid",c,(0,t.computeBoxClassName)(s)]),l,0,Object.assign({},(0,t.computeBoxProps)(s))))}return h}(),k=function(u){var c=u.className,m=u.selected,i=u.color,d=u.icon,l=u.leftSlot,s=u.rightSlot,C=u.children,g=b(u,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,m&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(l)&&(0,e.createVNode)(1,"div","Tab__left",l,0)||!!d&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:d}),2),(0,e.createVNode)(1,"div","Tab__text",C,0),(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__right",s,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=k},12764:function(L,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(51190),f=n(31068),N=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],b=["className","fluid"];function S(c,m){if(c==null)return{};var i={},d=Object.keys(c),l,s;for(s=0;s=0)&&(i[l]=c[l]);return i}function k(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,h(c,m)}function h(c,m){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,l){return d.__proto__=l,d}return i}(),h(c,m)}/** + */function b(h,l){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var S=r.Tabs=function(){function h(l){var c=l.className,m=l.vertical,i=l.fill,d=l.fluid,u=l.children,s=b(l,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",d&&"Tabs--fluid",c,(0,t.computeBoxClassName)(s)]),u,0,Object.assign({},(0,t.computeBoxProps)(s))))}return h}(),y=function(l){var c=l.className,m=l.selected,i=l.color,d=l.icon,u=l.leftSlot,s=l.rightSlot,C=l.children,g=b(l,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,m&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(u)&&(0,e.createVNode)(1,"div","Tab__left",u,0)||!!d&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:d}),2),(0,e.createVNode)(1,"div","Tab__text",C,0),(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__right",s,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=y},12764:function(L,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(51190),f=n(31068),N=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],b=["className","fluid"];function S(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s=0)&&(i[u]=c[u]);return i}function y(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,h(c,m)}function h(c,m){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(d,u){return d.__proto__=u,d}return i}(),h(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var u=r.TextArea=function(c){k(m,c);function m(d,l){var s;s=c.call(this,d,l)||this,s.textareaRef=d.innerRef||(0,e.createRef)(),s.fillerRef=(0,e.createRef)(),s.state={editing:!1};var C=d.dontUseTabForIndent,g=C===void 0?!1:C;return s.handleOnInput=function(v){var p=s.state.editing,V=s.props.onInput;p||s.setEditing(!0),V&&V(v,v.target.value)},s.handleOnChange=function(v){var p=s.state.editing,V=s.props.onChange;p&&s.setEditing(!1),V&&V(v,v.target.value)},s.handleKeyPress=function(v){var p=s.state.editing,V=s.props.onKeyPress;p||s.setEditing(!0),V&&V(v,v.target.value)},s.handleKeyDown=function(v){var p=s.state.editing,V=s.props,y=V.onChange,B=V.onInput,I=V.onEnter,w=V.onKeyDown;if(v.keyCode===f.KEY_ENTER){s.setEditing(!1),y&&y(v,v.target.value),B&&B(v,v.target.value),I&&I(v,v.target.value),s.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===f.KEY_ESCAPE){s.props.onEscape&&s.props.onEscape(v),s.setEditing(!1),s.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(s.props.value),v.target.blur());return}if(p||s.setEditing(!0),w&&w(v,v.target.value),!g){var T=v.keyCode||v.which;if(T===f.KEY_TAB){v.preventDefault();var A=v.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(P),v.target.selectionEnd=E+1}}},s.handleFocus=function(v){var p=s.state.editing;p||s.setEditing(!0)},s.handleBlur=function(v){var p=s.state.editing,V=s.props.onChange;p&&(s.setEditing(!1),V&&V(v,v.target.value))},s}var i=m.prototype;return i.componentDidMount=function(){function d(){var l=this,s=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),l.props.autoSelect&&C.select()},1)}return d}(),i.componentDidUpdate=function(){function d(l,s){var C=l.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&C!==g&&(v.value=(0,o.toInputValue)(g))}return d}(),i.setEditing=function(){function d(l){this.setState({editing:l})}return d}(),i.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),i.render=function(){function d(){var l=this.props,s=l.onChange,C=l.onKeyDown,g=l.onKeyPress,v=l.onInput,p=l.onFocus,V=l.onBlur,y=l.onEnter,B=l.value,I=l.maxLength,w=l.placeholder,T=S(l,N),A=T.className,x=T.fluid,E=S(T,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(N){return N.length<2?"0"+N:N}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},30341:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,f(k,h)}function f(k,h){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(c,m){return c.__proto__=m,c}return u}(),f(k,h)}var N={modifiers:[{name:"eventListeners",enabled:!1}]},b={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},S=r.Tooltip=function(k){o(h,k);function h(){return k.apply(this,arguments)||this}var u=h.prototype;return u.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),u.componentDidMount=function(){function c(){var m=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var d=h.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),h.renderedTooltip=d),h.currentHoveredElement=i,d.style.opacity="1",m.renderPopperContent()}),i.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),u.fadeOut=function(){function c(){h.currentHoveredElement===this.getDOMNode()&&(h.currentHoveredElement=void 0,h.renderedTooltip.style.opacity="0")}return c}(),u.renderPopperContent=function(){function c(){var m=this,i=h.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var d=h.singletonPopper;d===void 0?(d=(0,a.createPopper)(h.virtualElement,i,Object.assign({},N,{placement:m.props.position||"auto"})),h.singletonPopper=d):(d.setOptions(Object.assign({},N,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),u.componentDidUpdate=function(){function c(){h.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),u.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),u.render=function(){function c(){return this.props.children}return c}(),h}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var h,u;return(h=(u=t.currentHoveredElement)==null?void 0:u.getBoundingClientRect())!=null?h:b}return k}()}},2971:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(15281);r.AnimatedNumber=e.AnimatedNumber;var a=n(81789);r.Autofocus=a.Autofocus;var t=n(11316);r.Blink=t.Blink;var o=n(26558);r.BlockQuote=o.BlockQuote;var f=n(93843);r.Box=f.Box;var N=n(16699);r.Button=N.Button;var b=n(75614);r.ByondUi=b.ByondUi;var S=n(2909);r.Chart=S.Chart;var k=n(52760);r.Collapsible=k.Collapsible;var h=n(25762);r.ColorBox=h.ColorBox;var u=n(73712);r.Countdown=u.Countdown;var c=n(15148);r.Dimmer=c.Dimmer;var m=n(81878);r.Divider=m.Divider;var i=n(41584);r.DraggableControl=i.DraggableControl;var d=n(99936);r.Dropdown=d.Dropdown;var l=n(92462);r.Flex=l.Flex;var s=n(81753);r.Grid=s.Grid;var C=n(69433);r.Icon=C.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var p=n(36563);r.LabeledControls=p.LabeledControls;var V=n(88488);r.LabeledList=V.LabeledList;var y=n(59743);r.Modal=y.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var I=n(19153);r.NoticeBox=I.NoticeBox;var w=n(43023);r.NumberInput=w.NumberInput;var T=n(21624);r.Popper=T.Popper;var A=n(24273);r.ProgressBar=A.ProgressBar;var x=n(49421);r.RestrictedInput=x.RestrictedInput;var E=n(37479);r.RoundGauge=E.RoundGauge;var P=n(43308);r.Section=P.Section;var R=n(83611);r.Slider=R.Slider;var M=n(78581);r.Stack=M.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var F=n(12764);r.TextArea=F.TextArea;var U=n(71218);r.TimeDisplay=U.TimeDisplay;var _=n(30341);r.Tooltip=_.Tooltip},30381:function(L,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],N=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],b=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function u(c,m){var i=String(c).toLowerCase(),d=b.find(function(l){return l.id===i||l.name.toLowerCase()===i});return d&&d.label||m||c}return u}(),k=r.getGasColor=function(){function u(c){var m=String(c).toLowerCase(),i=b.find(function(d){return d.id===m||d.name.toLowerCase()===m});return i&&i.color}return u}(),h=r.timeAgo=function(){function u(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var i=m-c;if(i>3600){var d=Math.round(i/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(i>60){var l=Math.round(i/60);return l+" minute"+(l===1?"":"s")+" ago"}else{var s=Math.round(i);return s+" second"+(s===1?"":"s")+" ago"}return"just now"}return u}()},28766:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947);/** +*/var l=r.TextArea=function(c){y(m,c);function m(d,u){var s;s=c.call(this,d,u)||this,s.textareaRef=d.innerRef||(0,e.createRef)(),s.fillerRef=(0,e.createRef)(),s.state={editing:!1};var C=d.dontUseTabForIndent,g=C===void 0?!1:C;return s.handleOnInput=function(v){var p=s.state.editing,V=s.props.onInput;p||s.setEditing(!0),V&&V(v,v.target.value)},s.handleOnChange=function(v){var p=s.state.editing,V=s.props.onChange;p&&s.setEditing(!1),V&&V(v,v.target.value)},s.handleKeyPress=function(v){var p=s.state.editing,V=s.props.onKeyPress;p||s.setEditing(!0),V&&V(v,v.target.value)},s.handleKeyDown=function(v){var p=s.state.editing,V=s.props,k=V.onChange,B=V.onInput,I=V.onEnter,w=V.onKeyDown;if(v.keyCode===f.KEY_ENTER){s.setEditing(!1),k&&k(v,v.target.value),B&&B(v,v.target.value),I&&I(v,v.target.value),s.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===f.KEY_ESCAPE){s.props.onEscape&&s.props.onEscape(v),s.setEditing(!1),s.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(s.props.value),v.target.blur());return}if(p||s.setEditing(!0),w&&w(v,v.target.value),!g){var T=v.keyCode||v.which;if(T===f.KEY_TAB){v.preventDefault();var A=v.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(P),v.target.selectionEnd=E+1}}},s.handleFocus=function(v){var p=s.state.editing;p||s.setEditing(!0)},s.handleBlur=function(v){var p=s.state.editing,V=s.props.onChange;p&&(s.setEditing(!1),V&&V(v,v.target.value))},s}var i=m.prototype;return i.componentDidMount=function(){function d(){var u=this,s=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(s)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),u.props.autoSelect&&C.select()},1)}return d}(),i.componentDidUpdate=function(){function d(u,s){var C=u.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&C!==g&&(v.value=(0,o.toInputValue)(g))}return d}(),i.setEditing=function(){function d(u){this.setState({editing:u})}return d}(),i.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),i.render=function(){function d(){var u=this.props,s=u.onChange,C=u.onKeyDown,g=u.onKeyPress,v=u.onInput,p=u.onFocus,V=u.onBlur,k=u.onEnter,B=u.value,I=u.maxLength,w=u.placeholder,T=S(u,N),A=T.className,x=T.fluid,E=S(T,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return d}(),m}(e.Component)},71218:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(N){return N.length<2?"0"+N:N}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},30341:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(y,h){y.prototype=Object.create(h.prototype),y.prototype.constructor=y,f(y,h)}function f(y,h){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),f(y,h)}var N={modifiers:[{name:"eventListeners",enabled:!1}]},b={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function y(){return null}return y}()},S=r.Tooltip=function(y){o(h,y);function h(){return y.apply(this,arguments)||this}var l=h.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var m=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var d=h.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),h.renderedTooltip=d),h.currentHoveredElement=i,d.style.opacity="1",m.renderPopperContent()}),i.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){h.currentHoveredElement===this.getDOMNode()&&(h.currentHoveredElement=void 0,h.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var m=this,i=h.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var d=h.singletonPopper;d===void 0?(d=(0,a.createPopper)(h.virtualElement,i,Object.assign({},N,{placement:m.props.position||"auto"})),h.singletonPopper=d):(d.setOptions(Object.assign({},N,{placement:m.props.position||"auto"})),d.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){h.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),h}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function y(){var h,l;return(h=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?h:b}return y}()}},2971:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(15281);r.AnimatedNumber=e.AnimatedNumber;var a=n(81789);r.Autofocus=a.Autofocus;var t=n(11316);r.Blink=t.Blink;var o=n(26558);r.BlockQuote=o.BlockQuote;var f=n(93843);r.Box=f.Box;var N=n(16699);r.Button=N.Button;var b=n(75614);r.ByondUi=b.ByondUi;var S=n(2909);r.Chart=S.Chart;var y=n(52760);r.Collapsible=y.Collapsible;var h=n(25762);r.ColorBox=h.ColorBox;var l=n(73712);r.Countdown=l.Countdown;var c=n(15148);r.Dimmer=c.Dimmer;var m=n(81878);r.Divider=m.Divider;var i=n(41584);r.DraggableControl=i.DraggableControl;var d=n(99936);r.Dropdown=d.Dropdown;var u=n(92462);r.Flex=u.Flex;var s=n(81753);r.Grid=s.Grid;var C=n(69433);r.Icon=C.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var p=n(36563);r.LabeledControls=p.LabeledControls;var V=n(88488);r.LabeledList=V.LabeledList;var k=n(59743);r.Modal=k.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var I=n(19153);r.NoticeBox=I.NoticeBox;var w=n(43023);r.NumberInput=w.NumberInput;var T=n(21624);r.Popper=T.Popper;var A=n(24273);r.ProgressBar=A.ProgressBar;var x=n(49421);r.RestrictedInput=x.RestrictedInput;var E=n(37479);r.RoundGauge=E.RoundGauge;var P=n(43308);r.Section=P.Section;var R=n(83611);r.Slider=R.Slider;var M=n(78581);r.Stack=M.Stack;var D=n(99753);r.Table=D.Table;var j=n(96517);r.Tabs=j.Tabs;var F=n(12764);r.TextArea=F.TextArea;var U=n(71218);r.TimeDisplay=U.TimeDisplay;var _=n(30341);r.Tooltip=_.Tooltip},30381:function(L,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],N=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],b=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function l(c,m){var i=String(c).toLowerCase(),d=b.find(function(u){return u.id===i||u.name.toLowerCase()===i});return d&&d.label||m||c}return l}(),y=r.getGasColor=function(){function l(c){var m=String(c).toLowerCase(),i=b.find(function(d){return d.id===m||d.name.toLowerCase()===m});return i&&i.color}return l}(),h=r.timeAgo=function(){function l(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var i=m-c;if(i>3600){var d=Math.round(i/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(i>60){var u=Math.round(i/60);return u+" minute"+(u===1?"":"s")+" ago"}else{var s=Math.round(i);return s+" second"+(s===1?"":"s")+" ago"}return"just now"}return l}()},28766:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=n(69321),N=function(){return f.keys().map(function(k){return f(k)})},b=r.KitchenSink=function(){function S(k,h){var u=k.panel,c=(0,a.useLocalState)(h,"kitchenSinkTheme"),m=c[0],i=(0,a.useLocalState)(h,"pageIndex",0),d=i[0],l=i[1],s=N(),C=s[d],g=u?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:s.map(function(v,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===d,onClick:function(){function V(){return l(p)}return V}(),children:v.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:C.meta.render()})})]})})}return S}()},20697:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** + */var f=n(69321),N=function(){return f.keys().map(function(y){return f(y)})},b=r.KitchenSink=function(){function S(y,h){var l=y.panel,c=(0,a.useLocalState)(h,"kitchenSinkTheme"),m=c[0],i=(0,a.useLocalState)(h,"pageIndex",0),d=i[0],u=i[1],s=N(),C=s[d],g=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:s.map(function(v,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===d,onClick:function(){function V(){return u(p)}return V}(),children:v.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:C.meta.render()})})]})})}return S}()},20697:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -202,7 +202,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=["backend/update","chat/message"],N=r.debugMiddleware=function(){function S(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(h){h.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),h.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),h.ctrl&&h.alt&&h.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(h){return function(u){return h(u)}}}return S}(),b=r.relayMiddleware=function(){function S(k){var h=n(87454),u=location.search==="?external";return u?h.subscribe(function(c){var m=c.type,i=c.payload;m==="relay"&&i.windowId===Byond.windowId&&k.dispatch(Object.assign({},i.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var i=m.type,d=m.payload,l=m.relayed;if(i===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(i)&&!l&&!u&&h.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},42702:function(L,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var f=["backend/update","chat/message"],N=r.debugMiddleware=function(){function S(y){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(h){h.code===e.KEY_F11&&y.dispatch((0,o.toggleDebugLayout)()),h.code===e.KEY_F12&&y.dispatch((0,o.toggleKitchenSink)()),h.ctrl&&h.alt&&h.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(h){return function(l){return h(l)}}}return S}(),b=r.relayMiddleware=function(){function S(y){var h=n(87454),l=location.search==="?external";return l?h.subscribe(function(c){var m=c.type,i=c.payload;m==="relay"&&i.windowId===Byond.windowId&&y.dispatch(Object.assign({},i.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&y.dispatch((0,o.openExternalBrowser)())})),function(c){return function(m){var i=m.type,d=m.payload,u=m.relayed;if(i===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(i)&&!u&&!l&&h.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},42702:function(L,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -214,13 +214,13 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var b=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,h=!1,u=[0,0],c,m,i,d,l,s=r.setWindowKey=function(){function j(F){S=F}return j}(),C=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),v=r.setWindowPosition=function(){function j(F){var U=(0,a.vecAdd)(F,u);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return j}(),p=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),V=r.getScreenPosition=function(){function j(){return[0-u[0],0-u[1]]}return j}(),y=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,U,_){_===void 0&&(_=50);for(var $=[U],z,G=0;Gae&&(z[H]=ae-U[H],G=!0)}return[G,z]},x=r.dragStartHandler=function(){function j(F){b.log("drag start"),k=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(F)}return j}(),E=function j(F){b.log("drag end"),P(F),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",j),k=!1,I()},P=function(F){k&&(F.preventDefault(),v((0,a.vecAdd)([F.screenX,F.screenY],m)))},R=r.resizeStartHandler=function(){function j(F,U){return function(_){i=[F,U],b.log("resize start",i),h=!0,m=[window.screenLeft-_.screenX,window.screenTop-_.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",M),D(_)}}return j}(),M=function j(F){b.log("resize end",l),D(F),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),h=!1,I()},D=function(F){h&&(F.preventDefault(),l=(0,a.vecAdd)(d,(0,a.vecMultiply)(i,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),l[0]=Math.max(l[0],150),l[1]=Math.max(l[1],50),p(l))}},33053:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(70654),a=n(31068);/** +*/var b=(0,t.createLogger)("drag"),S=Byond.windowId,y=!1,h=!1,l=[0,0],c,m,i,d,u,s=r.setWindowKey=function(){function j(F){S=F}return j}(),C=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),v=r.setWindowPosition=function(){function j(F){var U=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return j}(),p=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),V=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),k=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,U,_){_===void 0&&(_=50);for(var $=[U],z,G=0;Gae&&(z[H]=ae-U[H],G=!0)}return[G,z]},x=r.dragStartHandler=function(){function j(F){b.log("drag start"),y=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(F)}return j}(),E=function j(F){b.log("drag end"),P(F),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",j),y=!1,I()},P=function(F){y&&(F.preventDefault(),v((0,a.vecAdd)([F.screenX,F.screenY],m)))},R=r.resizeStartHandler=function(){function j(F,U){return function(_){i=[F,U],b.log("resize start",i),h=!0,m=[window.screenLeft-_.screenX,window.screenTop-_.screenY],d=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",D),document.addEventListener("mouseup",M),D(_)}}return j}(),M=function j(F){b.log("resize end",u),D(F),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",j),h=!1,I()},D=function(F){h&&(F.preventDefault(),u=(0,a.vecAdd)(d,(0,a.vecMultiply)(i,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),u[0]=Math.max(u[0],150),u[1]=Math.max(u[1],50),p(u))}},33053:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(70654),a=n(31068);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(V){V===void 0&&(V={}),o=!!V.ignoreWindowFocus}return p}(),N,b=!0,S=function p(V,y){if(o){b=!0;return}if(N&&(clearTimeout(N),N=null),y){N=setTimeout(function(){return p(V)});return}b!==V&&(b=V,t.emit(V?"window-focus":"window-blur"),t.emit("window-focus-change",V))},k=null,h=r.canStealFocus=function(){function p(V){var y=String(V.tagName).toLowerCase();return y==="input"||y==="textarea"}return p}(),u=function(V){c(),k=V,k.addEventListener("blur",c)},c=function p(){k&&(k.removeEventListener("blur",p),k=null)},m=null,i=null,d=[],l=r.addScrollableNode=function(){function p(V){d.push(V)}return p}(),s=r.removeScrollableNode=function(){function p(V){var y=d.indexOf(V);y>=0&&d.splice(y,1)}return p}(),C=function(V){if(!(k||!b))for(var y=document.body;V&&V!==y;){if(d.includes(V)){if(V.contains(m))return;m=V,V.focus();return}V=V.parentNode}};window.addEventListener("mousemove",function(p){var V=p.target;V!==i&&(i=V,C(V))}),window.addEventListener("focusin",function(p){if(i=null,m=p.target,S(!0),h(p.target)){u(p.target);return}}),window.addEventListener("focusout",function(p){i=null,S(!1,!0)}),window.addEventListener("blur",function(p){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(p){S(!1)});var g={},v=r.KeyEvent=function(){function p(y,B,I){this.event=y,this.type=B,this.code=window.event?y.which:y.keyCode,this.ctrl=y.ctrlKey,this.shift=y.shiftKey,this.alt=y.altKey,this.repeat=!!I}var V=p.prototype;return V.hasModifierKeys=function(){function y(){return this.ctrl||this.alt||this.shift}return y}(),V.isModifierKey=function(){function y(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return y}(),V.isDown=function(){function y(){return this.type==="keydown"}return y}(),V.isUp=function(){function y(){return this.type==="keyup"}return y}(),V.toString=function(){function y(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return y}(),p}();document.addEventListener("keydown",function(p){if(!h(p.target)){var V=p.keyCode,y=new v(p,"keydown",g[V]);t.emit("keydown",y),t.emit("key",y),g[V]=!0}}),document.addEventListener("keyup",function(p){if(!h(p.target)){var V=p.keyCode,y=new v(p,"keyup");t.emit("keyup",y),t.emit("key",y),g[V]=!1}})},16671:function(L,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function p(V){V===void 0&&(V={}),o=!!V.ignoreWindowFocus}return p}(),N,b=!0,S=function p(V,k){if(o){b=!0;return}if(N&&(clearTimeout(N),N=null),k){N=setTimeout(function(){return p(V)});return}b!==V&&(b=V,t.emit(V?"window-focus":"window-blur"),t.emit("window-focus-change",V))},y=null,h=r.canStealFocus=function(){function p(V){var k=String(V.tagName).toLowerCase();return k==="input"||k==="textarea"}return p}(),l=function(V){c(),y=V,y.addEventListener("blur",c)},c=function p(){y&&(y.removeEventListener("blur",p),y=null)},m=null,i=null,d=[],u=r.addScrollableNode=function(){function p(V){d.push(V)}return p}(),s=r.removeScrollableNode=function(){function p(V){var k=d.indexOf(V);k>=0&&d.splice(k,1)}return p}(),C=function(V){if(!(y||!b))for(var k=document.body;V&&V!==k;){if(d.includes(V)){if(V.contains(m))return;m=V,V.focus();return}V=V.parentNode}};window.addEventListener("mousemove",function(p){var V=p.target;V!==i&&(i=V,C(V))}),window.addEventListener("focusin",function(p){if(i=null,m=p.target,S(!0),h(p.target)){l(p.target);return}}),window.addEventListener("focusout",function(p){i=null,S(!1,!0)}),window.addEventListener("blur",function(p){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(p){S(!1)});var g={},v=r.KeyEvent=function(){function p(k,B,I){this.event=k,this.type=B,this.code=window.event?k.which:k.keyCode,this.ctrl=k.ctrlKey,this.shift=k.shiftKey,this.alt=k.altKey,this.repeat=!!I}var V=p.prototype;return V.hasModifierKeys=function(){function k(){return this.ctrl||this.alt||this.shift}return k}(),V.isModifierKey=function(){function k(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return k}(),V.isDown=function(){function k(){return this.type==="keydown"}return k}(),V.isUp=function(){function k(){return this.type==="keyup"}return k}(),V.toString=function(){function k(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return k}(),p}();document.addEventListener("keydown",function(p){if(!h(p.target)){var V=p.keyCode,k=new v(p,"keydown",g[V]);t.emit("keydown",k),t.emit("key",k),g[V]=!0}}),document.addEventListener("keyup",function(p){if(!h(p.target)){var V=p.keyCode,k=new v(p,"keyup");t.emit("keyup",k),t.emit("key",k),g[V]=!1}})},16671:function(L,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -230,23 +230,23 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(k,h,u){if(h===void 0&&(h=-t),u===void 0&&(u=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(h*3,c)),i=Math.floor(c/3),d=Math.floor(m/3),l=(0,e.clamp)(t+d,0,a.length),s=a[l],C=k/Math.pow(1e3,d),g=i>h?2+d*3-m:0,v=(0,e.toFixed)(C,g)+" "+s+u;return v.trim()}return S}(),f=r.formatPower=function(){function S(k,h){return h===void 0&&(h=0),o(k,h,"W")}return S}(),N=r.formatMoney=function(){function S(k,h){if(h===void 0&&(h=0),!Number.isFinite(k))return k;var u=(0,e.round)(k,h);h>0&&(u=(0,e.toFixed)(k,h)),u=String(u);var c=u.length,m=u.indexOf(".");m===-1&&(m=c);for(var i="",d=0;d0&&d=0?"+":h<0?"\u2013":"",c=Math.abs(h);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),u+c+" dB"}return S}()},39891:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(31068)),a=n(33053),t=n(50175);function o(l){if(typeof WeakMap!="function")return null;var s=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:s})(l)}function f(l,s){if(!s&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var C=o(s);if(C&&C.has(l))return C.get(l);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in l)if(p!=="default"&&Object.prototype.hasOwnProperty.call(l,p)){var V=v?Object.getOwnPropertyDescriptor(l,p):null;V&&(V.get||V.set)?Object.defineProperty(g,p,V):g[p]=l[p]}return g.default=l,C&&C.set(l,g),g}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(y,h,l){if(h===void 0&&(h=-t),l===void 0&&(l=""),typeof y!="number"||!Number.isFinite(y))return y;var c=Math.floor(Math.log10(y)),m=Math.floor(Math.max(h*3,c)),i=Math.floor(c/3),d=Math.floor(m/3),u=(0,e.clamp)(t+d,0,a.length),s=a[u],C=y/Math.pow(1e3,d),g=i>h?2+d*3-m:0,v=(0,e.toFixed)(C,g)+" "+s+l;return v.trim()}return S}(),f=r.formatPower=function(){function S(y,h){return h===void 0&&(h=0),o(y,h,"W")}return S}(),N=r.formatMoney=function(){function S(y,h){if(h===void 0&&(h=0),!Number.isFinite(y))return y;var l=(0,e.round)(y,h);h>0&&(l=(0,e.toFixed)(y,h)),l=String(l);var c=l.length,m=l.indexOf(".");m===-1&&(m=c);for(var i="",d=0;d0&&d=0?"+":h<0?"\u2013":"",c=Math.abs(h);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39891:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(31068)),a=n(33053),t=n(50175);function o(u){if(typeof WeakMap!="function")return null;var s=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:s})(u)}function f(u,s){if(!s&&u&&u.__esModule)return u;if(u===null||typeof u!="object"&&typeof u!="function")return{default:u};var C=o(s);if(C&&C.has(u))return C.get(u);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in u)if(p!=="default"&&Object.prototype.hasOwnProperty.call(u,p)){var V=v?Object.getOwnPropertyDescriptor(u,p):null;V&&(V.get||V.set)?Object.defineProperty(g,p,V):g[p]=u[p]}return g.default=u,C&&C.set(u,g),g}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var N=(0,t.createLogger)("hotkeys"),b={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},h=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},u=function(s){var C=String(s);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){C==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=h(s.code);if(g){var v=b[g];if(v)return N.debug("macro",v),Byond.command(v);if(s.isDown()&&!k[g]){k[g]=!0;var p='Key_Down "'+g+'"';return N.debug(p),Byond.command(p)}if(s.isUp()&&k[g]){k[g]=!1;var V='Key_Up "'+g+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function l(s){S.push(s)}return l}(),m=r.releaseHotKey=function(){function l(s){var C=S.indexOf(s);C>=0&&S.splice(C,1)}return l}(),i=r.releaseHeldKeys=function(){function l(){for(var s=0,C=Object.keys(k);s=75?c="green":u.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:u.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,u.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!u.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:u.laws.map(function(m,i){return(0,e.createComponentVNode)(2,t.Box,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:u.wireless?"check":"times",content:u.wireless?"Enabled":"Disabled",color:u.wireless?"green":"red",onClick:function(){function m(){return h("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:u.radio?"check":"times",content:u.radio?"Enabled":"Disabled",color:u.radio?"green":"red",onClick:function(){function m(){return h("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:u.flushing||u.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return h("wipe")}return m}()})})]})})})]})})})}return N}()},46817:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data;if(u.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(u.stat===2||u.stat===null)&&(c=!1);var m=null;u.integrity>=75?m="green":u.integrity>=25?m="yellow":m="red";var i=!0;return u.integrity>=100&&u.stat!==2&&(i=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:u.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:u.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!u.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:u.laws.map(function(d,l){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.wireless?"times":"check",content:u.wireless?"Disabled":"Enabled",color:u.wireless?"red":"green",onClick:function(){function d(){return h("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.radio?"times":"check",content:u.radio?"Disabled":"Enabled",color:u.radio?"red":"green",onClick:function(){function d(){return h("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||u.active,content:!i||u.active?"Already Repaired":"Repair",onClick:function(){function d(){return h("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:u.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},20420:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.APC=function(){function h(u,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return h}(),b={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.locked&&!d.siliconUser,s=d.normallyLocked,C=b[d.externalPower]||b[0],g=b[d.chargingStatus]||b[0],v=d.powerChannels||[],p=S[d.malfStatus]||S[0],V=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!l,color:d.isOperating?"":"bad",disabled:l,onClick:function(){function y(){return i("breaker")}return y}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:V})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:l,onClick:function(){function y(){return i("charge")}return y}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(y){var B=y.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:y.status>=2?"good":"bad",children:y.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!l&&(y.status===1||y.status===3),disabled:l,onClick:function(){function I(){return i("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!l&&y.status===2,disabled:l,onClick:function(){function I(){return i("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!l&&y.status===0,disabled:l,onClick:function(){function I(){return i("channel",B.off)}return I}()})],4),children:[y.powerLoad," W"]},y.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function y(){return i(p.action)}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function y(){return i("overload")}return y}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:l,onClick:function(){function y(){return i("cover")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:l,onClick:function(){function y(){return i("emergency_lighting")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function y(){return i("toggle_nightshift")}return y}()})})]})})],4)}},16822:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.view_screen,v=C.authenticated_account,p=C.ticks_left_locked_down,V=C.linked_db,y;if(p>0)y=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!V)y=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(g){case 1:y=(0,e.createComponentVNode)(2,b);break;case 2:y=(0,e.createComponentVNode)(2,S);break;case 3:y=(0,e.createComponentVNode)(2,u);break;default:y=(0,e.createComponentVNode)(2,k)}else y=(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Section,{children:y})]})})}return m}(),N=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.machine_id,v=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function p(){return s("insert_card")}return p}()})})})]})},b=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function v(){return s("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function v(){return s("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],p=g[1],V=(0,a.useLocalState)(d,"fundsAmount",0),y=V[0],B=V[1],I=(0,a.useLocalState)(d,"purpose",0),w=I[0],T=I[1],A=C.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return p(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return B(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return T(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return s("transfer",{target_acc_number:v,funds_amount:y,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],p=g[1],V=C.owner_name,y=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",y]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return p(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},h=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],p=g[1],V=(0,a.useLocalState)(d,"accountPin",null),y=V[0],B=V[1],I=C.machine_id,w=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return p(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:v,account_pin:y})}return T}()})})]})})},u=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return s("view_screen",{view_screen:0})}return g}()})}},90698:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),N=n(84947),b=n(51185),S=n(69774),k=r.AccountsUplinkTerminal=function(){function C(g,v){var p=(0,t.useBackend)(v),V=p.act,y=p.data,B=y.loginState,I=y.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,u):I===2?w=(0,e.createComponentVNode)(2,l):I===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),h=function(g,v){var p=(0,t.useBackend)(v),V=p.data,y=(0,t.useLocalState)(v,"tabIndex",0),B=y[0],I=y[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},u=function(g,v){var p=(0,t.useLocalState)(v,"tabIndex",0),V=p[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var p=(0,t.useBackend)(v),V=p.act,y=p.data,B=y.accounts,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),R=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var F=R?1:-1;return D[x].localeCompare(j[x])*F}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return V("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(g,v){var p=(0,t.useBackend)(v),V=p.act,y=p.data,B=y.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},i=function(g,v){var p=(0,t.useLocalState)(v,"sortId","name"),V=p[0],y=p[1],B=(0,t.useLocalState)(v,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!I):(y(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var p=(0,t.useBackend)(v),V=p.act,y=p.data,B=y.is_printing,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return V("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},l=function(g,v){var p=(0,t.useBackend)(v),V=p.act,y=p.data,B=y.account_number,I=y.owner_name,w=y.money,T=y.suspended,A=y.transactions,x=y.account_pin,E=y.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return V("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return V("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function P(){return V("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},s=function(g,v){var p=(0,t.useBackend)(v),V=p.act,y=p.data,B=(0,t.useLocalState)(v,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return V("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,R){return w(R)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},66895:function(L,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AgentCard=function(){function S(k,h){var u=(0,a.useLocalState)(h,"tabIndex",0),c=u[0],m=u[1],i=function(){function d(l){switch(l){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,b);default:return(0,e.createComponentVNode)(2,N)}}return d}();return(0,e.createComponentVNode)(2,o.Window,{width:425,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===0,onClick:function(){function d(){return m(0)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function d(){return m(1)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),i(c)]})})})}return S}(),N=r.AgentCardInfo=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.registered_name,d=m.sex,l=m.age,s=m.assignment,C=m.associated_account_number,g=m.blood_type,v=m.dna_hash,p=m.fingerprint_hash,V=m.photo,y=m.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,t.Button,{content:i||"[UNSET]",onClick:function(){function B(){return c("change_name")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Button,{iconRight:!1,content:d||"[UNSET]",onClick:function(){function B(){return c("change_sex")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Button,{content:l||"[UNSET]",onClick:function(){function B(){return c("change_age")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"[UNSET]",onClick:function(){function B(){return c("change_occupation")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,t.Button,{content:p||"[UNSET]",onClick:function(){function B(){return c("change_fingerprints")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"[UNSET]",onClick:function(){function B(){return c("change_blood_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,t.Button,{content:v||"[UNSET]",onClick:function(){function B(){return c("change_dna_hash")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,t.Button,{content:C||"[UNSET]",onClick:function(){function B(){return c("change_money_account")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Update":"[UNSET]",onClick:function(){function B(){return c("change_photo")}return B}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button,{content:"Delete Card Info",onClick:function(){function B(){return c("delete_info")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button,{content:"Reset Access",onClick:function(){function B(){return c("clear_access")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{content:y?"Untrackable":"Trackable",onClick:function(){function B(){return c("change_ai_tracking")}return B}()})})]})})})],4)}return S}(),b=r.AgentCardAppearances=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=(0,a.useLocalState)(h,"selectedAppearance",null),d=i[0],l=i[1],s=m.appearances;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:C===d,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+C.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function g(){l(C),c("change_appearance",{new_appearance:C.name})}return g}()})},C.name)})})})}return S}()},26354:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=f[c.power.main]||f[0],i=f[c.power.backup]||f[0],d=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function l(){return u("disrupt-main")}return l}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function l(){return u("disrupt-backup")}return l}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function l(){return u("shock-restore")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function l(){return u("shock-temp")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function l(){return u("shock-perm")}return l}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function l(){return u("idscan-toggle")}return l}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function l(){return u("emergency-toggle")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function l(){return u("bolt-toggle")}return l}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function l(){return u("light-toggle")}return l}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function l(){return u("safe-toggle")}return l}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function l(){return u("speed-toggle")}return l}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function l(){return u("open-close")}return l}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return b}()},26673:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.AirAlarm=function(){function d(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)],4)]})})}return d}(),b=function(l){return l===0?"green":l===1?"orange":"red"},S=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.air,V=v.mode,y=v.atmos_alarm,B=v.locked,I=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return p.danger.overall===0?y===0?A="Optimal":A="Caution: Atmos alert in area":p.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:b(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:b(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:b(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:b(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:b(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:b(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:b(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:b(p.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(l,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function p(){return v(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function p(){return v(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function p(){return v(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function p(){return v(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},h=function(l,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}},u=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.vents;return p.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function y(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function y(){return g("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function y(){return g("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function y(){return g("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function y(){return g("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function y(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return y}()})]})]})},V.name)})},c=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.scrubbers;return p.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function y(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function y(){return g("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function y(){return g("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function y(){return g("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function y(){return g("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function y(){return g("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function y(){return g("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function y(){return g("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return y}()})]})]})},V.name)})},m=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.modes,V=v.presets,y=v.emagged,B=v.mode,I=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:p.map(function(w){return(!w.emagonly||w.emagonly&&!!y)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:V.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},i=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(y){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:y.selected===-1?"Off":y.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:y.env,var:y.val})}return B}()})},y.val)})]},V.name)})]})})}},98565:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.exterior_status,m=u.interior_status,i=u.processing,d,l;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function s(){return h("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function s(){return h("cycle_ext_door")}return s}()}),m==="open"?l=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:i,color:m==="open"?"red":i?"yellow":null,onClick:function(){function s(){return h("force_int")}return s}()}):l=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function s(){return h("cycle_int_door")}return s}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,l]})})]})})}return N}()},76385:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=1,b=2,S=4,k=8,h=r.AirlockElectronics=function(){function m(i,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})})})}return m}(),u=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&b?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&k?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&N?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:N})}return v}()})})]})]})})},c=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.selected_accesses,v=C.one_access,p=C.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function V(){return s("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function V(){return s("set_one_access",{access:"all"})}return V}()})],4),accesses:p,selectedList:g,accessMod:function(){function V(y){return s("set",{access:y})}return V}(),grantAll:function(){function V(){return s("grant_all")}return V}(),denyAll:function(){function V(){return s("clear_all")}return V}(),grantDep:function(){function V(y){return s("grant_region",{region:y})}return V}(),denyDep:function(){function V(y){return s("deny_region",{region:y})}return V}()})}},55666:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),N=n(84947),b=-1,S=1,k=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),l=d.act,s=d.data,C=s.autofocus,g=s.buttons,v=g===void 0?[]:g,p=s.large_buttons,V=s.message,y=V===void 0?"":V,B=s.timeout,I=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(y.length>30?Math.ceil(y.length/4):0)+(y.length&&p?5:0),E=325+(v.length>2?100:0),P=function(){function R(M){T===0&&M===b?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,N.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?l("choose",{choice:v[T]}):D===o.KEY_ESCAPE?l("cancel"):D===o.KEY_LEFT?(M.preventDefault(),P(b)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return R}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:y})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,h,{selected:T})]})]})})})]})}return c}(),h=function(m,i){var d=(0,t.useBackend)(i),l=d.data,s=l.buttons,C=s===void 0?[]:s,g=l.large_buttons,v=l.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(V,y){return g&&C.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u,{button:V,id:y.toString(),selected:p===y})},y):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,u,{button:V,id:y.toString(),selected:p===y})},y)})})},u=function(m,i){var d=(0,t.useBackend)(i),l=d.act,s=d.data,C=s.large_buttons,g=m.button,v=m.selected,p=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function V(){return l("choose",{choice:g})}return V}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&p})}},16504:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.change_race,i=c.species,d=c.specimen,l=c.change_gender,s=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,p=c.change_skin_color,V=c.change_head_accessory_color,y=c.change_hair_color,B=c.change_secondary_hair_color,I=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,F=c.change_hair_gradient,U=c.change_facial_hair,_=c.facial_hair_styles,$=c.facial_hair_style,z=c.change_head_markings,G=c.head_marking_styles,H=c.head_marking_style,J=c.change_body_markings,ae=c.body_marking_styles,ce=c.body_marking_style,se=c.change_tail_markings,he=c.tail_marking_styles,ye=c.tail_marking_style,Ie=c.change_body_accessory,pe=c.body_accessory_styles,oe=c.body_accessory_style,Z=c.change_alt_head,q=c.alt_head_styles,ue=c.alt_head_style,me=!1;return(g||v||p||V||y||B||I||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:i.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.specimen,selected:ne.specimen===d,onClick:function(){function be(){return u("race",{race:ne.specimen})}return be}()},ne.specimen)})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function ne(){return u("gender",{gender:"male"})}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function ne(){return u("gender",{gender:"female"})}return ne}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function ne(){return u("gender",{gender:"plural"})}return ne}()})]}),!!me&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headaccessorystyle,selected:ne.headaccessorystyle===R,onClick:function(){function be(){return u("head_accessory",{head_accessory:ne.headaccessorystyle})}return be}()},ne.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.hairstyle,selected:ne.hairstyle===j,onClick:function(){function be(){return u("hair",{hair:ne.hairstyle})}return be}()},ne.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function ne(){return u("hair_gradient")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ne(){return u("hair_gradient_offset")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ne(){return u("hair_gradient_colour")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ne(){return u("hair_gradient_alpha")}return ne}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:_.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.facialhairstyle,selected:ne.facialhairstyle===$,onClick:function(){function be(){return u("facial_hair",{facial_hair:ne.facialhairstyle})}return be}()},ne.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headmarkingstyle,selected:ne.headmarkingstyle===H,onClick:function(){function be(){return u("head_marking",{head_marking:ne.headmarkingstyle})}return be}()},ne.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ae.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodymarkingstyle,selected:ne.bodymarkingstyle===ce,onClick:function(){function be(){return u("body_marking",{body_marking:ne.bodymarkingstyle})}return be}()},ne.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:he.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.tailmarkingstyle,selected:ne.tailmarkingstyle===ye,onClick:function(){function be(){return u("tail_marking",{tail_marking:ne.tailmarkingstyle})}return be}()},ne.tailmarkingstyle)})}),!!Ie&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodyaccessorystyle,selected:ne.bodyaccessorystyle===oe,onClick:function(){function be(){return u("body_accessory",{body_accessory:ne.bodyaccessorystyle})}return be}()},ne.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.altheadstyle,selected:ne.altheadstyle===ue,onClick:function(){function be(){return u("alt_head",{alt_head:ne.altheadstyle})}return be}()},ne.altheadstyle)})})]})})})}return b}(),N=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function d(){return u(i.action)}return d}()},i.key)})})}},77280:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.priority||[],m=u.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(i){return(0,e.createVNode)(1,"li","color-bad",i,0,null,i)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(i){return(0,e.createVNode)(1,"li","color-average",i,0,null,i)})],0)})})})}return N}()},66274:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},b=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function u(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=(0,a.useLocalState)(m,"tabIndex",0),C=s[0],g=s[1],v=function(){function p(V){switch(V){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return g(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return g(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return u}(),k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.data,l=(0,a.useLocalState)(m,"zoom",1),s=l[0],C=l[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(p){return C(p)}return v}(),children:g.filter(function(v){return v.z===3}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:s,icon:"circle",tooltip:v.name,color:b(v.danger)},v.ref)})})})}},90588:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.on,m=u.pressure,i=u.max_pressure,d=u.filter_type,l=u.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return h("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:m,onDrag:function(){function s(C,g){return h("custom_pressure",{pressure:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return h("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:l.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function C(){return h("set_filter",{filter:s.gas_type})}return C}()},s.label)})})]})})})})}return N}()},87486:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.on,i=c.pressure,d=c.max_pressure,l=c.node1_concentration,s=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function C(){return u("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:i===0,width:2.2,onClick:function(){function C(){return u("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:i,onDrag:function(){function C(g,v){return u("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function C(){return u("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:l}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:s})]})})})})}return b}(),N=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=S.node_name,i=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:i===0,onClick:function(){function d(){return u("set_node",{node_name:m,concentration:(i-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function d(l,s){return u("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function d(){return u("set_node",{node_name:m,concentration:(i+10)/100})}return d}()})]})}},46714:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.on,m=u.rate,i=u.max_rate,d=u.gas_unit,l=u.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return h("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:l,minValue:0,maxValue:i,value:m,onDrag:function(){function s(C,g){return h("custom_rate",{rate:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return h("max_rate")}return s}()})]})]})})})})}return N}()},66032:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),N=n(84947),b=r.AtmosTankControl=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[d].pressure," kpa"]}):"",Object.keys(i[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(l){return Object.keys(i[d]).indexOf(l)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(l),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(l),value:i[d][l],minValue:0,maxValue:100,children:(0,o.toFixed)(i[d][l],2)+"%"})},(0,f.getGasLabel)(l)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(l,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(l,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),b=n(37843),S=function(u,c,m,i){return u.requirements===null?!0:!(u.requirements.metal*i>c||u.requirements.glass*i>m)},k=r.Autolathe=function(){function h(u,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,l=d.total_amount,s=d.max_amount,C=d.metal_amount,g=d.glass_amount,v=d.busyname,p=d.busyamt,V=d.showhacked,y=d.buildQueue,B=d.buildQueueLen,I=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],F=(0,b.createSearch)(D,function(z){return z.name}),U="";B>0&&(U=y.map(function(z,G){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:y[G][0],onClick:function(){function H(){return i("remove_from_queue",{remove_from_queue:y.indexOf(z)+1})}return H}()},z)},G)}));var _=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||D)&&(d.showhacked||!z.hacked)}),D&&(0,t.filter)(F),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(I),$="Build";return D?$="Results for: '"+D+"':":A&&($="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(G){return x(G)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(G,H){return j(H)}return z}(),mb:1}),_.map(function(z){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:1})}return G}(),children:(0,b.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:10})}return G}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:25})}return G}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:z.max_multiplier})}return G}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(G){return(0,b.toTitleCase)(G)+": "+z.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return i("clear_queue")}return z}()})]})]})]})})})}return h}()},13940:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.implant,m=u.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function i(){return h("eject_case")}return i}()})]})})})}return N}()},55295:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.Biogenerator=function(){function u(c,m){var i=(0,a.useBackend)(m),d=i.data,l=i.config,s=d.container,C=d.processing,g=l.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),s?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,b)]})})})}return u}(),b=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.biomass,C=l.container,g=l.container_curr_reagents,v=l.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:s}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.has_plants,C=l.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.biomass,C=l.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],p=g[1],V=Object.entries(C).map(function(y,B){var I=Object.entries(y[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:y[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:sd&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!p&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>V&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i===0,tooltip:"Set to 0",onClick:function(){function I(){return u("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function I(){return u("set",{set_level:d})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function I(){return u("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:i,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return u("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:i===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return u("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return u("set",{set_level:v})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=l,onClick:function(){function w(){return u("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return b}()},31876:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(37843),o=n(91819),f=n(2971),N=n(84947),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],h={average:[.25,.5],bad:[.5,1/0]},u=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},i=r.BodyScanner=function(){function y(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:P})})}return y}(),d=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,l,{occupant:I}),(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,C,{occupant:I}),(0,e.createComponentVNode)(2,v,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:I.intOrgan})]})},l=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},s=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:u(k,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:h,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},p=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:h,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},73440:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=n(92462),b=r.BookBinder=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.selectedbook,d=m.book_categories,l=[];return d.map(function(s){return l[s.description]=s.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function s(){return c("print_book")}return s}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.title,onClick:function(){function s(){return(0,f.modalOpen)(h,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.author,onClick:function(){function s(){return(0,f.modalOpen)(h,"edit_selected_author")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(s){return s.description}),onSelected:function(){function s(C){return c("toggle_binder_category",{category_id:l[C]})}return s}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function s(){return(0,f.modalOpen)(h,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return i.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:s.category_id})}return C}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotClean=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.locked,i=c.noaccess,d=c.maintpanel,l=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,p=c.painame,V=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:i,onClick:function(){function y(){return u("blood")}return y}()})}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:i,onClick:function(){function y(){return u("ejectpai")}return y}()})})]})})}return b}()},36078:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotFloor=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.noaccess,i=c.painame,d=c.hullplating,l=c.replace,s=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,p=c.magnet,V=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function y(){return u("autotile")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Replace floor tiles",disabled:m,onClick:function(){function y(){return u("replacetiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function y(){return u("fixfloors")}return y}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function y(){return u("eattiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function y(){return u("maketiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function y(){return u("nagonempty")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function y(){return u("anchored")}return y}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function y(){return u("ejectpai")}return y}()})})]})})}return b}()},89121:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotHonk=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return b}()},39805:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotMed=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.locked,i=c.noaccess,d=c.maintpanel,l=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,p=c.painame,V=c.shut_up,y=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:i,onClick:function(){function E(){return u("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:y,disabled:i,onClick:function(){function E(){return u("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:i,onChange:function(){function E(P,R){return u("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:i,onChange:function(){function E(P,R){return u("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:i,onClick:function(){function E(){return u("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:i,onClick:function(){function E(){return u("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:i,onClick:function(){function E(){return u("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:i,onClick:function(){function E(){return u("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:i,onClick:function(){function E(){return u("ejectpai")}return E}()})})]})})})}return b}()},35519:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotSecurity=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.noaccess,i=c.painame,d=c.check_id,l=c.check_weapons,s=c.check_warrant,C=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return u("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return u("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return u("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return u("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return u("arrdeclare")}return v}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function v(){return u("ejectpai")}return v}()})})]})})}return b}()},71169:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(k,h){var u=k.cell,c=(0,o.useBackend)(h),m=c.act,i=u.cell_id,d=u.occupant,l=u.crimes,s=u.brigged_by,C=u.time_left_seconds,g=u.time_set_seconds,v=u.ref,p="";C>0&&(p+=" BrigCells__listRow--active");var V=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(k){var h=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),h.map(function(u){return(0,e.createComponentVNode)(2,f,{cell:u},u.ref)})]})},b=r.BrigCells=function(){function S(k,h){var u=(0,o.useBackend)(h),c=u.act,m=u.data,i=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N,{cells:i})})})})})}return S}()},19070:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data;u.nameText=u.occupant,u.timing&&(u.prisoner_hasrec?u.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.occupant}):u.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u.occupant}));var c="pencil-alt";u.prisoner_name&&(u.prisoner_hasrec||(c="exclamation-triangle"));var m=[],i=0;for(i=0;im?this.substring(0,m)+"...":this};var k=function(i,d){var l,s;if(!d)return[];var C=i.findIndex(function(g){return g.name===d.name});return[(l=i[C-1])==null?void 0:l.name,(s=i[C+1])==null?void 0:s.name]},h=function(i,d){d===void 0&&(d="");var l=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(l),(0,a.sortBy)(function(s){return s.name})])(i)},u=r.CameraConsole=function(){function m(i,d){var l=(0,N.useBackend)(d),s=l.act,C=l.data,g=l.config,v=C.mapRef,p=C.activeCamera,V=h(C.cameras),y=k(V,p),B=y[0],I=y[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return s("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,b.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,d){var l=(0,N.useBackend)(d),s=l.act,C=l.data,g=(0,N.useLocalState)(d,"searchText",""),v=g[0],p=g[1],V=C.activeCamera,y=h(C.cameras,v);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return p(w)}return B}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:y.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return s("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},64487:function(L,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(66586),f=n(37843),N=n(91819),b=n(2971),S=n(84947),k=function(d,l){var s,C;if(!l)return[];var g=d.findIndex(function(v){return v.name===l.name});return[(s=d[g-1])==null?void 0:s.name,(C=d[g+1])==null?void 0:C.name]},h=function(d,l){l===void 0&&(l="");var s=(0,f.createSearch)(l,function(C){return C.name});return(0,t.flow)([(0,a.filter)(function(C){return C==null?void 0:C.name}),l&&(0,a.filter)(s),(0,a.sortBy)(function(C){return C.name})])(d)},u=r.CameraConsole220=function(){function i(d,l){var s=(0,N.useLocalState)(l,"tabIndex",0),C=s[0],g=s[1],v=function(){function p(V){switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,S.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{children:(0,e.createComponentVNode)(2,b.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:C===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,b.Tabs,{fluid:!0,ml:C===1?1:0,mt:C===1?1:0,children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return g(0)}return p}(),children:[(0,e.createComponentVNode)(2,b.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return g(1)}return p}(),children:[(0,e.createComponentVNode)(2,b.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(C)]})})})})}return i}(),c=r.CameraConsoleMapContent=function(){function i(d,l){var s=(0,N.useBackend)(l),C=s.act,g=s.data,v=s.config,p=h(g.cameras),V=(0,N.useLocalState)(l,"zoom",1),y=V[0],B=V[1],I=g.mapRef,w=g.activeCamera,T=g.stationLevel,A=k(p,w),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,style:{display:"flex"},children:[(0,e.createComponentVNode)(2,b.Stack.Item,{height:"100%",style:{display:"flex",flex:"0 0 475px"},children:(0,e.createComponentVNode)(2,b.NanoMap,{onZoom:function(){function P(R){return B(R)}return P}(),children:p.filter(function(P){return P.z===T}).map(function(P){return(0,e.createComponentVNode)(2,b.NanoMap.NanoButton,{activeCamera:w,x:P.x,y:P.y,context:l,zoom:y,icon:"circle",tooltip:P.name,name:P.name,color:"blue",status:P.status},P.ref)})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{height:"100%",resizable:!0,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),w&&w.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-left",disabled:!x,onClick:function(){function P(){return C("switch_camera",{name:x})}return P}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function P(){return C("switch_camera",{name:E})}return P}()})],4)],4),(0,e.createComponentVNode)(2,b.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:I,type:"map"}})]})]})}return i}(),m=r.CameraConsoleOldContent=function(){function i(d,l){var s=(0,N.useBackend)(l),C=s.act,g=s.data,v=s.config,p=g.mapRef,V=g.activeCamera,y=(0,N.useLocalState)(l,"searchText",""),B=y[0],I=y[1],w=h(g.cameras,B),T=k(w,V),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,b.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(P,R){return I(R)}return E}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:w.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",V&&E.name===V.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function P(){return C("switch_camera",{name:E.name})}return P}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),V&&V.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return C("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return C("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,b.ByondUi,{className:"CameraConsole__map",params:{id:p,type:"map"}})],4)]})}return i}()},21348:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),N=n(84947),b=r.Canister=function(){function S(k,h){var u=(0,t.useBackend)(h),c=u.act,m=u.data,i=m.portConnected,d=m.tankPressure,l=m.releasePressure,s=m.defaultReleasePressure,C=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,p=m.name,V=m.canLabel,y=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=y.prim.options[B.prim].name);var A="";B.sec&&(A=y.sec.options[B.sec].name);var x="";B.ter&&(x=y.ter.options[B.ter].name);var E="";B.quart&&(E=y.quart.options[B.quart].name);var P=[],R=[],M=[],D=[],j=0;for(j=0;jp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:s.cooldown_time||!p.can_close,onClick:function(){function V(){return l("make_job_unavailable",{job:p.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!p.can_open,onClick:function(){function V(){return l("make_job_available",{job:p.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:s.cooldown_time||!p.can_prioritize,onClick:function(){function V(){return l("prioritize_job",{job:p.title})}return V}()})})]},p.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function p(V){return l("set",{access:V})}return p}(),grantAll:function(){function p(){return l("grant_all")}return p}(),denyAll:function(){function p(){return l("clear_all")}return p}(),grantDep:function(){function p(V){return l("grant_region",{region:V})}return p}(),denyDep:function(){function p(V){return l("deny_region",{region:V})}return p}()}):v=(0,e.createComponentVNode)(2,k);break;case 3:s.authenticated?s.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function p(){return l("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function p(){return l("wipe_my_logs")}return p}()})})]}):v=(0,e.createComponentVNode)(2,h):v=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),s.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function V(){return l("remote_demote",{remote_demote:p.name})}return V}()})})]},p.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),b=n(37843),S=r.CargoConsole=function(){function d(l,s){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),k=function(l,s){var C=(0,o.useLocalState)(s,"contentsModal",null),g=C[0],v=C[1],p=(0,o.useLocalState)(s,"contentsModalTitle",null),V=p[0],y=p[1];if(g!==null&&V!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){v(null),y(null)}return B}()})})]})},h=function(l,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,p=v.is_public,V=v.timeleft,y=v.moving,B=v.at_station,I,w;return!y&&!B?(I="Docked off-station",w="Call Shuttle"):!y&&B?(I="Docked at the station",w="Return Shuttle"):y&&(w="In Transit...",V!==1?I="Shuttle is en route (ETA: "+V+" minutes)":I="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:y,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},u=function(l,s){var C,g=(0,o.useBackend)(s),v=g.act,p=g.data,V=p.accounts,y=(0,o.useLocalState)(s,"selectedAccount"),B=y[0],I=y[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(C=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(l,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,p=v.requests,V=v.categories,y=v.supply_packs,B=(0,o.useSharedState)(s,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(s,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(s,"contentsModal",null),P=E[0],R=E[1],M=(0,o.useLocalState)(s,"contentsModalTitle",null),D=M[0],j=M[1],F=(0,b.createSearch)(A,function(H){return H.name}),U=(0,o.useLocalState)(s,"selectedAccount"),_=U[0],$=U[1],z=(0,a.flow)([(0,t.filter)(function(H){return H.cat===V.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(y),G="Crate Catalogue";return A?G="Results for '"+A+"':":I&&(G="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(H){return H.name}),selected:I,onSelected:function(){function H(J){return w(J)}return H}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(J,ae){return x(ae)}return H}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:z.map(function(H){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[H.name," (",H.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function J(){return g("order",{crate:H.ref,multiple:!1,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||H.singleton,onClick:function(){function J(){return g("order",{crate:H.ref,multiple:!0,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){R(H.contents),j(H.name)}return J}()})]})]},H.name)})})})]})})},m=function(l,s){var C=l.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},i=function(l,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,p=v.requests,V=v.orders,y=v.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:y.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],i=c[1],d=u.cl_data,l=u.last_cl,s={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function g(v){return v in s?s[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return i(!m)}return g}()}),children:d.map(function(g){return!m&&g.merge_ts<=l||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return h("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},56975:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),N=[1,5,10,20,30,50],b=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),l=d.act,s=d.data,C=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,u)]})})})}return c}(),k=function(m,i){var d=(0,a.useBackend)(i),l=d.act,s=d.data,C=s.amount,g=s.energy,v=s.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(p,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===p,content:p,onClick:function(){function y(){return l("amount",{amount:p})}return y}()})},V)})})})]})})})},h=function(m,i){for(var d=(0,a.useBackend)(i),l=d.act,s=d.data,C=s.chemicals,g=C===void 0?[]:C,v=[],p=0;p<(g.length+1)%3;p++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(V,y){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return l("dispense",{reagent:V.id})}return B}()},y)}),v.map(function(V,y){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},y)})]})})},u=function(m,i){var d=(0,a.useBackend)(i),l=d.act,s=d.data,C=s.isBeakerLoaded,g=s.beakerCurrentVolume,v=s.beakerMaxVolume,p=s.beakerContents,V=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function y(){return l("ejectBeaker")}return y}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:V,buttons:function(){function y(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return l("remove",{reagent:B.id,amount:-1})}return I}()}),b.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return l("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return l("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return y}()})})})}},48734:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),N=n(84947),b=r.ChemHeater=function(){function h(u,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(u,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,l=d.targetTemp,s=d.targetTempReached,C=d.autoEject,g=d.isActive,v=d.currentTemp,p=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function V(){return i("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!p,onClick:function(){function V(){return i("toggle_on")}return V}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(l,0),minValue:0,maxValue:1e3,onDrag:function(){function V(y,B){return i("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function V(y){return(0,a.toFixed)(y)+" K"}return V}()})||"\u2014"})]})})})},k=function(u,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,l=d.isBeakerLoaded,s=d.beakerCurrentVolume,C=d.beakerMaxVolume,g=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!l&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return i("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:l,beakerContents:g})})})}},35918:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),N=n(22677),b=n(66586),S=n(50175),k=["icon"];function h(x,E){if(x==null)return{};var P={},R=Object.keys(x),M,D;for(D=0;D=0)&&(P[M]=x[M]);return P}function u(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function P(R,M){return R.__proto__=M,R}return P}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return F}()})]})})})})},l=r.ChemMaster=function(){function x(E,P){var R=(0,a.useBackend)(P),M=R.data,D=M.condi,j=M.beaker,F=M.beaker_reagents,U=F===void 0?[]:F,_=M.buffer_reagents,$=_===void 0?[]:_,z=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s,{beaker:j,beakerReagents:U,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,C,{mode:z,bufferReagents:$}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.beaker,j=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function U(_,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function U(_,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$p.biomass?"bad":null,children:["Biomass: ",w[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",mx:"2px",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:w[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:w[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)]})]})})]})]})},m=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.patient_limb_data,V=v.limb_list,y=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p[B][0]+p[B][1],maxValue:p[B][5],ranges:{good:[0,p[B][5]/3],average:[p[B][5]/3,2*p[B][5]/3],bad:[2*p[B][5]/3,p[B][5]]},children:["Current Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+p[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+p[B][1]]})}),p[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!y[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][0]||p[B][1]),checked:!(y[B][0]||y[B][1])&&(p[B][0]||p[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&N),checked:!(y[B][2]&N)&&p[B][2]&N,onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&b),checked:!(y[B][2]&b)&&p[B][2]&b,onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&S),checked:!(y[B][2]&S)&&p[B][2]&S,onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},i=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.patient_organ_data,V=v.organ_list,y=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[B][3],":"," "]}),p[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!(p[B][2]||p[B][1])&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!y[B][2]&&!y[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!(p[B][2]||p[B][1])&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[B][0],checked:!y[B][0]&&p[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),p[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][3]," is missing!"]}),!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:p[B][0],maxValue:p[B][4],ranges:{good:[0,p[B][4]/3],average:[p[B][4]/3,2*p[B][4]/3],bad:[2*p[B][4]/3,p[B][4]]},children:"Current Damage: "+p[B][0]})]})]})},B)})})}},58378:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CloningPod=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.biomass,m=u.biomass_storage_capacity,i=u.sanguine_reagent,d=u.osseous_reagent,l=u.organs,s=u.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:i+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:i,step:1,unit:"units",onChange:function(){function C(g,v){return h("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return h("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function C(g,v){return h("remove_reagent",{reagent:"osseous_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return h("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!s&&(0,e.createComponentVNode)(2,t.Box,{children:[!l&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!l&&l.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return h("eject_organ",{organ_ref:C.ref})}return g}()})})]},C)})]}),!!s&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return N}()},14283:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:i.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function l(s,C){return h("setvalue",{idx:d.idx+1,value:C})}return l}()})]},d.name)})},i)})})})})})}return N}()},98577:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(l){switch(l){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,i);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function d(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),f(p)]})})})}return d}(),b=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.authenticated,V=v.noauthbutton,y=v.esc_section,B=v.esc_callable,I=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:V,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!y&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return g("callshuttle")}return R}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return g("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,h)},k=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.is_admin,V=v.gamma_armory_location,y=v.admin_levels,B=v.authenticated,I=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:y,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,h)})]})},h=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.msg_cooldown,V=v.emagged,y=v.cc_cooldown,B=v.security_level_color,I=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=V?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return y>0&&(P+=" ("+y+"s)",R+=" ("+y+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||p>0,onClick:function(){function M(){return g("announce")}return M}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!T||y>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return g("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!T||y>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||y>0,onClick:function(){function M(){return g("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return g("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return g("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return g("RestartNanoMob")}return M}()})})]})})})],4)},u=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.stat_display,V=v.authhead,y=v.current_message_title,B=p.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===p.type,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=p.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===p.icon,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!V,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!V,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.authhead,V=v.current_message_title,y=v.current_message,B=v.messages,I=v.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:y})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||V===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=l.levels,V=l.required_access,y=l.use_confirm,B=v.security_level;return y?p.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):p.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},i=function(l,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.is_admin,V=v.possible_cc_sounds;if(!p)return g("main");var y=(0,a.useLocalState)(s,"subtitle",""),B=y[0],I=y[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],P=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,U){return I(U)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,U){return A(U)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:M,onSelected:function(){function j(F){return D(F)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return g("test_sound",{sound:M})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return P(!E)}return j}()})})]})]})})}},70611:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.biomass,m=u.compost,i=u.biomass_capacity,d=u.compost_capacity,l=(0,a.useSharedState)(S,"vendAmount",1),s=l[0],C=l[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[c," / ",i," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,p){return C(p)}return g}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*s,icon:"arrow-circle-down",onClick:function(){function g(){return h("create",{amount:s})}return g}()})})})]})})})}return N}()},73744:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),N=n(84947);function b(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(V,y){return V.__proto__=y,V}return p}(),S(g,v)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},h=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],u=r.Contractor=function(){function g(v,p){var V=(0,t.useBackend)(p),y=V.act,B=V.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,l,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:h,finishedTimeout:3e3,onFinished:function(){function x(){return y("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(p,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(v,p){var V=(0,t.useBackend)(p),y=V.act,B=V.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return y("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,p){var V=(0,t.useBackend)(p),y=V.act,B=V.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return y("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return y("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,p){var V=(0,t.useBackend)(p),y=V.act,B=V.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return y("extract")}return M}()})},v,{children:I.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return y("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function U(){return y("activate",{uid:M.uid,difficulty:F+1})}return U}()},F)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var p=v.objective.locs.user_area_id,V=v.objective.locs.user_coords,y=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,I=p===y;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},l=function(v,p){var V=(0,t.useBackend)(p),y=V.act,B=V.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(g){b(v,g);function v(V){var y;return y=g.call(this,V)||this,y.timer=null,y.state={currentIndex:0,currentDisplay:[]},y}var p=v.prototype;return p.tick=function(){function V(){var y=this.props,B=this.state;if(B.currentIndex<=y.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(y.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(y.onFinished,y.finishedTimeout)}return V}(),p.componentDidMount=function(){function V(){var y=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return y.tick()},1e3/I)}return V}(),p.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),p.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(y){return(0,e.createFragment)([y,(0,e.createVNode)(1,"br")],0,y)})})}return V}(),v}(e.Component),C=function(v,p){var V=(0,t.useLocalState)(p,"viewingPhoto",""),y=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:y}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},57392:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.slowFactor,m=u.oneWay,i=u.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:i>0?"forward":i<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return h("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return h("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return h("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(l){return l+"x"}return d}(),onChange:function(){function d(l,s){return h("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return h("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return h("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return N}()},91413:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),N=n(99753),b=n(30381),S=n(84947),k=function(d,l){return d.dead?"Deceased":parseInt(d.health,10)<=l?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},h=function(d,l){return d.dead?"red":parseInt(d.health,10)<=l?"orange":parseInt(d.stat,10)===1?"blue":"green"},u=r.CrewMonitor=function(){function i(d,l){var s=(0,o.useBackend)(l),C=s.act,g=s.data,v=(0,o.useLocalState)(l,"tabIndex",0),p=v[0],V=v[1],y=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:p===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:p===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),y(p)]})})})}return i}(),c=function(d,l){var s=(0,o.useBackend)(l),C=s.act,g=s.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),p=g.possible_levels,V=g.viewing_current_z_level,y=g.is_advanced,B=(0,o.useLocalState)(l,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:y?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:p,selected:V,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:h(A,g.critThreshold),children:k(A,g.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3?g.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,l){var s=(0,o.useBackend)(l),C=s.data,g=(0,o.useLocalState)(l,"zoom",1),v=g[0],p=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function V(y){return p(y)}return V}(),children:C.crewmembers.filter(function(V){return V.sensor_type===3}).map(function(V){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:V.x,y:V.y,zoom:v,icon:"circle",tooltip:V.name+" ("+V.assignment+")",color:h(V,C.critThreshold)},V.ref)})})})}},55104:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],b=r.Cryo=function(){function h(u,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return h}(),S=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.isOperating,s=d.hasOccupant,C=d.occupant,g=C===void 0?[]:C,v=d.cellTemperature,p=d.cellTemperatureStatus,V=d.isBeakerLoaded,y=d.cooldownProgress,B=d.auto_eject_healthy,I=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return i("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return i("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return i(l?"switchOff":"switchOn")}return w}(),selected:l,children:l?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:y,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return i(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return i(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},k=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.isBeakerLoaded,s=d.beakerLabel,C=d.beakerVolume;return l?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=r.CryopodConsole=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.data,i=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,b),!!d&&(0,e.createComponentVNode)(2,S)]})})}return k}(),b=function(h,u){var c=(0,a.useBackend)(u),m=c.data,i=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:i.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(d,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},l)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.frozen_items,l=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return m("one_item",{item:s.uid})}return C}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],b=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],k=r.DNAModifier=function(){function p(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;y.dnaBlockSize=A,y.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})}return p}(),h=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),y.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},u=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(y.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:b.map(function(P,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},R)})}),E]})},c=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:y.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(R){return R.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(R,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:y.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},i=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},d=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,l,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,s)})]})},l=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function R(){return I("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return I("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return I("bufferOption",{option:"saveDisk",id:T})}return R}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(V,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return I("injectRejuvenators",{amount:E})}return R}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(V,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},v=function(V,y){for(var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,P=V.action,R=T.split(""),M=0,D=[],j=function(){for(var _=F/E+1,$=[],z=function(){var J=G+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:A===_&&x===J,content:R[F+G],mb:"0",onClick:function(){function ae(){return I(P,{block:_,subblock:J})}return ae}()}))},G=0;Gs.spawnpoints?"red":"green",children:[s.total," total, versus ",s.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return l("dispatch_ert",{silent:v})}return V}()})})]})})})},h=function(m,i){var d=(0,a.useBackend)(i),l=d.act,s=d.data,C=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return l("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,f.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},u=function(m,i){var d=(0,a.useBackend)(i),l=d.act,s=d.data,C=(0,a.useLocalState)(i,"text",""),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function p(V,y){return v(y)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return l("deny_ert",{reason:g})}return p}()})]})})}},77877:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.EconomyManager=function(){function S(k,h){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,b)})]})}return S}(),b=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},10707:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Electropack=function(){function b(S,k){var h=(0,t.useBackend)(k),u=h.act,c=h.data,m=c.power,i=c.code,d=c.frequency,l=c.minFrequency,s=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function C(){return u("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return u("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:l/10,maxValue:s/10,value:d/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return u("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return u("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function C(g,v){return u("code",{code:v})}return C}()})})]})})})})}return b}()},85307:function(L,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(37843),N=r.EmotePanel=function(){function S(k,h){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,b)})})})}return S}(),b=r.EmotePanelContent=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.emotes,d=(0,a.useLocalState)(h,"searchText",""),l=d[0],s=d[1],C=(0,a.useLocalState)(h,"filterVisible",""),g=C[0],v=C[1],p=(0,a.useLocalState)(h,"filterAudible",""),V=p[0],y=p[1],B=(0,a.useLocalState)(h,"filterSound",""),I=B[0],w=B[1],T=(0,a.useLocalState)(h,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(h,"filterTargettable",""),P=E[0],R=E[1],M=(0,a.useLocalState)(h,"useTarget",""),D=M[0],j=M[1],F=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function U(_,$){return s($)}return U}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function U(){return v(!g)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:V,onClick:function(){function U(){return y(!V)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:I,onClick:function(){function U(){return w(!I)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function U(){return x(!A)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function U(){return R(!P)}return U}()})]}),children:F})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:l.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+l+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:D,onClick:function(){function U(){return j(!D)}return U}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:i.filter(function(U){return U.key&&(l.length>0?U.key.toLowerCase().includes(l.toLowerCase())||U.name.toLowerCase().includes(l.toLowerCase()):!0)&&(g?U.visible:!0)&&(V?U.audible:!0)&&(I?U.sound:!0)&&(A?U.hands:!0)&&(P?U.targettable:!0)}).map(function(U){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return c("play_emote",{emote_key:U.key,useTarget:D})}return _}(),children:[U.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",U.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",U.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",U.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",U.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",U.name]},U.name)})})})})})],4)}return S}()},52640:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(90955),b=n(72026),S=r.EvolutionMenu=function(){function u(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)]})})})}return u}(),k=function(c,m){var i=(0,t.useBackend)(m),d=i.act,l=i.data,s=l.evo_points,C=l.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:s}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},h=function(c,m){var i=(0,t.useBackend)(m),d=i.act,l=i.data,s=l.evo_points,C=l.ability_tabs,g=l.purchased_abilities,v=l.view_mode,p=(0,t.useLocalState)(m,"selectedTab",C[0]),V=p[0],y=p[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var F=(0,a.createSearch)(j,function(U){return U.name+"|"+U.description});return(0,N.flow)([(0,b.filter)(function(U){return U==null?void 0:U.name}),(0,b.filter)(F),(0,b.sortBy)(function(U){return U==null?void 0:U.name})])(D)},P=function(D){if(w(D),D==="")return x(V.abilities);x(E(C.map(function(j){return j.abilities}).flat(),D))},R=function(D){y(D),x(D.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(D,j){P(j)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&V===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),g.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>s||g.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),N=n(73712),b=n(84947),S=["id","amount","lineDisplay","onClick"];function k(g,v){if(g==null)return{};var p={},V=Object.keys(g),y,B;for(B=0;B=0)&&(p[y]=g[y]);return p}var h=2e3,u={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,p){var V=(0,o.useBackend)(p),y=V.act,B=V.data,I=B.building;return(0,e.createComponentVNode)(2,b.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,b.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})})})}return g}(),m=function(v,p){var V=(0,o.useBackend)(p),y=V.act,B=V.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return y("withdraw",{id:A})}return x}()},A)})})},i=function(v,p){var V=(0,o.useBackend)(p),y=V.act,B=V.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(p,"searchText",""),E=x[0],P=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function D(j){return y("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return y("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return y("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,F){return P(F)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,C,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,p){var V=(0,o.useBackend)(p),y=V.act,B=V.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},l=function(v,p){var V=(0,o.useBackend)(p),y=V.act,B=V.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return y("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return y("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function P(){return y("queueswap",{from:E+1,to:E})}return P}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(v,p){var V=(0,o.useBackend)(p),y=V.act,B=V.data,I=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=k(v,S),E=B.materials[I]||0,P=w||E;if(!(P<=0&&!(I==="metal"||I==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:P.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/h*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,p){var V=(0,o.useBackend)(p),y=V.act,B=V.data,I=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return y("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return y("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),b=r.ExperimentConsole=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.open,d=m.feedback,l=m.occupant,s=m.occupant_name,C=m.occupant_status,g=function(){function p(){if(!l)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return f.get(C)}return B}(),y=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:y.color,children:y.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return p}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function p(){return c("door")}return p}()}),children:v})]})})}return S}()},14172:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,N=1013,b=function(h){var u="good",c=80,m=95,i=110,d=120;return hi?u="average":h>d&&(u="bad"),u},S=r.ExternalAirlockController=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.chamber_pressure,l=i.exterior_status,s=i.interior_status,C=i.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:b(d),value:d,minValue:f,maxValue:N,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return m("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return k}()},61893:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.scan_name?"eject":"id-card",selected:u.scan_name,content:u.scan_name?u.scan_name:"-----",tooltip:u.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return h("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.authenticated?"sign-out-alt":"id-card",selected:u.authenticated,disabled:u.nologin,content:u.realauth?"Log Out":"Log In",onClick:function(){function c(){return h("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:u.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u.paper?"eject":"paperclip",disabled:!u.authenticated&&!u.paper,content:u.paper?u.paper:"-----",onClick:function(){function c(){return h("paper")}return c}()}),!!u.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return h("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:u.destination?u.destination:"-----",disabled:!u.authenticated,onClick:function(){function c(){return h("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:u.sendError?u.sendError:"Send",disabled:!u.paper||!u.destination||!u.authenticated||u.sendError,onClick:function(){function c(){return h("send")}return c}()})})]})})]})})}return N}()},80031:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=k.config,m=u.contents,i=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",i," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function l(){return h("retrieve",{index:d.index})}return l}()})})]},d)})]})})})})}return N}()},39552:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=S.image,i=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":i&&"solid"||"none","border-width":"2px","border-color":"orange",padding:i&&"2px"||"4px"},onClick:d})},N=r.FloorPainter=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.availableStyles,i=c.selectedStyle,d=c.selectedDir,l=c.directionsPreview,s=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return u("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:i,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return u("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return u("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[C],isSelected:i===C,onSelect:function(){function g(){return u("select_style",{style:C})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:l[g],isSelected:g===d,onSelect:function(){function v(){return u("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return b}()},5090:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=function(i){return i?"("+i.join(", ")+")":"ERROR"},b=function(i,d){if(!(!i||!d)){if(i[2]!==d[2])return null;var l=Math.atan2(d[1]-i[1],d[0]-i[0]),s=Math.sqrt(Math.pow(d[1]-i[1],2)+Math.pow(d[0]-i[0],2));return{angle:(0,a.rad2deg)(l),distance:s}}},S=r.GPS=function(){function m(i,d){var l=(0,t.useBackend)(d),s=l.data,C=s.emped,g=s.active,v=s.area,p=s.position,V=s.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{area:v,position:p})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return m}(),k=function(i,d){var l=i.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:l?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),l?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},h=function(i,d){var l=(0,t.useBackend)(d),s=l.act,C=l.data,g=C.active,v=C.tag,p=C.same_z,V=(0,t.useLocalState)(d,"newTag",v),y=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function I(){return s("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function I(){return s("tag",{newtag:y})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===y,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return s("tag",{newtag:y})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function I(){return s("same_z")}return I}()})})]})})},u=function(i,d){var l=i.title,s=i.area,C=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:l||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),N(C)]})})},c=function(i,d){var l=(0,t.useBackend)(d),s=l.data,C=s.position,g=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},i,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,b(C,v.position))}).map(function(v,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(v.position)})]},p)})})})))}},1055:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),N=r.GeneModder=function(){function i(d,l){var s=(0,a.useBackend)(l),C=s.data,g=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,b)]})})})}return i}(),b=function(d,l){var s=(0,a.useBackend)(l),C=s.act,g=s.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function p(){return C("insert")}return p}()}),children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})},S=function(d,l){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(d,l){var s=(0,a.useBackend)(l),C=s.act,g=s.data,v=g.has_seed,p=g.seed,V=g.has_disk,y=g.disk,B,I;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+p.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:p.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?I=y.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},h=function(d,l){var s=(0,a.useBackend)(l),C=s.act,g=s.data,v=g.disk,p=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:p.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function y(){return C("extract",{id:V.id})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function y(){return C("replace",{id:V.id})}return y}()})})]},V)})},"Core Genes")},u=function(d,l){var s=(0,a.useBackend)(l),C=s.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(d,l){var s=(0,a.useBackend)(l),C=s.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:v})},m=function(d,l){var s=d.title,C=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(l),p=v.act,V=v.data,y=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(y!=null&&y.can_extract),icon:"save",onClick:function(){function I(){return p("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return p("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function N(b,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return N}()},86268:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.data,c=u.security,m=u.medical,i=u.diagnostic,d=u.radioactivity,l=u.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,N,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:l,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return b}(),N=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=S.label,m=S.type,i=m===void 0?null:m,d=S.is_active,l=S.act_on,s=l===void 0?"hud_on":l,C=S.act_off,g=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return u(d?g:s,{hud_type:i})}return v}()})})]})}},8977:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:i.color,content:i.amount||"0",disabled:!i.amount,onClick:function(){function d(){return h("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return N}()},70309:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.charging_state,m=u.charge_count,i=u.breaker,d=u.ext_power,l=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return C}(),s=function(){function C(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"Online":"Offline",color:i?"green":"red",px:1.5,onClick:function(){function C(){return h("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:l(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},64769:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=r.GuestPass=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return u("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return u("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return u("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return u("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return u("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return u("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return u("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(i){return u("access",{access:i})}return m}(),grantAll:function(){function m(){return u("grant_all")}return m}(),denyAll:function(){function m(){return u("clear_all")}return m}(),grantDep:function(){function m(i){return u("grant_region",{region:i})}return m}(),denyDep:function(){function m(i){return u("deny_region",{region:i})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return u("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return b}()},12219:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],N=null,b=r.HandheldChemDispenser=function(){function h(u,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.amount,s=d.energy,C=d.maxEnergy,g=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[s," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:l===v,content:v,onClick:function(){function V(){return i("amount",{amount:v})}return V}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"isolate"})}return v}()})]})})]})})})},k=function(u,c){for(var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.chemicals,s=l===void 0?[]:l,C=d.current_reagent,g=[],v=0;v<(s.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(p,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function y(){return i("dispense",{reagent:p.id})}return y}()},V)}),g.map(function(p,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},53917:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.HealthSensor=function(){function S(k,h){var u=(0,t.useBackend)(h),c=u.act,m=u.data,i=m.on,d=m.user_health,l=m.minHealth,s=m.maxHealth,C=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:l,maxValue:s,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,p){return c("alarm_health",{alarm_health:p})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:b(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),b=function(k){return k>50?"green":k>0?"orange":"red"}},93116:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=(0,a.useLocalState)(k,"currentDeck",""),i=m[0],d=m[1],l=(0,a.useLocalState)(k,"showReload",!1),s=l[0],C=l[1],g=c.decks,v=c.ai_override,p=c.emagged,V=function(){function y(B){u("select_deck",{deck:B}),d(B),C(!0),setTimeout(function(){C(!1)},3e3)}return y}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:y,selected:y===i,onClick:function(){function B(){return V(y)}return B}()},y)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function y(){return u("ai_override")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function y(){return u("wildlifecarp")}return y}()})]})})]})]})})]})})]})}return b}(),N=function(S,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},77209:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Instrument=function(){function u(c,m){var i=(0,t.useBackend)(m),d=i.act,l=i.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,h)]})})]})}return u}(),b=function(c,m){var i=(0,t.useBackend)(m),d=i.act,l=i.data,s=l.help;if(s)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,l=i.data,s=l.lines,C=l.playing,g=l.repeat,v=l.maxRepeats,p=l.tempo,V=l.minTempo,y=l.maxTempo,B=l.tickLag,I=l.volume,w=l.minVolume,T=l.maxVolume,A=l.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:s.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return d("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=y,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:p+B})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:p-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,P){return d("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,m){var i=(0,t.useBackend)(m),d=i.act,l=i.data,s=l.allowedInstrumentNames,C=l.instrumentLoaded,g=l.instrument,v=l.canNoteShift,p=l.noteShift,V=l.noteShiftMin,y=l.noteShiftMax,B=l.sustainMode,I=l.sustainLinearDuration,w=l.sustainExponentialDropoff,T=l.legacy,A=l.sustainDropoffVolume,x=l.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:y,value:p,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},h=function(c,m){var i=(0,t.useBackend)(m),d=i.act,l=i.data,s=l.playing,C=l.lines,g=l.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||s,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function V(){return d("modifyline",{line:p+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function V(){return d("deleteline",{line:p+1})}return V}()})],4),children:v},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},28847:function(L,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(91819),f=n(2971),N=n(84947),b=r.Jukebox=function(){function h(u,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,l=d.active,s=d.looping,C=d.track_selected,g=d.volume,v=d.max_volume,p=d.songs,V=d.startTime,y=d.endTime,B=d.worldTime,I=d.need_coin,w=d.payment,T=d.advanced_admin,A=35,x=!w&&I&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(p),P=p.find(function(F){return F.name===C}),R=E.length,M=P?E.findIndex(function(F){return F.name===P.name})+1:0,D=function(){function F(U){var _=Math.floor(U/60),$=U%60,z=String(_).padStart(2,"0")+":"+String($).padStart(2,"0");return z}return F}(),j=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[l?s?"\u221E":D(Math.round((B-V)/10)):s?"\u221E":D(P.length)," ","/ ",s?"\u221E":D(P.length)]});return(0,e.createComponentVNode)(2,N.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[x?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{bold:!0,maxWidth:"240px",children:P.name.length>A?(0,e.createVNode)(1,"marquee",null,P.name,0):P.name}),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:l?"pause":"play",color:"transparent",content:l?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:l,onClick:function(){function F(){return i("toggle")}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:l||I&&!T,tooltip:I&&!T?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:s,onClick:function(){function F(){return i("loop",{looping:!s})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:V,current:s?y:B,end:y,children:j})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[l?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return i("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return i("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return i("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.Knob,{size:2,color:g<=25?"green":g<=50?"":g<=75?"orange":"red",value:g,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function F(U,_){return i("set_volume",{volume:_})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,f.Button,{bold:!0,icon:"random",color:"transparent",content:M+"/"+R,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function F(){var U=Math.floor(Math.random()*R),_=E[U];i("select_track",{track:_.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:P.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:D(F.length)})]}),onClick:function(){function U(){i("select_track",{track:F.name})}return U}()})},F.name)})})})]})})]})}return h}(),S=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},k=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},64261:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!u.swiping&&!u.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!u.redAvailable,onClick:function(){function i(){return h("triggerevent",{triggerevent:"Red Alert"})}return i}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Emergency Response Team"})}return i}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return i}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return i}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!u.hasSwiped&&!u.ertreason&&u.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):u.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):u.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):u.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,u.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:u.ertreason?"":"red",icon:u.ertreason?"check":"pencil-alt",content:u.ertreason?u.ertreason:"-----",disabled:u.busy,onClick:function(){function i(){return h("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:u.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:u.busy||u.hasConfirm,onClick:function(){function i(){return h("reset")}return i}()}),children:m})]})})}return N}()},34898:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.KitchenMachine=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.data,m=u.config,i=c.ingredients,d=c.operating,l=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:d,name:l}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),b=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function l(){return c("cook")}return l}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function l(){return c("eject")}return l}()})})]})})}},52564:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.isAdmin,l=i.isSlaved,s=i.isMalf,C=i.isAIMalf,g=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&l)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",l,"."]}),!!(s||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,N),g===1&&(0,e.createComponentVNode)(2,b)]})})}return k}(),N=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.has_zeroth_laws,l=i.zeroth_laws,s=i.has_ion_laws,C=i.ion_laws,g=i.ion_law_nr,v=i.has_inherent_laws,p=i.inherent_laws,V=i.has_supplied_laws,y=i.supplied_laws,B=i.channels,I=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,P=i.supplied_law,R=i.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:l,ctx:u}),!!s&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:u}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:p,ctx:u}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:y,ctx:u}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},b=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name+" - "+l.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:l.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.laws.has_ion_laws>0&&l.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),l.laws.has_zeroth_laws>0&&l.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),l.laws.has_inherent_laws>0&&l.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),l.laws.has_supplied_laws>0&&l.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},l.name)})})},S=function(h,u){var c=(0,a.useBackend)(h.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:h.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),h.laws.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:l.state?"Yes":"No",selected:l.state,onClick:function(){function s(){return m("state_law",{ref:l.ref,state_law:l.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:l.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:l.ref})}return s}()})],4)]})]},l.law)})]})})}},55499:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryComputer=function(){function g(v,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),b=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return y("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(p,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(p,"rate_info",{bookid:I.id})}return T}()})]})},S=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function P(){return y("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return y("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},k=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return y("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return y("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},u=function(v,p){var V=(0,a.useBackend)(p),y=V.data,B=(0,a.useLocalState)(p,"tabIndex",0),I=B[0],w=B[1],T=y.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,p){var V=(0,a.useLocalState)(p,"tabIndex",0),y=V[0];switch(y){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,s);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return y("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return y("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return y("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return y("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return y("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return y("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return y("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return y("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return y("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return y("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return y("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},l=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return y("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return y("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return y("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},s=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return y("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,p){var V=(0,a.useBackend)(p),y=V.act,B=V.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",b),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",h)},92682:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryManager=function(){function u(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,b)})]})}return u}(),b=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,h);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.ckey,C=l.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",s,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return d("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},68e3:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),N=n(31068),b=n(84947),S=r.ListInputModal=function(){function u(c,m){var i=(0,f.useBackend)(m),d=i.act,l=i.data,s=l.items,C=s===void 0?[]:s,g=l.message,v=g===void 0?"":g,p=l.init_value,V=l.timeout,y=l.title,B=(0,f.useLocalState)(m,"selected",C.indexOf(p)),I=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],R=E[1],M=function(){function G(H){var J=$.length-1;if(H===N.KEY_DOWN)if(I===null||I===J){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var ce;w(I+1),(ce=document.getElementById((I+1).toString()))==null||ce.scrollIntoView()}else if(H===N.KEY_UP)if(I===null||I===0){var se;w(J),(se=document.getElementById(J.toString()))==null||se.scrollIntoView()}else{var he;w(I-1),(he=document.getElementById((I-1).toString()))==null||he.scrollIntoView()}}return G}(),D=function(){function G(H){H!==I&&w(H)}return G}(),j=function(){function G(){x(!1),x(!0)}return G}(),F=function(){function G(H){var J=String.fromCharCode(H),ae=C.find(function(he){return he==null?void 0:he.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ae){var ce,se=C.indexOf(ae);w(se),(ce=document.getElementById(se.toString()))==null||ce.scrollIntoView()}}return G}(),U=function(){function G(H){var J;H!==P&&(R(H),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return G}(),_=function(){function G(){x(!A),R("")}return G}(),$=C.filter(function(G){return G==null?void 0:G.toLowerCase().includes(P.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(I.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,b.Window,{title:y,width:325,height:z,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function G(H){var J=window.event?H.which:H.keyCode;(J===N.KEY_DOWN||J===N.KEY_UP)&&(H.preventDefault(),M(J)),J===N.KEY_ENTER&&(H.preventDefault(),d("submit",{entry:$[I]})),!A&&J>=N.KEY_A&&J<=N.KEY_Z&&(H.preventDefault(),F(J)),J===N.KEY_ESCAPE&&(H.preventDefault(),d("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return _()}return G}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:$,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,h,{filteredItems:$,onSearch:U,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[I]})})]})})})]})}return u}(),k=function(c,m){var i=(0,f.useBackend)(m),d=i.act,l=c.filteredItems,s=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:l.map(function(p,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function y(){return s(V)}return y}(),onDblClick:function(){function y(B){B.preventDefault(),d("submit",{entry:l[v]})}return y}(),onKeyDown:function(){function y(B){var I=window.event?B.which:B.keyCode;g&&I>=N.KEY_A&&I<=N.KEY_Z&&(B.preventDefault(),C())}return y}(),selected:V===v,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(y){return y.toUpperCase()})},V)})})},h=function(c,m){var i=(0,f.useBackend)(m),d=i.act,l=c.filteredItems,s=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(p){p.preventDefault(),d("submit",{entry:l[g]})}return v}(),onInput:function(){function v(p,V){return s(V)}return v}(),placeholder:"Search...",value:C})}},75965:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return P("configure",{key:T,value:D,ref:x})}return R}()})},N=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return P("configure",{key:T,value:!A,ref:x})}return R}()})},b=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return P("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,P=(0,a.useBackend)(w),R=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},k=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,P=I.values,R=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},h=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},u=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,P=I.userburn,R=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,P=I.statusmaxhealth,R=I.statusbrute,M=I.statusburn,D=I.statustoxin,j=I.statusoxy,F=I.statustemp,U=I.statusnutrition,_=I.statusfingerprints,$=I.statusdna,z=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?_:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?$:"???"})]})}),!!T&&!!z&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),z.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:h,health_analyzer:u,status_readout:c},i=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},l=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,F=x.complexity_max,U=x.wearer_name,_=x.wearer_job,$=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:$}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",_]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,F=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.modules,R=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,l,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return D(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return D(j.ref)}return F}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,i)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return B}(),y=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},86322:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(22677),b=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function k(h,u){var c=(0,t.useBackend)(u),m=c.act,i=c.data,d=i.autolink,l=i.code,s=i.frequency,C=i.linkedMagnets,g=i.magnetConfiguration,v=i.path,p=i.pathPosition,V=i.probing,y=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:l})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:y?"power-off":"times",content:y?"On":"Off",selected:y,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(b.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,N.modalOpen)(u,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(I,w){var T=b.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===p,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),C.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:T})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return k}()},54374:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.recharge_port,m=c&&c.mech,i=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function l(){return h("reconnect")}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.charge/i.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.charge})," / "+i.maxcharge]})})]})})})})}return N}()},14823:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(37843),b=r.MechaControlConsole=function(){function S(k,h){var u=(0,t.useBackend)(h),c=u.act,m=u.data,i=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function l(){return c("clear_log")}return l}()}),children:d.map(function(l){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",l.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(l.message)})]},l.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i.length&&i.map(function(l){return(0,e.createComponentVNode)(2,o.Section,{title:l.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:l.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:l.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:l.uid})}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[l.maxHealth*.75,1/0],average:[l.maxHealth*.5,l.maxHealth*.75],bad:[-1/0,l.maxHealth*.5]},value:l.health,maxValue:l.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:l.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[l.cellMaxCharge*.75,1/0],average:[l.cellMaxCharge*.5,l.cellMaxCharge*.75],bad:[-1/0,l.cellMaxCharge*.5]},value:l.cellCharge,maxValue:l.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[l.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:l.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(l.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:l.active||"None"}),l.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[l.cargoMax*.75,1/0],average:[l.cargoMax*.5,l.cargoMax*.75],good:[-1/0,l.cargoMax*.5]},value:l.cargoUsed,maxValue:l.cargoMax})})||null]})},l.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),N=n(84947),b=n(51185),S=n(69774),k=n(76519),h={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},u={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,A){(0,f.modalOpen)(T,"edit",{field:A.edit,value:A.value})},m=function(T,A){var x=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:x.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:x.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[x.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:x.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:x.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:h[x.severity],children:x.severity})]})})})},i=r.MedicalRecords=function(){function w(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.loginState,R=E.screen;if(!P.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var M;return R===2?M=(0,e.createComponentVNode)(2,d):R===3?M=(0,e.createComponentVNode)(2,l):R===4?M=(0,e.createComponentVNode)(2,s):R===5?M=(0,e.createComponentVNode)(2,p):R===6&&(M=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,I),M]})})]})}return w}(),d=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.records,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],F=(0,t.useLocalState)(A,"sortId","name"),U=F[0],_=F[1],$=(0,t.useLocalState)(A,"sortOrder",!0),z=$[0],G=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function H(){return E("screen",{screen:3})}return H}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function H(J,ae){return j(ae)}return H}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,y,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,y,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,y,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,y,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,y,{id:"m_stat",children:"Mental Status"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.id+"|"+H.rank+"|"+H.p_stat+"|"+H.m_stat})).sort(function(H,J){var ae=z?1:-1;return H[U].localeCompare(J[U])*ae}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+u[H.p_stat],onClick:function(){function J(){return E("view_record",{view_record:H.ref})}return J}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.m_stat})]},H.id)})]})})})],4)},l=function(T,A){var x=(0,t.useBackend)(A),E=x.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function P(){return E("del_all_med_records")}return P}()})})]})})},s=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical,M=P.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return E("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return E("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",onClick:function(){function D(){return E("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.general;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(A,R)}return D}()})]},M)})})}),!!P.has_photos&&P.photos.map(function(R,M){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:R,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",M+1]},M)})]})},g=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical;return!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:R.fields.map(function(M,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(A,M)}return j}()})]},D)})})})})},v=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function M(){return(0,f.modalOpen)(A,"add_comment")}return M}()}),children:R.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):R.comments.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:M.header}),(0,e.createVNode)(1,"br"),M.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_comment",{del_comment:D+1})}return j}()})]},D)})})})},p=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.virus,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],F=(0,t.useLocalState)(A,"sortId2","name"),U=F[0],_=F[1],$=(0,t.useLocalState)(A,"sortOrder2",!0),z=$[0],G=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function H(J,ae){return j(ae)}return H}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,B,{id:"severity",children:"Severity"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.max_stages+"|"+H.severity})).sort(function(H,J){var ae=z?1:-1;return H[U].localeCompare(J[U])*ae}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+H.severity,onClick:function(){function J(){return E("vir",{vir:H.D})}return J}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:h[H.severity],children:H.severity})]},H.id)})]})})})})],4)},V=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medbots;return R.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),R.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+M.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",M.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[M.area||"Unknown"," (",M.x,", ",M.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.use_beaker?"Reservoir: "+M.total_volume+"/"+M.maximum_volume:"Using internal synthesizer"})]},M.id)})]})})})},y=function(T,A){var x=(0,t.useLocalState)(A,"sortId","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder",!0),M=R[0],D=R[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[F,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var x=(0,t.useLocalState)(A,"sortId2","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder2",!0),M=R[0],D=R[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[F,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.screen,M=P.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:R===2,onClick:function(){function D(){E("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:R===5,onClick:function(){function D(){E("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:R===6,onClick:function(){function D(){return E("screen",{screen:6})}return D}(),children:"Medibot Tracking"}),R===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:R===3,children:"Record Maintenance"}),R===4&&M&&!M.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:R===4,children:["Record: ",M.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=h.product,l=h.productImage,s=h.productCategory,C=i.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>C,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},N=function(h,u){var c=(0,a.useBackend)(u),m=c.data,i=(0,a.useLocalState)(u,"tabIndex",1),d=i[0],l=m.products,s=m.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:l[C[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:C[d]},g.name)})})},b=r.MerchVendor=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.user_cash,l=i.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,l,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!l,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return k}(),S=function(h,u){var c=(0,a.useBackend)(u),m=c.data,i=(0,a.useLocalState)(u,"tabIndex",1),d=i[0],l=i[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function C(){return l(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function C(){return l(2)}return C}(),children:"Decorations"})]})}},53551:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=["title","items"];function b(i,d){if(i==null)return{};var l={},s=Object.keys(i),C,g;for(g=0;g=0)&&(l[C]=i[C]);return l}var S={Alphabetical:function(){function i(d,l){return d-l}return i}(),Availability:function(){function i(d,l){return-(d.affordable-l.affordable)}return i}(),Price:function(){function i(d,l){return d.price-l.price}return i}()},k=r.MiningVendor=function(){function i(d,l){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return i}(),h=function(d,l){var s=(0,t.useBackend)(l),C=s.act,g=s.data,v=g.has_id,p=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return C("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},u=function(d,l){var s=(0,t.useBackend)(l),C=s.act,g=s.data,v=g.has_id,p=g.id,V=g.items,y=(0,t.useLocalState)(l,"search",""),B=y[0],I=y[1],w=(0,t.useLocalState)(l,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(l,"descending",!1),E=x[0],P=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(V).map(function(j,F){var U=Object.entries(j[1]).filter(R).map(function(_){return _[1].affordable=v&&p.points>=_[1].price,_[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:U},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,l){var s=(0,t.useLocalState)(l,"search",""),C=s[0],g=s[1],v=(0,t.useLocalState)(l,"sort",""),p=v[0],V=v[1],y=(0,t.useLocalState)(l,"descending",!1),B=y[0],I=y[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},m=function(d,l){var s=(0,t.useBackend)(l),C=s.act,g=s.data,v=d.title,p=d.items,V=b(d,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:p.map(function(y){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+d+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(C){return C.name&&(d.length>0?C.name.toLowerCase().includes(d.toLowerCase())||C.desc.toLowerCase().includes(d.toLowerCase())||C.author.toLowerCase().includes(d.toLowerCase()):!0)}).map(function(C){return(0,e.createComponentVNode)(2,o.Collapsible,{title:C.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:C.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:C.desc})]},C.name)})})})})})],4)}return b}()},61100:function(L,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NTRecruiter=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.gamestatus,m=u.cand_name,i=u.cand_birth,d=u.cand_age,l=u.cand_species,s=u.cand_planet,C=u.cand_job,g=u.cand_records,v=u.cand_curriculum,p=u.total_curriculums,V=u.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function y(){return h("start_game")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function y(){return h("instructions")}return y}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function y(){return h("back_to_menu")}return y}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss"," ",(0,e.createVNode)(1,"b",null,p,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they"," ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",v]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,m,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,l,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,C,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,g,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function y(){return h("dismiss")}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function y(){return h("hire")}return y}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",v-1,"/",p]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function y(){return h("back_to_menu")}return y}()})})]})})})}return N}()},6802:function(L,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(30381),N=n(84947),b=n(22677),S=n(76519),k=["icon","iconSpin","selected","security","onClick","title","children"],h=["name"];function u(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],i={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,F=E.channels,U=E.channel_idx,_=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),z=$[0],G=$[1],H=(0,t.useLocalState)(T,"viewingPhoto",""),J=H[0],ae=H[1],ce=(0,t.useLocalState)(T,"censorMode",!1),se=ce[0],he=ce[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,C));var Ie=F.reduce(function(pe,oe){return pe+oe.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:P&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,b.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,l,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return G(!z)}return pe}()}),(0,e.createComponentVNode)(2,l,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Ie>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Ie>=10?"9+":Ie})}),(0,e.createComponentVNode)(2,l,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(pe){return(0,e.createComponentVNode)(2,l,{icon:pe.icon,title:pe.name,selected:j===2&&F[_-1]===pe,onClick:function(){function oe(){return x("channel",{uid:pe.uid})}return oe}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,b.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,l,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return he(!se)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,l,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,b.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,l,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,b.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,l,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,l,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return I}(),l=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,P=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,F=j===void 0?!1:j,U=w.onClick,_=w.title,$=w.children,z=u(w,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},z,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),$]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,F=E.stories,U=E.wanted,_=(0,t.useLocalState)(T,"fullStories",[]),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"censorMode",!1),H=G[0],J=G[1],ae=P===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ae?ae.icon:"newspaper",mr:"0.5rem"}),ae?ae.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ce){return!$.includes(ce.uid)&&ce.body.length+3>c?Object.assign({},ce,{body_short:ce.body.substr(0,c-4)+"..."}):ce}).map(function(ce,se){return(0,e.createComponentVNode)(2,g,{story:ce},se)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ae&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([H&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ae.admin&&!R,selected:ae.censored,icon:ae.censored?"comment-slash":"comment",content:ae.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ce(){return x("censor_channel",{uid:ae.uid})}return ce}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ce(){return(0,b.modalOpen)(T,"manage_channel",{uid:ae.uid})}return ce}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ae.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ae.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ae.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ae.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(ce,se){return ce+se.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,R=E.wanted,M=Object.entries(P).reduce(function(D,j){var F=j[0],U=j[1];return D+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,g,{story:R,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(D){return Object.assign({},i[D],{id:D,jobs:P[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"censorMode",!1),$=_[0],z=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&$&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:P.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(G,H){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},H)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return U([].concat(F,[P.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=u(w,h),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return R(A)}return M}()},x)))},p=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!P){(0,b.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||D||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),H=G[0],J=G[1],ae=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),ce=ae[0],se=ae[1],he=(0,t.useLocalState)(T,"isPublic",R?!!(P!=null&&P.public):!1),ye=he[0],Ie=he[1],pe=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=pe[0],Z=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function q(ue,me){return U(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function q(ue,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:H,onInput:function(){function q(ue,me){return J(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ce,width:"35%",mr:"0.5rem",onInput:function(){function q(ue,me){return se(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ce,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Ie(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,b.modalAnswer)(T,w.id,"",{author:F,name:$.substr(0,49),description:H.substr(0,128),icon:ce,public:ye?1:0,admin_locked:oe?1:0})}return q}()})]})},y=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,F=w.args.scanned_user,U=R.slice().sort(function(q,ue){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===ue.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===F||!!q.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),H=G[0],J=G[1],ae=(0,t.useLocalState)(T,"title",""),ce=ae[0],se=ae[1],he=(0,t.useLocalState)(T,"body",""),ye=he[0],Ie=he[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),oe=pe[0],Z=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:$,onInput:function(){function q(ue,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:H,options:U.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ue){return J(ue)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ce,onInput:function(){function q(ue,me){return se(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(ue,me){return Ie(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ce,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),ye.split("\n").map(function(q,ue){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||H.trim().length===0||ce.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,b.modalAnswer)(T,"create_story","",{author:$,channel:H,title:ce.substr(0,127),body:ye.substr(0,1023),admin_locked:oe?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),H=G[0],J=G[1],ae=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ce=ae[0],se=ae[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function he(ye,Ie){return U(Ie)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function he(ye,Ie){return z(Ie)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:H,maxLength:"512",rows:"4",onInput:function(){function he(ye,Ie){return J(Ie)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function he(){return x(P?"eject_photo":"attach_photo")}return he}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ce,icon:ce?"lock":"lock-open",content:ce?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function he(){return se(!ce)}return he}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function he(){x("clear_wanted_notice"),(0,b.modalClose)(T)}return he}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||$.trim().length===0||H.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function he(){(0,b.modalAnswer)(T,w.id,"",{author:F,name:$.substr(0,127),description:H.substr(0,511),admin_locked:ce?1:0})}return he}()})]})};(0,b.modalRegisterBodyOverride)("create_channel",V),(0,b.modalRegisterBodyOverride)("manage_channel",V),(0,b.modalRegisterBodyOverride)("create_story",y),(0,b.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data;return u.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.authdisk?"eject":"id-card",selected:u.authdisk,content:u.diskname?u.diskname:"-----",tooltip:u.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return h("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!u.authdisk,selected:u.authcode,content:u.codemsg,onClick:function(){function c(){return h("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.anchored?"check":"times",selected:u.anchored,disabled:!u.authdisk,content:u.anchored?"YES":"NO",onClick:function(){function c(){return h("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:u.time,disabled:!u.authfull,tooltip:"Set Timer",onClick:function(){function c(){return h("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.safety?"check":"times",selected:u.safety,disabled:!u.authfull,content:u.safety?"ON":"OFF",tooltip:u.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return h("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(u.timer,"bomb"),disabled:u.safety||!u.authfull,color:"red",content:u.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return h("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return h("deploy")}return c}()})})})})}return N}()},45523:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),N=n(2971),b=n(84947),S=r.NumberInputModal=function(){function h(u,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,l=d.init_value,s=d.large_buttons,C=d.message,g=C===void 0?"":C,v=d.timeout,p=d.title,V=(0,f.useLocalState)(c,"input",l),y=V[0],B=V[1],I=function(){function A(x){x!==y&&B(x)}return A}(),w=function(){function A(x){x!==y&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,b.Window,{title:p,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:y}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:y,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:y})})]})})})]})}return h}(),k=function(u,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,l=d.min_value,s=d.max_value,C=d.init_value,g=d.round_value,v=u.input,p=u.onClick,V=u.onChange,y=Math.round(v!==l?Math.max(v/2,l):s/2),B=v===l&&l>0||v===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===l,icon:"angle-double-left",onClick:function(){function I(){return p(l)}return I}(),tooltip:v===l?"Min":"Min ("+l+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:l,maxValue:s,onChange:function(){function I(w,T){return V(T)}return I}(),onEnter:function(){function I(w,T){return i("submit",{entry:T})}return I}(),value:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function I(){return p(s)}return I}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return p(y)}return I}(),tooltip:B?"Split":"Split ("+y+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===C,icon:"redo",onClick:function(){function I(){return p(C)}return I}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},48314:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],b=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function i(d,l){var s=(0,t.useBackend)(l),C=s.act,g=s.data,v=g.hasOccupant,p=g.choice,V;return p?V=(0,e.createComponentVNode)(2,m):V=v?(0,e.createComponentVNode)(2,u):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function y(){return C("choiceOff")}return y}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function y(){return C("choiceOn")}return y}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return i}(),u=function(d,l){var s=(0,t.useBackend)(l),C=s.data,g=C.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),b.map(function(v,p){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},p)},p)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:k[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,l){var s=(0,t.useBackend)(l),C=s.act,g=s.data,v=g.verbose,p=g.health,V=g.healthAlarm,y=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function w(){return C(p?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function w(){return C(y?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return C(I?"critOff":"critOn")}return w}()})})]})}},87511:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function N(l,s){var C=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(C)return(C=C.call(l)).next.bind(C);if(Array.isArray(l)||(C=b(l))||s&&l&&typeof l.length=="number"){C&&(l=C);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(l,s){if(l){if(typeof l=="string")return S(l,s);var C=Object.prototype.toString.call(l).slice(8,-1);if(C==="Object"&&l.constructor&&(C=l.constructor.name),C==="Map"||C==="Set")return Array.from(l);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return S(l,s)}}function S(l,s){(s==null||s>l.length)&&(s=l.length);for(var C=0,g=new Array(s);CC},c=function(s,C){var g=s.name,v=C.name;if(!g||!v)return 0;var p=g.match(k),V=v.match(k);if(p&&V&&g.replace(k,"")===v.replace(k,"")){var y=parseInt(p[1],10),B=parseInt(V[1],10);return y-B}return u(g,v)},m=function(s,C){var g=s.searchText,v=s.source,p=s.title,V=s.color,y=s.sorted,B=v.filter(h(g));return y&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:p+" - ("+v.length+")",children:B.map(function(I){return(0,e.createComponentVNode)(2,i,{thing:I,color:V},I.name)})})},i=function(s,C){var g=(0,t.useBackend)(C),v=g.act,p=s.color,V=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:p,onClick:function(){function y(){return v("orbit",{ref:V.ref})}return y}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function l(s,C){for(var g=(0,t.useBackend)(C),v=g.act,p=g.data,V=p.alive,y=p.antagonists,B=p.highlights,I=p.response_teams,w=p.auto_observe,T=p.dead,A=p.ghosts,x=p.misc,E=p.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],M=P[1],D={},j=N(y),F;!(F=j()).done;){var U=F.value;D[U.antag]===void 0&&(D[U.antag]=[]),D[U.antag].push(U)}var _=Object.entries(D);_.sort(function(z,G){return u(z[0],G[0])});var $=function(){function z(G){for(var H=0,J=[_.map(function(se){var he=se[0],ye=se[1];return ye}),B,V,A,T,E,x];H0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:_.map(function(z){var G=z[0],H=z[1];return(0,e.createComponentVNode)(2,o.Section,{title:G+" - ("+H.length+")",level:2,children:H.filter(h(R)).sort(c).map(function(J){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:J},J.name)})},G)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:I,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return l}()},54528:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(50175);function b(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,N.createLogger)("OreRedemption"),k=function(C){return C.toLocaleString("en-US")+" pts"},h=r.OreRedemption=function(){function s(C,g){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),u=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.id,B=V.points,I=V.disk,w=Object.assign({},(b(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:y?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:y.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return p("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return p("insert_id")}return T}()})}),y&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:k(y.points)})}),y&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:k(y.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!y,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return p("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return p("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return p("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.sheets,B=Object.assign({},(b(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),y.map(function(I){return(0,e.createComponentVNode)(2,d,{ore:I},I.id)})]})))})},m=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.alloys,B=Object.assign({},(b(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),y.map(function(I){return(0,e.createComponentVNode)(2,l,{ore:I},I.id)})]})))})},i=function(C,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},d=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=C.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function y(B,I){return p(V.value?"sheet":"alloy",{id:V.id,amount:I})}return y}()})})]})})},l=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function y(B,I){return p(V.value?"sheet":"alloy",{id:V.id,amount:I})}return y}()})})]})})}},55686:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(33115),b=function(h){var u;try{u=N("./"+h+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",h);throw m}var c=u[h];return c||(0,f.routingError)("missingExport",h)},S=r.PAI=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.app_template,l=i.app_icon,s=i.app_title,C=b(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:l,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return k}()},58717:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(75168),b=function(c){var m;try{m=N("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var i=m[c];return i||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function u(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.app,C=l.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=b(s.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,h)})]})})})}return u}(),k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.idInserted,C=l.idLink,g=l.stationTime,v=l.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return d("Authenticate")}return p}(),content:s?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return d("Eject")}return p}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!s.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},78062:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),N=r.Pacman=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.active,i=c.anchored,d=c.broken,l=c.emagged,s=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,p=c.is_ai,V=c.tmp_current,y=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=V/y,P=T*w,R=Math.round(g/C),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!i&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return u("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(l?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,U){return u("change_power",{change_power:U})}return j}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!A,onClick:function(){function j(){return u("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(C?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return b}()},65823:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.assembled,m=u.power,i=u.strength,d=u.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function l(){return h("scan")}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function l(){return h("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||i===0,onClick:function(){function l(){return h("remove_strength")}return l}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function l(){return h("add_strength")}return l}(),ml:"4px"})]})]})})})})}return N}()},67572:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.data,i=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,N)})})}return k}(),N=function(h,u){var c=(0,a.useBackend)(u),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function i(){return m("insert_pda")}return i}()})]})})})},b=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:l})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[l][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l})]},l)})})})})]})},S=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.current_appearance,l=i.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},12456:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.busy,d=m.category,l=m.display_craftable_only,s=m.display_compact,C=m.prev_cat,g=m.next_cat,v=m.subcategory,p=m.prev_subcat,V=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:l?"check-square-o":"square-o",selected:l,onClick:function(){function y(){return c("toggle_recipes")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function y(){return c("toggle_compact")}return y}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function y(){return c("backwardCat")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function y(){return c("forwardCat")}return y}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function y(){return c("backwardSubCat")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function y(){return c("forwardSubCat")}return y}()})]}),s?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,b)]})]})})}return S}(),N=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.display_craftable_only,d=m.can_craft,l=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!i&&l.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},b=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.display_craftable_only,d=m.can_craft,l=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!i&&l.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function i(){return c("minus")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function i(){return c("add")}return i}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function i(){return c("removedocument")}return i}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function i(){return c("removefolder")}return i}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,b)]})})})}return S}(),N=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},b=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:i.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:i.uid})}return d}()})]})},i.name)})})}},82020:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(72026),N=n(90955),b=n(37843);function S(m,i){var d=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(d)return(d=d.call(m)).next.bind(d);if(Array.isArray(m)||(d=k(m))||i&&m&&typeof m.length=="number"){d&&(m=d);var l=0;return function(){return l>=m.length?{done:!0}:{done:!1,value:m[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(m,i){if(m){if(typeof m=="string")return h(m,i);var d=Object.prototype.toString.call(m).slice(8,-1);if(d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set")return Array.from(m);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return h(m,i)}}function h(m,i){(i==null||i>m.length)&&(i=m.length);for(var d=0,l=new Array(i);dm?this.substring(0,m)+"...":this};var u=function(i,d){d===void 0&&(d="");var l=(0,b.createSearch)(d,function(s){return s.altername});return(0,N.flow)([(0,f.filter)(function(s){return s==null?void 0:s.altername}),d&&(0,f.filter)(l),(0,f.sortBy)(function(s){return s.id})])(i)},c=r.Photocopier220=function(){function m(i,d){for(var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.copies,v=C.maxcopies,p=(0,a.useLocalState)(d,"searchText",""),V=p[0],y=p[1],B=u((0,f.sortBy)(function(M){return M.category})(C.forms||[]),V),I=[],w=S(B),T;!(T=w()).done;){var A=T.value;I.includes(A.category)||I.push(A.category)}var x=(0,a.useLocalState)(d,"number",0),E=x[0],P=x[1],R;return C.category===""?R=B:R=B.filter(function(M){return M.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return s("removedocument")}return M}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return s("removefolder")}return M}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return s("print_form")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return s("ai_pic")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function M(){return s("copy")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function M(){return s("ai_text")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:g,stepPixelSize:10,onChange:function(){function M(D,j){return s("copies",{new:j})}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function M(){return s("choose_category",{category:""})}return M}()})}),I.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:M,selected:C.category===M,onClick:function(){function D(){return s("choose_category",{category:M})}return D}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(D,j){return y(j)}return M}()}),children:R.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:M.altername.trimLongStr(37),tooltip:M.altername,selected:C.form_id===M.id,onClick:function(){function D(){return s("choose_form",{path:M.path,id:M.id})}return D}()})},M.path)})})})]})})})}return m}()},47051:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function N(h,u){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var b={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(u,c){var m=u.tempKey,i=N(u,f),d=b[m];if(!d)return null;var l=(0,a.useBackend)(c),s=l.data,C=l.act,g=s.currentTemp,v=d.label,p=d.icon,V=m===g,y=function(){C("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:y},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),v]})))},k=r.PoolController=function(){function h(u,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,l=i.currentTemp,s=b[l]||b.normal,C=s.label,g=s.color,v=[],p=0,V=Object.entries(b);p50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var l=function(C){var g,v,p=C.status;switch(p){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var V=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:V})};l.defaultHooks=f.pureComponentHooks},15164:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),N=n(51185),b=n(69774),S=n(84947),k=r.PrisonerImplantManager=function(){function h(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.loginState,s=d.prisonerInfo,C=d.chemicalInfo,g=d.trackingInfo,v;if(!l.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function V(){return i("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function V(){return i("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.goal===null,content:"Edit",onClick:function(){function V(){return(0,f.modalOpen)(c,"set_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:s.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function y(){return(0,f.modalOpen)(c,"warn",{uid:V.uid})}return y}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:V.volume})}),p.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volume0?"envelope-open-text":"envelope",onClick:function(){function y(){return s("setScreen",{setScreen:6})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function y(){return s("setScreen",{setScreen:1})}return y}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function y(){return s("setScreen",{setScreen:2})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function y(){return s("setScreen",{setScreen:3})}return y}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function y(){return s("setScreen",{setScreen:9})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function y(){return s("setScreen",{setScreen:10})}return y}()})]})}),!!v&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function y(){return s("setScreen",{setScreen:8})}return y}()})})]})})},b=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.department,v=[],p;switch(i.purpose){case"ASSISTANCE":v=C.assist_dept,p="Request assistance from another department";break;case"SUPPLIES":v=C.supply_dept,p="Request supplies from another department";break;case"INFO":v=C.info_dept,p="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:p,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(V){return V!==g}).map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function y(){return s("writeInput",{write:V,priority:"1"})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function y(){return s("writeInput",{write:V,priority:"2"})}return y}()})]},V)})})})})},S=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g;switch(i.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function v(){return s("setScreen",{setScreen:0})}return v}()})})},k=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g,v;switch(i.type){case"MESSAGES":g=C.message_log,v="Message Log";break;case"SHIPPING":g=C.shipping_log,v="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function p(){return s("setScreen",{setScreen:0})}return p}()}),children:g.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[p.map(function(V,y){return(0,e.createVNode)(1,"div",null,V,0,null,y)}),(0,e.createVNode)(1,"hr")]},p)})})})},h=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.recipient,v=C.message,p=C.msgVerified,V=C.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function y(){return s("setScreen",{setScreen:0})}return y}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:V})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function y(){return s("department",{department:g})}return y}()})})})],4)},u=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.message,v=C.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function p(){return s("setScreen",{setScreen:0})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function p(){return s("writeAnnouncement")}return p}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(v&&g),onClick:function(){function p(){return s("sendAnnouncement")}return p}()})]})})],4)},c=function(i,d){var l=(0,a.useBackend)(d),s=l.act,C=l.data,g=C.shipDest,v=C.msgVerified,p=C.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:v})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&v),onClick:function(){function V(){return s("printLabel")}return V}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===V?"Selected":"Select",selected:g===V,onClick:function(){function y(){return s("shipSelect",{shipSelect:V})}return y}()})},V)})})})})],4)}},51939:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},b=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.data,i=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(l){return l===N.LATHE||l===N.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),i?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:i})})}):null]})})})}return k}()},50239:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data,h=k.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),h.map(function(u,c){var m=u.name,i=u.level,d=u.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N="design",b="tech",S=function(l,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_data;return p?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:p.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:p.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:p.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function V(){return v("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return v("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,u)]})]}):null},k=function(l,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_data;if(!p)return null;var V=p.name,y=p.lathe_types,B=p.materials,I=y.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:V}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,u)]})]})},h=function(l,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===b?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,u)]})]})},u=function(l,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_type;return p?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var y=p===b?"eject_tech":"eject_design";v(y)}return V}()}):null},c=function(l,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_data,p=g.disk_type,V=function(){if(!v)return(0,e.createComponentVNode)(2,h);switch(p){case N:return(0,e.createComponentVNode)(2,k);case b:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},m=function(l,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_type,V=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.sort(function(y,B){return y.name.localeCompare(B.name)}).map(function(y){var B=y.name,I=y.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){p===b?v("copy_tech",{id:I}):v("copy_design",{id:I})}return w}()})},I)})})})})},i=r.DataDiskMenu=function(){function d(l,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function p(){return(0,e.createComponentVNode)(2,c)}return p}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function p(){return(0,e.createComponentVNode)(2,m)}return p}()})],4):null}return d}()},72751:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data,h=S.act,u=k.loaded_item,c=k.linked_destroy;return c?u?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",u.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){h("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){h("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.data,u=k.act,c=h.category,m=h.matching_designs,i=h.menu,d=i===4,l=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(s){var C=s.id,g=s.name,v=s.can_build,p=s.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:v<1,onClick:function(){function V(){return u(l,{id:C,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return u(l,{id:C,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return u(l,{id:C,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},C)})})]})}return N}()},47349:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data,h=S.act,u=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var i=c?"disposeallP":"disposeallI";h(i)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(m){var i=m.volume,d=m.name,l=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var C=c?"disposeP":"disposeI";h(C,{id:l})}return s}()})},l)})})]})}return f}()},73492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.data,u=k.act,c=h.menu,m=h.categories,i=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:i+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function l(){u("setCategory",{category:d})}return l}()})},d)})})]})}return N}()},87115:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data,h=S.act,u=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:u.map(function(c){var m=c.id,i=c.amount,d=c.name,l=function(){function v(p){var V=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";h(V,{id:m,amount:p})}return v}(),s=Math.floor(i/2e3),C=i<1,g=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",i," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return l(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return l("custom")}return v}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return l(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return l(50)}return v}()})],0):null})]},m)})})})}return f}()},2345:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data,h=k.total_materials,u=k.max_materials,c=k.max_chemicals,m=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h}),u?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+u}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},45805:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),N=n(51939),b=r.LatheMenu=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.data,m=c.menu,i=c.linked_lathe,d=c.linked_imprinter;return m===4&&!i?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function l(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return l}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function l(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return l}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function l(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return l}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function l(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return l}()})]})}return S}()},92497:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function h(u,c){return k("search",{to_search:c})}return h}()})})}return f}()},25242:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.MainMenu=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.data,c=u.disk_type,m=u.linked_destroy,i=u.linked_lathe,d=u.linked_imprinter,l=u.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(s){var C=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return b}()},29933:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(N,b){var S=N.icon,k=N.children,h=N.disabled,u=N.content,c=(0,a.useBackend)(b),m=c.data,i=c.act,d=m.menu,l=m.submenu,s=d,C=l;return N.menu!==null&&N.menu!==void 0&&(s=N.menu),N.submenu!==null&&N.submenu!==void 0&&(C=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:u,icon:S,disabled:h,onClick:function(){function g(){i("nav",{menu:s,submenu:C})}return g}(),children:k})}return f}()},59959:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function b(S){return S!==o.MENU.MAIN}return b}(),render:function(){function b(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return b}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function b(S){return S!==o.SUBMENU.MAIN}return b}(),render:function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return b}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function b(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return b}(),submenu:o.SUBMENU.MAIN,render:function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return b}()})]})}return N}()},28078:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var N=o.render,b=(0,e.useBackend)(f),S=b.data,k=S.menu,h=S.submenu,u=function(){function m(i,d){return i==null?!0:typeof i=="function"?i(d):i===d}return m}(),c=u(o.menu,k)&&u(o.submenu,h);return c?N():null}return t}()},59991:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.SettingsMenu=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.data,c=h.act,m=u.sync,i=u.admin,d=u.linked_destroy,l=u.linked_lathe,s=u.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return b}()},63752:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var N=n(73492);r.LatheMainMenu=N.LatheMainMenu;var b=n(2345);r.LatheMaterials=b.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var k=n(45805);r.LatheMenu=k.LatheMenu;var h=n(92497);r.LatheSearch=h.LatheSearch;var u=n(25242);r.MainMenu=u.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var i=n(28078);r.RndRoute=i.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=function(k,h){var u=k/h;return u<=.2?"good":u<=.5?"average":"bad"},b=r.RobotSelfDiagnosis=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(i.name),children:i.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:i.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:N(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(i.electronic_damage,i.max_damage),children:i.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:i.powered?"good":"bad",children:i.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:i.status?"good":"bad",children:i.status?"Yes":"No"})]})})]})},d)})})})}return S}()},48356:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.can_hack,i=c.safety,d=c.show_lock_all,l=c.cyborgs,s=l===void 0?[]:l;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function C(){return u("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return u("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:s,can_hack:m})]})})}return b}(),N=function(S,k){var h=S.cyborgs,u=S.can_hack,c=(0,a.useBackend)(k),m=c.act,i=c.data,d="Detonate";return i.detonate_cooldown>0&&(d+=" ("+i.detonate_cooldown+"s)"),h.length?h.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createFragment)([!!l.hackable&&!l.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:l.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:l.locked_down?"unlock":"lock",color:l.locked_down?"good":"default",content:l.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function s(){return m("stopbot",{uid:l.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:l.uid})}return s}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:l.status?"bad":l.locked_down?"average":"good",children:l.status?"Not Responding":l.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:l.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l.health>50?"good":"bad",value:l.health/100})}),typeof l.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l.charge>30?"good":"bad",value:l.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:l.cell_capacity<3e4?"average":"good",children:l.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!l.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:l.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:l.synchronization?"default":"average",children:l.synchronization||"None"})})]})},l.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.dial,l=i.open,s=i.locked,C=i.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),l?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!l&&(0,e.createComponentVNode)(2,S)]})})}return k}(),N=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.dial,l=i.open,s=i.locked,C=function(v,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:l||p&&!s,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+v,iconRight:p,onClick:function(){function V(){return m(p?"turnleft":"turnright",{num:v})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:l?"lock":"lock-open",content:l?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},b=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(l,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return m("retrieve",{index:s+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:l.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),l.name]}),(0,e.createVNode)(1,"br")],4,l)})})},S=function(h,u){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},46748:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.satellites,m=u.notice,i=u.meteor_shield,d=u.meteor_shield_coverage,l=u.meteor_shield_coverage_max,s=u.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:l,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:u.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return h("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return N}()},46504:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(99753),b=n(31068),S=r.SecureStorage=function(){function c(m,i){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})})})})}return c}(),k=function(m,i){var d=(0,t.useBackend)(i),l=d.act,s=window.event?m.which:m.keyCode;if(s===b.KEY_ENTER){m.preventDefault(),l("keypad",{digit:"E"});return}if(s===b.KEY_ESCAPE){m.preventDefault(),l("keypad",{digit:"C"});return}if(s===b.KEY_BACKSPACE){m.preventDefault(),l("backspace");return}if(s>=b.KEY_0&&s<=b.KEY_9){m.preventDefault(),l("keypad",{digit:s-b.KEY_0});return}if(s>=b.KEY_NUMPAD_0&&s<=b.KEY_NUMPAD_9){m.preventDefault(),l("keypad",{digit:s-b.KEY_NUMPAD_0});return}},h=function(m,i){var d=(0,t.useBackend)(i),l=d.act,s=d.data,C=s.locked,g=s.no_passcode,v=s.emagged,p=s.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],y=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,i)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+y]),height:"100%",children:v?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,u,{number:I})},I)})},B[0])})})]})},u=function(m,i){var d=(0,t.useBackend)(i),l=d.act,s=d.data,C=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return l("keypad",{digit:C})}return g}()})}},54529:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(22677),b=n(51185),S=n(69774),k=n(76519),h={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},u=function(p,V){(0,N.modalOpen)(p,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function v(p,V){var y=(0,t.useBackend)(V),B=y.act,I=y.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,i):T===2&&(A=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(p,V){var y=(0,t.useBackend)(V),B=y.act,I=y.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},i=function(p,V){var y=(0,t.useBackend)(V),B=y.act,I=y.data,w=I.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),P=E[0],R=E[1],M=(0,t.useLocalState)(V,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var _=D?1:-1;return F[P].localeCompare(U[P])*_}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+h[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},d=function(p,V){var y=(0,t.useLocalState)(V,"sortId","name"),B=y[0],I=y[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!T):(I(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},l=function(p,V){var y=(0,t.useBackend)(V),B=y.act,I=y.data,w=I.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,R){return x(R)}return E}()})})]})},s=function(p,V){var y=(0,t.useBackend)(V),B=y.act,I=y.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return u(V,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(p,V){var y=(0,t.useBackend)(V),B=y.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return u(V,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(p,V){var y=(0,t.useBackend)(V),B=y.act,I=y.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.stored_seeds,i=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:i,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(l,s){return u("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,N):"No Seeds"})})})})}return b}(),N=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),i.name,i.variant?" ("+i.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",i.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function l(){return u("vend",{seedid:i.id,seedvariant:i.variant})}return l}()})]})]},d)})]})}},58578:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u.status?u.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!u.shuttle&&(!!u.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:u.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return h("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!u.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!u.status,onClick:function(){function c(){return h("request")}return c}()})})],0))]})})})})}return N}()},11154:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function k(h,u){var c=(0,a.useLocalState)(u,"tabIndex",0),m=c[0],i=c[1],d=function(){function l(s){switch(s){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,b);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return l}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function l(){return i(0)}return l}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function l(){return i(1)}return l}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function l(){return i(2)}return l}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return k}(),N=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:l.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:l.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:l.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:l.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:l.id})}return s}()})]})]})},l.name)})})},b=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.templates_tabs,l=i.existing_shuttle,s=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===l.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!l&&s[l.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.existing_shuttle,l=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),l?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+l.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:l.description}),l.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:l.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function s(){return m("preview",{shuttle_id:l.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:l.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],b=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function s(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.hasOccupant,B=y?(0,e.createComponentVNode)(2,u):(0,e.createComponentVNode)(2,l);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return s}(),u=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.occupant,B=V.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return p("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return p("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:y.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxHealth,value:y.health/y.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(y.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[y.stat][0],children:N[y.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxTemp,value:y.bodyTemperature/y.maxTemp,color:k[y.temperatureSuitability+3],children:[(0,a.round)(y.btCelsius,0),"\xB0C,",(0,a.round)(y.btFaren,0),"\xB0F"]})}),!!y.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.bloodMax,value:y.bloodLevel/y.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[y.bloodPercent,"%, ",y.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[y.pulse," BPM"]})],4)]})})},m=function(C,g){var v=(0,t.useBackend)(g),p=v.data,V=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:b.map(function(y,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[y[1]]/100,ranges:S,children:(0,a.round)(V[y[1]],0)},B)},B)})})})},i=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.hasOccupant,B=V.isBeakerLoaded,I=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!y,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,y=V.occupant,B=V.chemicals,I=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(P,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>I||y.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:T.id,amount:P})}return M}()},R)})]})})},A)})})},l=function(C,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42439:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data;if(u.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return u.plays===1?c=u.plays+" player has tried their luck today!":c=u.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:u.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:u.working,content:u.working?"Spinning...":"Spin",onClick:function(){function m(){return h("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:u.resultlvl,children:u.result})]})})})}return N}()},280:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.secure,m=u.can_dry,i=u.drying,d=u.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function l(){return h("drying")}return l}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(l,s){return l.display_name.localeCompare(s.display_name)}).map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:l.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",l.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function s(){return h("vend",{index:l.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:l.quantity,step:1,stepPixelSize:3,onChange:function(){function s(C,g){return h("vend",{index:l.vend,amount:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return h("vend",{index:l.vend,amount:l.quantity})}return s}()})]})]},l)})]})]})})})}return N}()},47606:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),N=1e3,b=r.Smes=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.capacityPercent,d=m.capacity,l=m.charge,s=m.inputAttempt,C=m.inputting,g=m.inputLevel,v=m.inputLevelMax,p=m.inputAvailable,V=m.outputPowernet,y=m.outputAttempt,B=m.outputting,I=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=i>=100&&"good"||C&&"average"||"bad",x=B&&"good"||l>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s?"sync-alt":"times",selected:s,onClick:function(){function E(){return c("tryinput")}return E}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:i>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/N,fillValue:p/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("input",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:y?"power-off":"times",selected:y,onClick:function(){function E(){return c("tryoutput")}return E}(),children:y?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":l>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("output",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},66527:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=0,m=1,i=2,d=u.generated,l=u.generated_ratio,s=u.tracking_state,C=u.tracking_rate,g=u.connected_panels,v=u.connected_tracker,p=u.cdir,V=u.direction,y=u.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return h("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:l,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",y,")"," "]}),s===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function B(I,w){return h("cdir",{cdir:w})}return B}()}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:s===c,onClick:function(){function B(){return h("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return h("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===i,disabled:!v,onClick:function(){function B(){return h("track",{track:i})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return h("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},27478:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function i(){return h("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return h("spawn",{ID:m.uids})}return i}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return N}()},15565:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function h(u,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),N=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("hemomancer")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},b=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("umbrae")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("gargantua")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("dantalion")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},31752:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function b(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return b}(),N=r.StationAlertConsoleContent=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.data,c=u.alarms||[],m=c.Fire||[],i=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)})],4)}return b}()},64323:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),N=n(84947),b=function(u){return u[u.SetupFutureStationTraits=0]="SetupFutureStationTraits",u[u.ViewStationTraits=1]="ViewStationTraits",u}(b||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,l=i.data,s=l.future_station_traits,C=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=C[0],v=C[1],p=Object.fromEntries(l.valid_station_traits.map(function(y){return[y.name,y.path]})),V=Object.keys(p);return V.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:V,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function y(){if(g){var B=p[g],I=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}d("setup_future_traits",{station_traits:I})}}return y}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(y){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:y.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(I){if(I.path!==y.path)return I.path})})}return B}(),children:"Delete"})})]})},y.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function y(){return d("clear_future_traits")}return y}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function y(){return d("setup_future_traits",{station_traits:[]})}return y}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var i=(0,o.useBackend)(m),d=i.act,l=i.data;return l.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:l.current_traits.map(function(s){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:l.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||l.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return d("revert",{ref:s.ref})}return C}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},h=r.StationTraitsPanel=function(){function u(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",b.ViewStationTraits),d=i[0],l=i[1],s;switch(d){case b.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case b.ViewStationTraits:s=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:d===b.ViewStationTraits,onClick:function(){function C(){return l(b.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===b.SetupFutureStationTraits,onClick:function(){function C(){return l(b.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return u}()},57633:function(L,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.data,i=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,S)]})})})}return k}(),N=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.helmet,l=i.suit,s=i.magboots,C=i.mask,g=i.storage,v=i.open,p=i.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function V(){return m("cook")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:p?"Unlock":"Lock",icon:p?"unlock":"lock",disabled:v,onClick:function(){function V(){return m("toggle_lock")}return V}()})],4),children:v&&!p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,b,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,b,{object:l,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,b,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,b,{object:C,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,b,{object:g,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:p?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),p?"The unit is locked.":"The unit is closed."]})})})},b=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=h.object,l=h.label,s=h.missingText,C=h.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function g(){return m(C)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.open,l=i.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:l,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(L,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),N=n(2971),b=n(30381),S=n(84947),k=n(99753),h=r.SupermatterMonitor=function(){function i(d,l){var s=(0,f.useBackend)(l),C=s.act,g=s.data;return g.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return i}(),u=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,l){var s=(0,f.useBackend)(l),C=s.act,g=s.data,v=g.supermatters,p=v===void 0?[]:v;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return C("refresh")}return V}()}),children:(0,e.createComponentVNode)(2,N.Table,{children:p.map(function(V){return(0,e.createComponentVNode)(2,N.Table.Row,{children:[(0,e.createComponentVNode)(2,N.Table.Cell,{children:V.supermatter_id+". "+V.area_name}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,N.Button,{content:"Details",onClick:function(){function y(){return C("view",{view:V.supermatter_id})}return y}()})})]},V.supermatter_id)})})})})})},m=function(d,l){var s=(0,f.useBackend)(l),C=s.act,g=s.data,v=g.active,p=g.SM_integrity,V=g.SM_power,y=g.SM_ambienttemp,B=g.SM_ambientpressure,I=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:u(y),minValue:0,maxValue:u(1e4),ranges:{teal:[-1/0,u(80)],good:[u(80),u(373)],average:[u(373),u(1e3)],bad:[u(1e3),1/0]},children:(0,o.toFixed)(y)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:u(B),minValue:0,maxValue:u(5e4),ranges:{good:[u(1),u(300)],average:[-1/0,u(1e3)],bad:[u(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,b.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,b.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:u.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return h(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return N}()},61225:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return u("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return b}()},61424:function(L,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},N={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},b={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},S=function(c,m,i,d){return d===void 0&&(d=null),c.map(function(l){var s,C=(s=l[d])!=null?s:l;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:m.includes(l),content:C,onClick:function(){function g(){m.includes(l)?i(m.filter(function(v){var p;return((p=v[d])!=null?p:v)!==l})):i([l].concat(m))}return g}()},C)})},k=r.TTSSeedsExplorer=function(){function u(){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,h)})})})}return u}(),h=r.TTSSeedsExplorerContent=function(){function u(c,m){var i=(0,a.useBackend)(m),d=i.act,l=i.data,s=l.providers,C=l.seeds,g=l.selected_seed,v=l.phrases,p=l.donator_level,V=l.character_gender,y=C.map(function(Z){return Z.category}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),B=C.map(function(Z){return Z.gender}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),I=C.map(function(Z){return Z.required_donator_level}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}).sort(function(Z,q){return Z-q}).map(function(Z){return f[Z]}),w=(0,a.useLocalState)(m,"selectedProviders",s),T=w[0],A=w[1],x=(0,a.useLocalState)(m,"selectedGenders",B.includes(N[V])?[N[V]]:B),E=x[0],P=x[1],R=(0,a.useLocalState)(m,"selectedCategories",y),M=R[0],D=R[1],j=(0,a.useLocalState)(m,"selectedDonatorLevels",I.includes(f[p])?I.slice(0,I.indexOf(f[p])+1):I),F=j[0],U=j[1],_=(0,a.useLocalState)(m,"selectedPhrase",v[0]),$=_[0],z=_[1],G=(0,a.useLocalState)(m,"searchtext",""),H=G[0],J=G[1],ae=S(s,T,A,"name"),ce=S(B,E,P),se=S(y,M,D),he=S(I,F,U),ye=(0,e.createComponentVNode)(2,t.Dropdown,{options:v,selected:$.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function Z(q){return z(q)}return Z}()}),Ie=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function Z(q,ue){return J(ue)}return Z}()}),pe=C.sort(function(Z,q){var ue=Z.name.toLowerCase(),me=q.name.toLowerCase();return ue>me?1:ue0&&g!==Z.name?"orange":"white",children:Z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:g===Z.name?.5:.25,textAlign:"left",children:Z.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:g===Z.name?"white":b[Z.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:b[Z.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Z.required_donator_level>0&&(0,e.createFragment)([f[Z.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Z.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{height:"175px",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:ae}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ce}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ye}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Ie})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===0,onClick:function(){function Z(){return D([])}return Z}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===y.length,onClick:function(){function Z(){return D(y)}return Z}()})],4),children:se})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+pe.length+"/"+C.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:oe})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:2,italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})],4)}return u}()},97552:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.records,i=m===void 0?[]:m,d=c.explosion_target,l=c.toxins_tech,s=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||s,align:"center",onClick:function(){function C(){return u("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function C(){return u("delete_logs")}return C}()})]})]})}),i.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return b}(),N=r.TachyonArrayContent=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.records,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function l(){return u("delete_record",{index:d.index})}return l}()})})]},d.index)})]})})})})}return b}()},33291:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c;return u.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:u.connected?"check":"times",content:u.connected?"Internals On":"Internals Off",selected:u.connected,onClick:function(){function m(){return h("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:u.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u.ReleasePressure===u.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return h("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(u.releasePressure),width:"65px",unit:"kPa",minValue:u.minReleasePressure,maxValue:u.maxReleasePressure,onChange:function(){function m(i,d){return h("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u.ReleasePressure===u.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return h("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:u.ReleasePressure===u.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return h("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return N}()},75480:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.o_tanks,m=u.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function i(){return h("oxygen")}return i}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function i(){return h("plasma")}return i}()})})]})})})}return N}()},62291:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function h(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),C=s[0],g=s[1],v=function(){function p(V){switch(V){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function p(){return g(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function p(){return g(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function p(){return g(2)}return p}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return h}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},b=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.active,s=d.sectors_available,C=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,p=d.nttc_toggle_command_bold,V=d.nttc_job_indicator_type,y=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:l?"On":"Off",selected:l,icon:"power-off",onClick:function(){function I(){return i("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return i("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function I(){return i("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return i("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function I(){return i("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function I(){return i("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:y||"Unset",selected:y,icon:"globe",onClick:function(){function I(){return i("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return i("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return i("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return i("export")}return I}()})]})],4)},S=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.link_password,s=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:l||"Unset",selected:l,icon:"lock",onClick:function(){function C(){return i("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return i("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},k=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,l=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function s(){return i("add_filter")}return s}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),l.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return i("remove_filter",{user:s})}return C}()})})]},s)})]})})}},82905:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.linked,d=m.active,l=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:l||"Unset",selected:l,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:i===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),i===1?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,b)]})})}return S}(),N=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.linked_core_id,d=m.linked_core_addr,l=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:l?"Yes":"No",icon:l?"eye-slash":"eye",selected:l,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return c("unlink")}return s}()})})]})})},b=function(k,h){var u=(0,a.useBackend)(h),c=u.act,m=u.data,i=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function l(){return c("link",{addr:d.addr})}return l}()})})]},d.addr)})]})})}},87692:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.targetsTeleport?u.targetsTeleport:{},m=0,i=1,d=2,l=u.calibrated,s=u.calibrating,C=u.powerstation,g=u.regime,v=u.teleporterhub,p=u.target,V=u.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function y(B){return h("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return y}()}),g===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function y(B){return h("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return y}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===i?"good":null,onClick:function(){function y(){return h("setregime",{regime:i})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function y(){return h("setregime",{regime:m})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===d?"good":null,disabled:!V,onClick:function(){function y(){return h("setregime",{regime:d})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||l&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(l||s),onClick:function(){function y(){return h("calibrate")}return y}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&C&&v&&g===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function y(){return h("load")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function y(){return h("eject")}return y}()})]})})]})})})})}return N}()},40759:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.TempGun=function(){function h(u,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,l=d.target_temperature,s=d.temperature,C=d.max_temp,g=d.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:C,value:l,format:function(){function v(p){return(0,a.toFixed)(p,2)}return v}(),width:"50px",onDrag:function(){function v(p,V){return i("target_temperature",{target_temperature:V})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:b(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(s),children:S(s)})})]})})})})}return h}(),b=function(u){return u<=-100?"blue":u<=0?"teal":u<=100?"green":u<=200?"orange":"red"},S=function(u){return u<=100-273.15?"High":u<=250-273.15?"Medium":u<=300-273.15?"Low":u<=400-273.15?"Medium":"High"},k=function(u){return u<=100-273.15?"red":u<=250-273.15?"orange":u<=300-273.15?"green":u<=400-273.15?"orange":"red"}},32369:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),N=n(2971),b=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),h=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),l=d.act,s=d.data,C=s.max_length,g=s.message,v=g===void 0?"":g,p=s.multiline,V=s.placeholder,y=s.timeout,B=s.title,I=(0,o.useLocalState)(i,"input",V||""),w=I[0],T=I[1],A=function(){function P(R){if(R!==w){var M=p?S(R):k(R);T(M)}}return P}(),x=p||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,b.Window,{title:B,width:325,height:E,children:[y&&(0,e.createComponentVNode)(2,a.Loader,{value:y}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function P(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&l("submit",{entry:w}),M===f.KEY_ESCAPE&&l("cancel")}return P}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),u=function(m,i){var d=(0,o.useBackend)(i),l=d.act,s=d.data,C=s.max_length,g=s.multiline,v=m.input,p=m.onType,V=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function y(){return l("cancel")}return y}(),onEnter:function(){function y(B){V&&B.shiftKey||(B.preventDefault(),l("submit",{entry:v}))}return y}(),onInput:function(){function y(B,I){return p(I)}return y}(),placeholder:"Type something...",value:v})}},82296:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.ThermoMachine=function(){function b(S,k){var h=(0,t.useBackend)(k),u=h.act,c=h.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return u("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return u("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return u("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(i,d){return u("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return u("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return u("target",{target:c.initial})}return m}()})]})]})})]})})}return b}()},68488:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.tank_one,m=u.tank_two,i=u.attached_device,d=u.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function l(){return h("toggle")}return l}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function l(){return h("device")}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function l(){return h("remove_device")}return l}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function l(){return h("tankone")}return l}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function l(){return h("tanktwo")}return l}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},26868:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),N=r.TurbineComputer=function(){function k(h,u){var c=(0,a.useBackend)(u),m=c.act,i=c.data,d=i.compressor,l=i.compressor_broken,s=i.turbine,C=i.turbine_broken,g=i.online,v=!!(d&&!l&&s&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,b)})})})}return k}(),b=function(h,u){var c=(0,a.useBackend)(u),m=c.data,i=m.compressor,d=m.compressor_broken,l=m.turbine,s=m.turbine_broken,C=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!i||d?"bad":"good",children:d?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!l||s?"bad":"good",children:s?l?"Offline":"Missing":"Online"})]})},S=function(h,u){var c=(0,a.useBackend)(u),m=c.data,i=m.rpm,d=m.temperature,l=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[i," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[l," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),N=n(2971),b=n(84947),S=n(22677),k=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},h=r.Uplink=function(){function C(g,v){var p=(0,f.useBackend)(v),V=p.act,y=p.data,B=y.cart,I=(0,f.useLocalState)(v,"tabIndex",0),w=I[0],T=I[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function P(){return V("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:k(w)})]})})]})}return C}(),u=function(g,v){var p=(0,f.useBackend)(v),V=p.act,y=p.data,B=y.crystals,I=y.cats,w=(0,f.useLocalState)(v,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],P=x[1],R=function(_,$){$===void 0&&($="");var z=(0,o.createSearch)($,function(G){var H=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+H});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),$&&(0,a.filter)(z),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(_)},M=function(_){if(P(_),_==="")return A(I[0].items);A(R(I.map(function($){return $.items}).flat(),_))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],F=D[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function U(){return F(!j)}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return V("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return V("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(_,$){M($)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function _(){A(U.items),P("")}return _}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:U,showDecription:j},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,v){var p=(0,f.useBackend)(v),V=p.act,y=p.data,B=y.cart,I=y.crystals,w=y.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,l,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,v){var p=(0,f.useBackend)(v),V=p.act,y=p.data,B=y.cats,I=y.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:w})},T)})})})})},i=function(g,v){var p=g.i,V=g.showDecription,y=V===void 0?1:V,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,d,{i:p}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:y,buttons:I,children:y?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},d=function(g,v){var p=(0,f.useBackend)(v),V=p.act,y=p.data,B=g.i,I=y.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,N.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},l=function(g,v){var p=(0,f.useBackend)(v),V=p.act,y=p.data,B=g.i,I=y.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(g,v){var p=(0,f.useBackend)(v),V=p.act,y=p.data,B=y.exploitable,I=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],P=function(D,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(D)},R=P(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=S.product,i=S.productStock,d=S.productImage,l=c.chargesMoney,s=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,p=c.inserted_item_name,V=!l||m.price===0,y="ERROR!",B="";V?(y="FREE",B="arrow-circle-down"):(y=m.price,B="shopping-cart");var I=!v||i===0||!V&&m.price>C&&m.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:i<=0&&"bad"||i<=m.max_amount/2&&"average"||"good",children:[i," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:y,textAlign:"left",onClick:function(){function w(){return u("vend",{inum:m.inum})}return w}()})})]})},N=r.Vending=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.user,i=c.usermoney,d=c.inserted_cash,l=c.chargesMoney,s=c.product_records,C=s===void 0?[]:s,g=c.hidden_records,v=g===void 0?[]:g,p=c.stock,V=c.vend_ready,y=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((l?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!y&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,y,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return u("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return u("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[i,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return u("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:p[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return b}()},25485:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:i>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return h("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(l,s){return h("volume",{channel:m.num,volume:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return h("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return N}()},26564:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.remaining,m=u.question,i=u.choices,d=u.user_vote,l=u.counts,s=u.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(s?" ("+(l[C]||0)+")":""),onClick:function(){function g(){return h("vote",{target:C})}return g}(),selected:C===d})},C)})]})})})}return N}()},496:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.wires||[],m=u.status||[],i=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:i,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function l(){return h("cut",{wire:d.color})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function l(){return h("pulse",{wire:d.color})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function l(){return h("attach",{wire:d.color})}return l}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return N}()},28919:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},14635:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(h,u){var c=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(c)return(c=c.call(h)).next.bind(c);if(Array.isArray(h)||(c=N(h))||u&&h&&typeof h.length=="number"){c&&(h=c);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(h,u){if(h){if(typeof h=="string")return b(h,u);var c=Object.prototype.toString.call(h).slice(8,-1);if(c==="Object"&&h.constructor&&(c=h.constructor.name),c==="Map"||c==="Set")return Array.from(h);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return b(h,u)}}function b(h,u){(u==null||u>h.length)&&(u=h.length);for(var c=0,m=new Array(u);c0&&!y.includes(j.ref)&&!p.includes(j.ref),checked:p.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return h}()},29136:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,k,h,u,c){return Su?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function b(S,k){var h=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(u){return u.val!=="0"||u.entry==="Pressure"||u.entry==="Temperature"})(h).map(function(u){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:u.entry,color:f(u.val,u.bad_low,u.poor_low,u.poor_high,u.bad_high),children:[u.val,u.units]},u.entry)})})})}return b}()},83326:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(b){return b+" unit"+(b===1?"":"s")},f=r.BeakerContents=function(){function N(b){var S=b.beakerLoaded,k=b.beakerContents,h=k===void 0?[]:k,u=b.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||h.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),h.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!u&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:u(c,m)})]},c.name)})]})}return N}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.locked,c=h.noaccess,m=h.maintpanel,i=h.on,d=h.autopatrol,l=h.canhack,s=h.emagged,C=h.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",u?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function g(){return k("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return k("autopatrol")}return g}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return k("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return k("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function h(u,c,m){var i=(0,a.useBackend)(u),d=i.act,l=i.data,s=Object.assign(l.modal?l.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return h}(),N=r.modalRegisterBodyOverride=function(){function h(u,c){o[u]=c}return h}(),b=r.modalAnswer=function(){function h(u,c,m,i){var d=(0,a.useBackend)(u),l=d.act,s=d.data;if(s.modal){var C=Object.assign(s.modal.args||{},i||{});l("modal_answer",{id:c,answer:m,arguments:JSON.stringify(C)})}}return h}(),S=r.modalClose=function(){function h(u,c){var m=(0,a.useBackend)(u),i=m.act;i("modal_close",{id:c})}return h}(),k=r.ComplexModal=function(){function h(u,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,l=d.id,s=d.text,C=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),p,V,y="auto";if(o[l])p=o[l](i.modal,c);else if(C==="input"){var B=i.modal.value;g=function(){function w(T){return b(c,l,B)}return w}(),p=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return b(c,l,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var I=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return b(c,l,T)}return w}()}),y="initial"}else C==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(i.modal.value,10),onClick:function(){function A(){return b(c,l,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return b(c,l,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return b(c,l,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:u.maxWidth||window.innerWidth/2+"px",maxHeight:u.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:y,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[l]&&v,p,V]})}}return h}()},692:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),N=f.COLORS.department,b=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return b.indexOf(m)!==-1?"green":"orange"},k=function(m){if(b.indexOf(m)!==-1)return!0},h=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(i.rank),bold:k(i.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.active})]},i.name+i.rank)})]})},u=r.CrewManifest=function(){function c(m,i){var d=(0,a.useBackend)(i),l=d.act,s;if(m.data)s=m.data;else{var C=(0,a.useBackend)(i),g=C.data;s=g}var v=s,p=v.manifest,V=p.heads,y=p.sec,B=p.eng,I=p.med,w=p.sci,T=p.ser,A=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:h(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:h(y)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:h(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:h(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:h(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:h(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:h(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:h(x)})]})}return c}()},98658:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(N,b){var S=(0,t.useBackend)(b),k=S.act,h=S.data,u=h.large_buttons,c=h.swapped_buttons,m=N.input,i=N.message,d=N.disabled,l=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!u,fluid:!!u,onClick:function(){function C(){return k("submit",{entry:m})}return C}(),textAlign:"center",tooltip:u&&i,disabled:d,width:!u&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!u,fluid:!!u,onClick:function(){function C(){return k("cancel")}return C}(),textAlign:"center",width:!u&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[u?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!u&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),u?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l})]})}return f}()},29723:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=N.siliconUser,c=u===void 0?h.siliconUser:u,m=N.locked,i=m===void 0?h.locked:m,d=N.normallyLocked,l=d===void 0?h.normallyLocked:d,s=N.onLockStatusChange,C=s===void 0?function(){return k("lock")}:s,g=N.accessText,v=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:l?"red":"green",icon:l?"lock":"unlock",content:l?"Locked":"Unlocked",onClick:function(){function p(){C&&C(!i)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(N){var b=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(b)*100+"%"}}),2)}return f}()},51185:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.loginState;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",u.name," (",u.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!u.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return f}()},69774:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.loginState,c=h.isAI,m=h.isRobot,i=h.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:u.id?u.id:"----------",ml:"0.5rem",onClick:function(){function d(){return k("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!u.id,content:"Login",onClick:function(){function d(){return k("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return k("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return k("login_login",{login_type:3})}return d}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return k("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(N){var b=N.operating,S=N.name;if(b)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function N(b,S){var k=(0,t.useBackend)(S),h=k.act,u=b.data,c=u.code,m=u.frequency,i=u.minFrequency,d=u.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:i/10,maxValue:d/10,value:m/10,format:function(){function l(s){return(0,a.toFixed)(s,1)}return l}(),width:"80px",onDrag:function(){function l(s,C){return h("freq",{freq:C})}return l}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function l(s,C){return h("code",{code:C})}return l}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function l(){return h("signal")}return l}()})]})}return N}()},79969:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),N=n(2971),b=r.SimpleRecords=function(){function h(u,c){var m=u.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:u.data,recordType:u.recordType}):(0,e.createComponentVNode)(2,S,{data:u.data})})}return h}(),S=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=u.data.recordsList,l=(0,a.useLocalState)(c,"searchText",""),s=l[0],C=l[1],g=function(V,y){y===void 0&&(y="");var B=(0,t.createSearch)(y,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),y&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(d)},v=g(d,s);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(V,y){return C(y)}return p}()}),v.map(function(p){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function V(){return i("Records",{target:p.uid})}return V}()})},p)})]})},k=function(u,c){var m=(0,a.useBackend)(c),i=m.act,d=u.data.records,l=d.general,s=d.medical,C=d.security,g;switch(u.recordType){case"MED":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:l?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:l.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:l.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:l.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:l.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:l.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:l.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:l.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(N,b){var S,k=(0,a.useBackend)(b),h=k.act,u=k.data,c=u.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function i(){return h("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:h.app_data})}return f}()},56601:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.app_data,c=u.holder,m=u.dead,i=u.health,d=u.brute,l=u.oxy,s=u.tox,C=u.burn,g=u.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:i/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.app_data,c=u.master,m=u.dna,i=u.prime,d=u.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function l(){return k("getdna")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.app_data,c=u.cable,m=u.machine,i=u.inprogress,d=u.progress,l=u.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return k("cable")}return g}()});var C;return m&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),i?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return k("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return k("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),C]})}return f}()},94648:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.app_data,c=u.available_software,m=u.installed_software,i=u.installed_toggles,d=u.available_ram,l=u.emotions,s=u.current_emotion,C=u.speech_verbs,g=u.current_speech_verb,v=u.available_chassises,p=u.current_chassis,V=[];return m.map(function(y){return V[y.key]=y.name}),i.map(function(y){return V[y.key]=y.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(y){return!V[y.key]}).map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name+" ("+y.cost+")",icon:y.icon,disabled:y.cost>d,onClick:function(){function B(){return k("purchaseSoftware",{key:y.key})}return B}()},y.key)}),c.filter(function(y){return!V[y.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(y){return y.key!=="mainmenu"}).map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,icon:y.icon,onClick:function(){function B(){return k("startSoftware",{software_key:y.key})}return B}()},y.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,icon:y.icon,selected:y.active,onClick:function(){function B(){return k("setToggle",{toggle_key:y.key})}return B}()},y.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:l.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.id===s,onClick:function(){function B(){return k("setEmotion",{emotion:y.id})}return B}()},y.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.name===g,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:y.name})}return B}()},y.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.icon===p,onClick:function(){function B(){return k("setChassis",{chassis_to_change:y.icon})}return B}()},y.id)})})]})})}return f}()},45549:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:h.app_data})}return f}()},53434:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return f}()},7328:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.app_data.active_convo;return u?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:h.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:h.app_data})}return f}()},32036:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.app_data,m=c.minFrequency,i=c.maxFrequency,d=c.frequency,l=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function s(C){return(0,t.toFixed)(C,1)}return s}(),onChange:function(){function s(C,g){return h("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return h("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return h("toggleBroadcast")}return s}(),selected:l,content:l?"Enabled":"Disabled"})})]})}return N}()},76020:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return f}()},11562:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:h.app_data})}return f}()},29539:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},92180:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data,u=h.janitor,c=u.user_loc,m=u.mops,i=u.buckets,d=u.cleanbots,l=u.carts,s=u.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return f}()},57725:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function N(b,S){var k=(0,t.useBackend)(S),h=k.act,u=k.data,c=u.owner,m=u.ownjob,i=u.idInserted,d=u.categories,l=u.pai,s=u.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!i,onClick:function(){function C(){return h("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var g=u.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in s?v.notify_icon:v.icon,iconSpin:v.uid in s,color:v.uid in s?"red":"transparent",content:v.name,onClick:function(){function p(){return h("StartProgram",{program:v.uid})}return p}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!l&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return h("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return h("pai",{option:2})}return C}()})]})})]})}return N}()},29978:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(N,b){var S=(0,a.useBackend)(b),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},38467:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function k(h,u){var c=(0,t.useBackend)(u),m=c.act,i=c.data,d=i.active_convo;return d?(0,e.createComponentVNode)(2,N,{data:i}):(0,e.createComponentVNode)(2,b,{data:i})}return k}(),N=r.ActiveConversation=function(){function k(h,u){var c=(0,t.useBackend)(u),m=c.act,i=h.data,d=i.convo_name,l=i.convo_job,s=i.messages,C=i.active_convo,g=(0,t.useLocalState)(u,"clipboardMode",!1),v=g[0],p=g[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+l+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function y(){return p(!v)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function y(){return m("Message",{target:C})}return y}(),content:"Reply"})],4),children:(0,a.filter)(function(y){return y.target===C})(s).map(function(y,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:y.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:y.sent?"#4d9121":"#cd7a0d",position:"absolute",left:y.sent?null:"0px",right:y.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:y.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:y.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:y.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[y.sent?"You:":"Them:"," ",y.message]})]},B)})});return v&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+l+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function y(){return p(!v)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function y(){return m("Message",{target:C})}return y}(),content:"Reply"})],4),children:(0,a.filter)(function(y){return y.target===C})(s).map(function(y,B){return(0,e.createComponentVNode)(2,o.Box,{color:y.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[y.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:y.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function y(){return m("Clear",{option:"Convo"})}return y}()})})})}),V]})}return k}(),b=r.MessengerList=function(){function k(h,u){var c=(0,t.useBackend)(u),m=c.act,i=h.data,d=i.convopdas,l=i.pdas,s=i.charges,C=i.silent,g=i.toff,v=i.ringtone_list,p=i.ringtone,V=(0,t.useLocalState)(u,"searchTerm",""),y=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(v),onSelected:function(){function I(w){return m("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[s," charges left."]})})}),!d.length&&!l.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:y,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:i,pdas:d,msgAct:"Select Conversation",searchTerm:y}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:l,msgAct:"Message",data:i,searchTerm:y})]})}return k}(),S=function(h,u){var c=(0,t.useBackend)(u),m=c.act,i=h.data,d=h.pdas,l=h.title,s=h.msgAct,C=h.searchTerm,g=i.charges,v=i.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:l,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:l,children:d.filter(function(p){return p.Name.toLowerCase().includes(C.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function V(){return m(s,{target:p.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function y(){return m("Messenger Plugin",{plugin:V.uid,target:p.uid})}return y}()},V.uid)})})]},p.uid)})})}},54291:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function N(b,S){var k=(0,a.useBackend)(S),h=k.act,u=k.data,c=u.connected,m=u.wild_captures,i=u.no_collection,d=u.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function l(){return h("Disconnect")}return l}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function l(){return h("Reconnect")}return l}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function l(){return h("Prev")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function l(){return h("Next")}return l}()})]})}),children:i?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function l(){return h("Transfer")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function l(){return h("Release")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function l(){return h("Rename")}return l}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function l(){return h("Set_Trap")}return l}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},31112:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function b(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,f)})}return b}(),f=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.mulebot,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function l(){return u("control",{bot:d.uid})}return l}()})},d.Name)})},N=function(S,k){var h=(0,a.useBackend)(k),u=h.act,c=h.data,m=c.mulebot,i=m.botstatus,d=m.active,l=i.mode,s=i.loca,C=i.load,g=i.powr,v=i.dest,p=i.home,V=i.retn,y=i.pick,B;switch(l){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=l;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[l===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function I(){return u("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function I(){return u("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:y?"Yes":"No",selected:y,onClick:function(){function I(){return u("set_pickup_type",{autopick:y?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return u("set_auto_return",{autoret:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return u("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return u("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return u("home")}return I}()})]})]})]})}},2817:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,i){var d=(0,t.useBackend)(i),l=d.act,s=d.data,C=s.logged_in,g=s.owner_name,v=s.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,b)]})],4):(0,e.createComponentVNode)(2,u)}return c}(),N=function(m,i){var d=(0,t.useBackend)(i),l=d.data,s=(0,t.useLocalState)(i,"tabIndex",1),C=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},b=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),l=d[0],s=(0,t.useBackend)(i),C=s.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(l){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,i){var d,l=(0,t.useBackend)(i),s=l.act,C=l.data,g=C.requests,v=C.available_accounts,p=C.money,V=(0,t.useLocalState)(i,"selectedAccount"),y=V[0],B=V[1],I=(0,t.useLocalState)(i,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],P=[];return v.map(function(R){return P[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=v.filter(function(R){return R.UID===y})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(P[M])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(M,D){return T(D)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:p0&&s.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:l>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},73786:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],N=["className","scrollable","children"];/** + */var N=(0,t.createLogger)("hotkeys"),b={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},h=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},l=function(s){var C=String(s);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){C==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var g=h(s.code);if(g){var v=b[g];if(v)return N.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[g]){y[g]=!0;var p='Key_Down "'+g+'"';return N.debug(p),Byond.command(p)}if(s.isUp()&&y[g]){y[g]=!1;var V='Key_Up "'+g+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var C=S.indexOf(s);C>=0&&S.splice(C,1)}return u}(),i=r.releaseHeldKeys=function(){function u(){for(var s=0,C=Object.keys(y);s=75?c="green":l.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(m,i){return(0,e.createComponentVNode)(2,t.Box,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function m(){return h("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function m(){return h("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return h("wipe")}return m}()})})]})})})]})})})}return N}()},46817:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data;if(l.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(l.stat===2||l.stat===null)&&(c=!1);var m=null;l.integrity>=75?m="green":l.integrity>=25?m="yellow":m="red";var i=!0;return l.integrity>=100&&l.stat!==2&&(i=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:l.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(d,u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function d(){return h("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function d(){return h("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||l.active,content:!i||l.active?"Already Repaired":"Repair",onClick:function(){function d(){return h("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},20420:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.APC=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return h}(),b={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.locked&&!d.siliconUser,s=d.normallyLocked,C=b[d.externalPower]||b[0],g=b[d.chargingStatus]||b[0],v=d.powerChannels||[],p=S[d.malfStatus]||S[0],V=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status"}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(k){var B=k.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:k.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:k.status>=2?"good":"bad",children:k.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(k.status===1||k.status===3),disabled:u,onClick:function(){function I(){return i("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&k.status===2,disabled:u,onClick:function(){function I(){return i("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&k.status===0,disabled:u,onClick:function(){function I(){return i("channel",B.off)}return I}()})],4),children:[k.powerLoad," W"]},k.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function k(){return i(p.action)}return k}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function k(){return i("overload")}return k}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){function k(){return i("cover")}return k}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){function k(){return i("emergency_lighting")}return k}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function k(){return i("toggle_nightshift")}return k}()})})]})})],4)}},16822:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.view_screen,v=C.authenticated_account,p=C.ticks_left_locked_down,V=C.linked_db,k;if(p>0)k=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!V)k=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(g){case 1:k=(0,e.createComponentVNode)(2,b);break;case 2:k=(0,e.createComponentVNode)(2,S);break;case 3:k=(0,e.createComponentVNode)(2,l);break;default:k=(0,e.createComponentVNode)(2,y)}else k=(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Section,{children:k})]})})}return m}(),N=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.machine_id,v=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function p(){return s("insert_card")}return p}()})})})]})},b=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function v(){return s("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function v(){return s("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],p=g[1],V=(0,a.useLocalState)(d,"fundsAmount",0),k=V[0],B=V[1],I=(0,a.useLocalState)(d,"purpose",0),w=I[0],T=I[1],A=C.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,P){return p(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return B(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return T(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return s("transfer",{target_acc_number:v,funds_amount:k,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],p=g[1],V=C.owner_name,k=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",k]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return p(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},h=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],p=g[1],V=(0,a.useLocalState)(d,"accountPin",null),k=V[0],B=V[1],I=C.machine_id,w=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return p(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:v,account_pin:k})}return T}()})})]})})},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return s("view_screen",{view_screen:0})}return g}()})}},90698:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),N=n(84947),b=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function C(g,v){var p=(0,t.useBackend)(v),V=p.act,k=p.data,B=k.loginState,I=k.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,l):I===2?w=(0,e.createComponentVNode)(2,u):I===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),h=function(g,v){var p=(0,t.useBackend)(v),V=p.data,k=(0,t.useLocalState)(v,"tabIndex",0),B=k[0],I=k[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},l=function(g,v){var p=(0,t.useLocalState)(v,"tabIndex",0),V=p[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var p=(0,t.useBackend)(v),V=p.act,k=p.data,B=k.accounts,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),R=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var F=R?1:-1;return D[x].localeCompare(j[x])*F}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return V("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(g,v){var p=(0,t.useBackend)(v),V=p.act,k=p.data,B=k.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},i=function(g,v){var p=(0,t.useLocalState)(v,"sortId","name"),V=p[0],k=p[1],B=(0,t.useLocalState)(v,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!I):(k(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var p=(0,t.useBackend)(v),V=p.act,k=p.data,B=k.is_printing,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return V("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},u=function(g,v){var p=(0,t.useBackend)(v),V=p.act,k=p.data,B=k.account_number,I=k.owner_name,w=k.money,T=k.suspended,A=k.transactions,x=k.account_pin,E=k.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return V("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return V("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function P(){return V("toggle_suspension")}return P}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},s=function(g,v){var p=(0,t.useBackend)(v),V=p.act,k=p.data,B=(0,t.useLocalState)(v,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return V("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(P,R){return w(R)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},66895:function(L,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AgentCard=function(){function S(y,h){var l=(0,a.useLocalState)(h,"tabIndex",0),c=l[0],m=l[1],i=function(){function d(u){switch(u){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,b);default:return(0,e.createComponentVNode)(2,N)}}return d}();return(0,e.createComponentVNode)(2,o.Window,{width:425,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===0,onClick:function(){function d(){return m(0)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function d(){return m(1)}return d}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),i(c)]})})})}return S}(),N=r.AgentCardInfo=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.registered_name,d=m.sex,u=m.age,s=m.assignment,C=m.associated_account_number,g=m.blood_type,v=m.dna_hash,p=m.fingerprint_hash,V=m.photo,k=m.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,t.Button,{content:i||"[UNSET]",onClick:function(){function B(){return c("change_name")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Button,{iconRight:!1,content:d||"[UNSET]",onClick:function(){function B(){return c("change_sex")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"[UNSET]",onClick:function(){function B(){return c("change_age")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"[UNSET]",onClick:function(){function B(){return c("change_occupation")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,t.Button,{content:p||"[UNSET]",onClick:function(){function B(){return c("change_fingerprints")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"[UNSET]",onClick:function(){function B(){return c("change_blood_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,t.Button,{content:v||"[UNSET]",onClick:function(){function B(){return c("change_dna_hash")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,t.Button,{content:C||"[UNSET]",onClick:function(){function B(){return c("change_money_account")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Update":"[UNSET]",onClick:function(){function B(){return c("change_photo")}return B}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button,{content:"Delete Card Info",onClick:function(){function B(){return c("delete_info")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button,{content:"Reset Access",onClick:function(){function B(){return c("clear_access")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{content:k?"Untrackable":"Trackable",onClick:function(){function B(){return c("change_ai_tracking")}return B}()})})]})})})],4)}return S}(),b=r.AgentCardAppearances=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=(0,a.useLocalState)(h,"selectedAppearance",null),d=i[0],u=i[1],s=m.appearances;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:C===d,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+C.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function g(){u(C),c("change_appearance",{new_appearance:C.name})}return g}()})},C.name)})})})}return S}()},26354:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=f[c.power.main]||f[0],i=f[c.power.backup]||f[0],d=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function u(){return l("disrupt-main")}return u}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function u(){return l("disrupt-backup")}return u}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function u(){return l("shock-restore")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function u(){return l("shock-temp")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function u(){return l("shock-perm")}return u}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function u(){return l("idscan-toggle")}return u}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function u(){return l("emergency-toggle")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function u(){return l("bolt-toggle")}return u}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function u(){return l("light-toggle")}return u}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function u(){return l("safe-toggle")}return u}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function u(){return l("speed-toggle")}return u}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function u(){return l("open-close")}return u}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return b}()},26673:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),N=r.AirAlarm=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h)],4)]})})}return d}(),b=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.air,V=v.mode,k=v.atmos_alarm,B=v.locked,I=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return p.danger.overall===0?k===0?A="Optimal":A="Caution: Atmos alert in area":p.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:b(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:b(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:b(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:b(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:b(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:b(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:b(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:b(p.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function p(){return v(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function p(){return v(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function p(){return v(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function p(){return v(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},h=function(u,s){var C=(0,a.useLocalState)(s,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.vents;return p.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function k(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function k(){return g("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return k}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function k(){return g("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function k(){return g("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return k}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function k(){return g("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function k(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return k}()})]})]})},V.name)})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.scrubbers;return p.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function k(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function k(){return g("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return k}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function k(){return g("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return k}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function k(){return g("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function k(){return g("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function k(){return g("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function k(){return g("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function k(){return g("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return k}()})]})]})},V.name)})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.modes,V=v.presets,k=v.emagged,B=v.mode,I=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:p.map(function(w){return(!w.emagonly||w.emagonly&&!!k)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:V.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(k){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:k.selected===-1?"Off":k.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:k.env,var:k.val})}return B}()})},k.val)})]},V.name)})]})})}},98565:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.exterior_status,m=l.interior_status,i=l.processing,d,u;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function s(){return h("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function s(){return h("cycle_ext_door")}return s}()}),m==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:i,color:m==="open"?"red":i?"yellow":null,onClick:function(){function s(){return h("force_int")}return s}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function s(){return h("cycle_int_door")}return s}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,u]})})]})})}return N}()},76385:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=1,b=2,S=4,y=8,h=r.AirlockElectronics=function(){function m(i,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})})}return m}(),l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&b?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&y?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&N?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:N})}return v}()})})]})]})})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.selected_accesses,v=C.one_access,p=C.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function V(){return s("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function V(){return s("set_one_access",{access:"all"})}return V}()})],4),accesses:p,selectedList:g,accessMod:function(){function V(k){return s("set",{access:k})}return V}(),grantAll:function(){function V(){return s("grant_all")}return V}(),denyAll:function(){function V(){return s("clear_all")}return V}(),grantDep:function(){function V(k){return s("grant_region",{region:k})}return V}(),denyDep:function(){function V(k){return s("deny_region",{region:k})}return V}()})}},55666:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),N=n(84947),b=-1,S=1,y=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.autofocus,g=s.buttons,v=g===void 0?[]:g,p=s.large_buttons,V=s.message,k=V===void 0?"":V,B=s.timeout,I=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(k.length>30?Math.ceil(k.length/4):0)+(k.length&&p?5:0),E=325+(v.length>2?100:0),P=function(){function R(M){T===0&&M===b?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,N.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(M.preventDefault(),P(b)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return R}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:k})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,h,{selected:T})]})]})})})]})}return c}(),h=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=u.buttons,C=s===void 0?[]:s,g=u.large_buttons,v=u.swapped_buttons,p=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(V,k){return g&&C.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:V,id:k.toString(),selected:p===k})},k):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,l,{button:V,id:k.toString(),selected:p===k})},k)})})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.large_buttons,g=m.button,v=m.selected,p=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function V(){return u("choose",{choice:g})}return V}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&p})}},16504:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.change_race,i=c.species,d=c.specimen,u=c.change_gender,s=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,p=c.change_skin_color,V=c.change_head_accessory_color,k=c.change_hair_color,B=c.change_secondary_hair_color,I=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,F=c.change_hair_gradient,U=c.change_facial_hair,_=c.facial_hair_styles,$=c.facial_hair_style,z=c.change_head_markings,G=c.head_marking_styles,H=c.head_marking_style,J=c.change_body_markings,ae=c.body_marking_styles,ce=c.body_marking_style,se=c.change_tail_markings,he=c.tail_marking_styles,ye=c.tail_marking_style,Ie=c.change_body_accessory,pe=c.body_accessory_styles,oe=c.body_accessory_style,Z=c.change_alt_head,q=c.alt_head_styles,ue=c.alt_head_style,me=!1;return(g||v||p||V||k||B||I||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:i.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.specimen,selected:ne.specimen===d,onClick:function(){function be(){return l("race",{race:ne.specimen})}return be}()},ne.specimen)})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function ne(){return l("gender",{gender:"male"})}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function ne(){return l("gender",{gender:"female"})}return ne}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function ne(){return l("gender",{gender:"plural"})}return ne}()})]}),!!me&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headaccessorystyle,selected:ne.headaccessorystyle===R,onClick:function(){function be(){return l("head_accessory",{head_accessory:ne.headaccessorystyle})}return be}()},ne.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.hairstyle,selected:ne.hairstyle===j,onClick:function(){function be(){return l("hair",{hair:ne.hairstyle})}return be}()},ne.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function ne(){return l("hair_gradient")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ne(){return l("hair_gradient_offset")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ne(){return l("hair_gradient_colour")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ne(){return l("hair_gradient_alpha")}return ne}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:_.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.facialhairstyle,selected:ne.facialhairstyle===$,onClick:function(){function be(){return l("facial_hair",{facial_hair:ne.facialhairstyle})}return be}()},ne.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headmarkingstyle,selected:ne.headmarkingstyle===H,onClick:function(){function be(){return l("head_marking",{head_marking:ne.headmarkingstyle})}return be}()},ne.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ae.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodymarkingstyle,selected:ne.bodymarkingstyle===ce,onClick:function(){function be(){return l("body_marking",{body_marking:ne.bodymarkingstyle})}return be}()},ne.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:he.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.tailmarkingstyle,selected:ne.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:ne.tailmarkingstyle})}return be}()},ne.tailmarkingstyle)})}),!!Ie&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodyaccessorystyle,selected:ne.bodyaccessorystyle===oe,onClick:function(){function be(){return l("body_accessory",{body_accessory:ne.bodyaccessorystyle})}return be}()},ne.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.altheadstyle,selected:ne.altheadstyle===ue,onClick:function(){function be(){return l("alt_head",{alt_head:ne.altheadstyle})}return be}()},ne.altheadstyle)})})]})})})}return b}(),N=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function d(){return l(i.action)}return d}()},i.key)})})}},77280:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.priority||[],m=l.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(i){return(0,e.createVNode)(1,"li","color-bad",i,0,null,i)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(i){return(0,e.createVNode)(1,"li","color-average",i,0,null,i)})],0)})})})}return N}()},66274:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},b=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=(0,a.useLocalState)(m,"tabIndex",0),C=s[0],g=s[1],v=function(){function p(V){switch(V){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return g(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return g(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],C=u[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(p){return C(p)}return v}(),children:g.filter(function(v){return v.z===3}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:s,icon:"circle",tooltip:v.name,color:b(v.danger)},v.ref)})})})}},90588:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.on,m=l.pressure,i=l.max_pressure,d=l.filter_type,u=l.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return h("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:m,onDrag:function(){function s(C,g){return h("custom_pressure",{pressure:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return h("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function C(){return h("set_filter",{filter:s.gas_type})}return C}()},s.label)})})]})})})})}return N}()},87486:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.on,i=c.pressure,d=c.max_pressure,u=c.node1_concentration,s=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function C(){return l("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:i===0,width:2.2,onClick:function(){function C(){return l("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:i,onDrag:function(){function C(g,v){return l("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function C(){return l("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:s})]})})})})}return b}(),N=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=S.node_name,i=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:i===0,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function d(u,s){return l("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i+10)/100})}return d}()})]})}},46714:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.on,m=l.rate,i=l.max_rate,d=l.gas_unit,u=l.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return h("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:u,minValue:0,maxValue:i,value:m,onDrag:function(){function s(C,g){return h("custom_rate",{rate:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return h("max_rate")}return s}()})]})]})})})})}return N}()},66032:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),N=n(84947),b=r.AtmosTankControl=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[d].pressure," kpa"]}):"",Object.keys(i[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(u){return Object.keys(i[d]).indexOf(u)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(u),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(u),value:i[d][u],minValue:0,maxValue:100,children:(0,o.toFixed)(i[d][u],2)+"%"})},(0,f.getGasLabel)(u)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),b=n(37843),S=function(l,c,m,i){return l.requirements===null?!0:!(l.requirements.metal*i>c||l.requirements.glass*i>m)},y=r.Autolathe=function(){function h(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.total_amount,s=d.max_amount,C=d.metal_amount,g=d.glass_amount,v=d.busyname,p=d.busyamt,V=d.showhacked,k=d.buildQueue,B=d.buildQueueLen,I=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],F=(0,b.createSearch)(D,function(z){return z.name}),U="";B>0&&(U=k.map(function(z,G){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:k[G][0],onClick:function(){function H(){return i("remove_from_queue",{remove_from_queue:k.indexOf(z)+1})}return H}()},z)},G)}));var _=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||D)&&(d.showhacked||!z.hacked)}),D&&(0,t.filter)(F),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(I),$="Build";return D?$="Results for: '"+D+"':":A&&($="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(G){return x(G)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(G,H){return j(H)}return z}(),mb:1}),_.map(function(z){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:1})}return G}(),children:(0,b.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:10})}return G}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:25})}return G}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function G(){return i("make",{make:z.uid,multiplier:z.max_multiplier})}return G}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(G){return(0,b.toTitleCase)(G)+": "+z.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return i("clear_queue")}return z}()})]})]})]})})})}return h}()},13940:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.implant,m=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function i(){return h("eject_case")}return i}()})]})})})}return N}()},55295:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.Biogenerator=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.data,u=i.config,s=d.container,C=d.processing,g=u.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,b)]})})})}return l}(),b=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,C=u.container,g=u.container_curr_reagents,v=u.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:s}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.has_plants,C=u.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,C=u.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),v=g[0],p=g[1],V=Object.entries(C).map(function(k,B){var I=Object.entries(k[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:k[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:sd&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!p&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>V&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i===0,tooltip:"Set to 0",onClick:function(){function I(){return l("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function I(){return l("set",{set_level:d})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function I(){return l("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:i,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return l("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:i===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return l("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return l("set",{set_level:v})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=u,onClick:function(){function w(){return l("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return b}()},31876:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(37843),o=n(91819),f=n(2971),N=n(84947),b=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],h={average:[.25,.5],bad:[.5,1/0]},l=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},i=r.BodyScanner=function(){function k(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:P})})}return k}(),d=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,u,{occupant:I}),(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,C,{occupant:I}),(0,e.createComponentVNode)(2,v,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:I.intOrgan})]})},u=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:b[x.stat][0],children:b[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},s=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:l(y,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:h,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},p=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:h,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},73440:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=n(92462),b=r.BookBinder=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.selectedbook,d=m.book_categories,u=[];return d.map(function(s){return u[s.description]=s.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function s(){return c("print_book")}return s}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.title,onClick:function(){function s(){return(0,f.modalOpen)(h,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.author,onClick:function(){function s(){return(0,f.modalOpen)(h,"edit_selected_author")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(s){return s.description}),onSelected:function(){function s(C){return c("toggle_binder_category",{category_id:u[C]})}return s}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function s(){return(0,f.modalOpen)(h,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return i.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:s.category_id})}return C}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotClean=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,p=c.painame,V=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:i,onClick:function(){function k(){return l("blood")}return k}()})}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:i,onClick:function(){function k(){return l("ejectpai")}return k}()})})]})})}return b}()},36078:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotFloor=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.noaccess,i=c.painame,d=c.hullplating,u=c.replace,s=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,p=c.magnet,V=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function k(){return l("autotile")}return k}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function k(){return l("replacetiles")}return k}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function k(){return l("fixfloors")}return k}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function k(){return l("eattiles")}return k}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function k(){return l("maketiles")}return k}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function k(){return l("nagonempty")}return k}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:m,onClick:function(){function k(){return l("anchored")}return k}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function k(){return l("ejectpai")}return k}()})})]})})}return b}()},89121:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotHonk=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return b}()},39805:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotMed=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,p=c.painame,V=c.shut_up,k=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:i,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:k,disabled:i,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:i,onChange:function(){function E(P,R){return l("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:i,onChange:function(){function E(P,R){return l("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:i,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:i,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:i,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:i,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return b}()},35519:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),N=r.BotSecurity=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.noaccess,i=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,C=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return l("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return l("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return l("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return l("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return l("arrdeclare")}return v}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function v(){return l("ejectpai")}return v}()})})]})})}return b}()},71169:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(y,h){var l=y.cell,c=(0,o.useBackend)(h),m=c.act,i=l.cell_id,d=l.occupant,u=l.crimes,s=l.brigged_by,C=l.time_left_seconds,g=l.time_set_seconds,v=l.ref,p="";C>0&&(p+=" BrigCells__listRow--active");var V=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(y){var h=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),h.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},b=r.BrigCells=function(){function S(y,h){var l=(0,o.useBackend)(h),c=l.act,m=l.data,i=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N,{cells:i})})})})})}return S}()},19070:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var m=[],i=0;for(i=0;im?this.substring(0,m)+"...":this};var y=function(i,d){var u,s;if(!d)return[];var C=i.findIndex(function(g){return g.name===d.name});return[(u=i[C-1])==null?void 0:u.name,(s=i[C+1])==null?void 0:s.name]},h=function(i,d){d===void 0&&(d="");var u=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(u),(0,a.sortBy)(function(s){return s.name})])(i)},l=r.CameraConsole=function(){function m(i,d){var u=(0,N.useBackend)(d),s=u.act,C=u.data,g=u.config,v=C.mapRef,p=C.activeCamera,V=h(C.cameras),k=y(V,p),B=k[0],I=k[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return s("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,b.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,d){var u=(0,N.useBackend)(d),s=u.act,C=u.data,g=(0,N.useLocalState)(d,"searchText",""),v=g[0],p=g[1],V=C.activeCamera,k=h(C.cameras,v);return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return p(w)}return B}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:k.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return s("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},64487:function(L,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(66586),f=n(37843),N=n(91819),b=n(2971),S=n(84947),y=function(d,u){var s,C;if(!u)return[];var g=d.findIndex(function(v){return v.name===u.name});return[(s=d[g-1])==null?void 0:s.name,(C=d[g+1])==null?void 0:C.name]},h=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(C){return C.name});return(0,t.flow)([(0,a.filter)(function(C){return C==null?void 0:C.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(C){return C.name})])(d)},l=r.CameraConsole220=function(){function i(d,u){var s=(0,N.useLocalState)(u,"tabIndex",0),C=s[0],g=s[1],v=function(){function p(V){switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,S.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{children:(0,e.createComponentVNode)(2,b.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{width:C===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,b.Tabs,{fluid:!0,ml:C===1?1:0,mt:C===1?1:0,children:[(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return g(0)}return p}(),children:[(0,e.createComponentVNode)(2,b.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,b.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return g(1)}return p}(),children:[(0,e.createComponentVNode)(2,b.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(C)]})})})})}return i}(),c=r.CameraConsoleMapContent=function(){function i(d,u){var s=(0,N.useBackend)(u),C=s.act,g=s.data,v=s.config,p=h(g.cameras),V=(0,N.useLocalState)(u,"zoom",1),k=V[0],B=V[1],I=g.mapRef,w=g.activeCamera,T=g.stationLevel,A=y(p,w),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,style:{display:"flex"},children:[(0,e.createComponentVNode)(2,b.Stack.Item,{height:"100%",style:{display:"flex",flex:"0 0 475px"},children:(0,e.createComponentVNode)(2,b.NanoMap,{onZoom:function(){function P(R){return B(R)}return P}(),children:p.filter(function(P){return P.z===T}).map(function(P){return(0,e.createComponentVNode)(2,b.NanoMap.NanoButton,{activeCamera:w,x:P.x,y:P.y,context:u,zoom:k,icon:"circle",tooltip:P.name,name:P.name,color:"blue",status:P.status},P.ref)})})}),(0,e.createComponentVNode)(2,b.Stack.Item,{height:"100%",resizable:!0,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),w&&w.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-left",disabled:!x,onClick:function(){function P(){return C("switch_camera",{name:x})}return P}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function P(){return C("switch_camera",{name:E})}return P}()})],4)],4),(0,e.createComponentVNode)(2,b.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:I,type:"map"}})]})]})}return i}(),m=r.CameraConsoleOldContent=function(){function i(d,u){var s=(0,N.useBackend)(u),C=s.act,g=s.data,v=s.config,p=g.mapRef,V=g.activeCamera,k=(0,N.useLocalState)(u,"searchText",""),B=k[0],I=k[1],w=h(g.cameras,B),T=y(w,V),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,b.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.Stack.Item,{children:(0,e.createComponentVNode)(2,b.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(P,R){return I(R)}return E}()})}),(0,e.createComponentVNode)(2,b.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.Section,{fill:!0,scrollable:!0,children:w.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",V&&E.name===V.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function P(){return C("switch_camera",{name:E.name})}return P}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),V&&V.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return C("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,b.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return C("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,b.ByondUi,{className:"CameraConsole__map",params:{id:p,type:"map"}})],4)]})}return i}()},21348:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),N=n(84947),b=r.Canister=function(){function S(y,h){var l=(0,t.useBackend)(h),c=l.act,m=l.data,i=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,C=m.minReleasePressure,g=m.maxReleasePressure,v=m.valveOpen,p=m.name,V=m.canLabel,k=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=k.prim.options[B.prim].name);var A="";B.sec&&(A=k.sec.options[B.sec].name);var x="";B.ter&&(x=k.ter.options[B.ter].name);var E="";B.quart&&(E=k.quart.options[B.quart].name);var P=[],R=[],M=[],D=[],j=0;for(j=0;jp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:s.cooldown_time||!p.can_close,onClick:function(){function V(){return u("make_job_unavailable",{job:p.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!p.can_open,onClick:function(){function V(){return u("make_job_available",{job:p.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:s.cooldown_time||!p.can_prioritize,onClick:function(){function V(){return u("prioritize_job",{job:p.title})}return V}()})})]},p.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function p(V){return u("set",{access:V})}return p}(),grantAll:function(){function p(){return u("grant_all")}return p}(),denyAll:function(){function p(){return u("clear_all")}return p}(),grantDep:function(){function p(V){return u("grant_region",{region:V})}return p}(),denyDep:function(){function p(V){return u("deny_region",{region:V})}return p}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:s.authenticated?s.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function p(){return u("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function p(){return u("wipe_my_logs")}return p}()})})]}):v=(0,e.createComponentVNode)(2,h):v=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),s.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function V(){return u("remote_demote",{remote_demote:p.name})}return V}()})})]},p.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),N=n(84947),b=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),y=function(u,s){var C=(0,o.useLocalState)(s,"contentsModal",null),g=C[0],v=C[1],p=(0,o.useLocalState)(s,"contentsModalTitle",null),V=p[0],k=p[1];if(g!==null&&V!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){v(null),k(null)}return B}()})})]})},h=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,p=v.is_public,V=v.timeleft,k=v.moving,B=v.at_station,I,w;return!k&&!B?(I="Docked off-station",w="Call Shuttle"):!k&&B?(I="Docked at the station",w="Return Shuttle"):k&&(w="In Transit...",V!==1?I="Shuttle is en route (ETA: "+V+" minutes)":I="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),p===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:k,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},l=function(u,s){var C,g=(0,o.useBackend)(s),v=g.act,p=g.data,V=p.accounts,k=(0,o.useLocalState)(s,"selectedAccount"),B=k[0],I=k[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(C=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,p=v.requests,V=v.categories,k=v.supply_packs,B=(0,o.useSharedState)(s,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(s,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(s,"contentsModal",null),P=E[0],R=E[1],M=(0,o.useLocalState)(s,"contentsModalTitle",null),D=M[0],j=M[1],F=(0,b.createSearch)(A,function(H){return H.name}),U=(0,o.useLocalState)(s,"selectedAccount"),_=U[0],$=U[1],z=(0,a.flow)([(0,t.filter)(function(H){return H.cat===V.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(k),G="Crate Catalogue";return A?G="Results for '"+A+"':":I&&(G="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:V.map(function(H){return H.name}),selected:I,onSelected:function(){function H(J){return w(J)}return H}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(J,ae){return x(ae)}return H}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:z.map(function(H){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[H.name," (",H.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function J(){return g("order",{crate:H.ref,multiple:!1,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||H.singleton,onClick:function(){function J(){return g("order",{crate:H.ref,multiple:!0,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){R(H.contents),j(H.name)}return J}()})]})]},H.name)})})})]})})},m=function(u,s){var C=u.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},i=function(u,s){var C=(0,o.useBackend)(s),g=C.act,v=C.data,p=v.requests,V=v.orders,k=v.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:p.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:k.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],i=c[1],d=l.cl_data,u=l.last_cl,s={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function g(v){return v in s?s[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return i(!m)}return g}()}),children:d.map(function(g){return!m&&g.merge_ts<=u||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return h("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},56975:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),N=[1,5,10,20,30,50],b=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,l)]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.amount,g=s.energy,v=s.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(p,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===p,content:p,onClick:function(){function k(){return u("amount",{amount:p})}return k}()})},V)})})})]})})})},h=function(m,i){for(var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.chemicals,g=C===void 0?[]:C,v=[],p=0;p<(g.length+1)%3;p++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(V,k){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return u("dispense",{reagent:V.id})}return B}()},k)}),v.map(function(V,k){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},k)})]})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.isBeakerLoaded,g=s.beakerCurrentVolume,v=s.beakerMaxVolume,p=s.beakerContents,V=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function k(){return u("ejectBeaker")}return k}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:V,buttons:function(){function k(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return u("remove",{reagent:B.id,amount:-1})}return I}()}),b.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return u("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return k}()})})})}},48734:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),N=n(84947),b=r.ChemHeater=function(){function h(l,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return h}(),S=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,C=d.autoEject,g=d.isActive,v=d.currentTemp,p=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function V(){return i("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!p,onClick:function(){function V(){return i("toggle_on")}return V}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(u,0),minValue:0,maxValue:1e3,onDrag:function(){function V(k,B){return i("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function V(k){return(0,a.toFixed)(k)+" K"}return V}()})||"\u2014"})]})})})},y=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,C=d.beakerMaxVolume,g=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!u&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return i("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:u,beakerContents:g})})})}},35918:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),N=n(22677),b=n(66586),S=n(50175),y=["icon"];function h(x,E){if(x==null)return{};var P={},R=Object.keys(x),M,D;for(D=0;D=0)&&(P[M]=x[M]);return P}function l(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function P(R,M){return R.__proto__=M,R}return P}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return F}()})]})})})})},u=r.ChemMaster=function(){function x(E,P){var R=(0,a.useBackend)(P),M=R.data,D=M.condi,j=M.beaker,F=M.beaker_reagents,U=F===void 0?[]:F,_=M.buffer_reagents,$=_===void 0?[]:_,z=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s,{beaker:j,beakerReagents:U,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,C,{mode:z,bufferReagents:$}),(0,e.createComponentVNode)(2,g,{isCondiment:D,bufferNonEmpty:$.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,P){var R=(0,a.useBackend)(P),M=R.act,D=E.beaker,j=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function U(_,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function U(_,$){return(0,e.createComponentVNode)(2,t.Box,{mb:$p.biomass?"bad":null,children:["Biomass: ",w[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",mx:"2px",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:w[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:w[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)]})]})})]})]})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.patient_limb_data,V=v.limb_list,k=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p[B][0]+p[B][1],maxValue:p[B][5],ranges:{good:[0,p[B][5]/3],average:[p[B][5]/3,2*p[B][5]/3],bad:[2*p[B][5]/3,p[B][5]]},children:["Current Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+p[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+p[B][1]]})}),p[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!k[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][0]||p[B][1]),checked:!(k[B][0]||k[B][1])&&(p[B][0]||p[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&N),checked:!(k[B][2]&N)&&p[B][2]&N,onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&b),checked:!(k[B][2]&b)&&p[B][2]&b,onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&S),checked:!(k[B][2]&S)&&p[B][2]&S,onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.patient_organ_data,V=v.organ_list,k=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[B][3],":"," "]}),p[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!(p[B][2]||p[B][1])&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!k[B][2]&&!k[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!(p[B][2]||p[B][1])&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[B][0],checked:!k[B][0]&&p[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),p[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][3]," is missing!"]}),!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:p[B][0],maxValue:p[B][4],ranges:{good:[0,p[B][4]/3],average:[p[B][4]/3,2*p[B][4]/3],bad:[2*p[B][4]/3,p[B][4]]},children:"Current Damage: "+p[B][0]})]})]})},B)})})}},58378:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CloningPod=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.biomass,m=l.biomass_storage_capacity,i=l.sanguine_reagent,d=l.osseous_reagent,u=l.organs,s=l.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:i+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:i,step:1,unit:"units",onChange:function(){function C(g,v){return h("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return h("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function C(g,v){return h("remove_reagent",{reagent:"osseous_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return h("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!s&&(0,e.createComponentVNode)(2,t.Box,{children:[!u&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!u&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return h("eject_organ",{organ_ref:C.ref})}return g}()})})]},C)})]}),!!s&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return N}()},14283:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:i.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function u(s,C){return h("setvalue",{idx:d.idx+1,value:C})}return u}()})]},d.name)})},i)})})})})})}return N}()},98577:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(u){switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,i);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),f(p)]})})})}return d}(),b=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.authenticated,V=v.noauthbutton,k=v.esc_section,B=v.esc_callable,I=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,P;return p?p===1?P="Command":p===2?P="Captain":p===3?P="CentComm Officer":p===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:V,content:p?"Log Out ("+P+")":"Log In",onClick:function(){function R(){return g("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!k&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return g("callshuttle")}return R}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return g("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.is_admin;return p?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,h)},y=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.is_admin,V=v.gamma_armory_location,k=v.admin_levels,B=v.authenticated,I=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:k,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,h)})]})},h=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.msg_cooldown,V=v.emagged,k=v.cc_cooldown,B=v.security_level_color,I=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var P=V?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return k>0&&(P+=" ("+k+"s)",R+=" ("+k+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||p>0,onClick:function(){function M(){return g("announce")}return M}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!T||k>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return g("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!T||k>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||k>0,onClick:function(){function M(){return g("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return g("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return g("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return g("RestartNanoMob")}return M}()})})]})})})],4)},l=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.stat_display,V=v.authhead,k=v.current_message_title,B=p.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===p.type,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=p.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===p.icon,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!V,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!V,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.authhead,V=v.current_message_title,k=v.current_message,B=v.messages,I=v.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:k})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||V===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=u.levels,V=u.required_access,k=u.use_confirm,B=v.security_level;return k?p.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):p.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},i=function(u,s){var C=(0,a.useBackend)(s),g=C.act,v=C.data,p=v.is_admin,V=v.possible_cc_sounds;if(!p)return g("main");var k=(0,a.useLocalState)(s,"subtitle",""),B=k[0],I=k[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],P=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,U){return I(U)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,U){return A(U)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:M,onSelected:function(){function j(F){return D(F)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return g("test_sound",{sound:M})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return P(!E)}return j}()})})]})]})})}},70611:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.biomass,m=l.compost,i=l.biomass_capacity,d=l.compost_capacity,u=(0,a.useSharedState)(S,"vendAmount",1),s=u[0],C=u[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[c," / ",i," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,p){return C(p)}return g}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*s,icon:"arrow-circle-down",onClick:function(){function g(){return h("create",{amount:s})}return g}()})})})]})})})}return N}()},73744:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),N=n(84947);function b(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(V,k){return V.__proto__=k,V}return p}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},h=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],l=r.Contractor=function(){function g(v,p){var V=(0,t.useBackend)(p),k=V.act,B=V.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,u,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:h,finishedTimeout:3e3,onFinished:function(){function x(){return k("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(p,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(v,p){var V=(0,t.useBackend)(p),k=V.act,B=V.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return k("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,p){var V=(0,t.useBackend)(p),k=V.act,B=V.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return k("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return k("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,p){var V=(0,t.useBackend)(p),k=V.act,B=V.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return k("extract")}return M}()})},v,{children:I.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return k("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function U(){return k("activate",{uid:M.uid,difficulty:F+1})}return U}()},F)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var p=v.objective.locs.user_area_id,V=v.objective.locs.user_coords,k=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,I=p===k;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},u=function(v,p){var V=(0,t.useBackend)(p),k=V.act,B=V.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(g){b(v,g);function v(V){var k;return k=g.call(this,V)||this,k.timer=null,k.state={currentIndex:0,currentDisplay:[]},k}var p=v.prototype;return p.tick=function(){function V(){var k=this.props,B=this.state;if(B.currentIndex<=k.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(k.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(k.onFinished,k.finishedTimeout)}return V}(),p.componentDidMount=function(){function V(){var k=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return k.tick()},1e3/I)}return V}(),p.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),p.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(k){return(0,e.createFragment)([k,(0,e.createVNode)(1,"br")],0,k)})})}return V}(),v}(e.Component),C=function(v,p){var V=(0,t.useLocalState)(p,"viewingPhoto",""),k=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:k}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},57392:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.slowFactor,m=l.oneWay,i=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:i>0?"forward":i<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return h("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return h("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return h("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(u){return u+"x"}return d}(),onChange:function(){function d(u,s){return h("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return h("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return h("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return N}()},91413:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),N=n(99753),b=n(30381),S=n(84947),y=function(d,u){return d.dead?"Deceased":parseInt(d.health,10)<=u?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},h=function(d,u){return d.dead?"red":parseInt(d.health,10)<=u?"orange":parseInt(d.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function i(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),p=v[0],V=v[1],k=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:p===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:p===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),k(p)]})})})}return i}(),c=function(d,u){var s=(0,o.useBackend)(u),C=s.act,g=s.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),p=g.possible_levels,V=g.viewing_current_z_level,k=g.is_advanced,B=(0,o.useLocalState)(u,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:k?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:p,selected:V,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:h(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:b.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3?g.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,u){var s=(0,o.useBackend)(u),C=s.data,g=(0,o.useLocalState)(u,"zoom",1),v=g[0],p=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function V(k){return p(k)}return V}(),children:C.crewmembers.filter(function(V){return V.sensor_type===3}).map(function(V){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:V.x,y:V.y,zoom:v,icon:"circle",tooltip:V.name+" ("+V.assignment+")",color:h(V,C.critThreshold)},V.ref)})})})}},55104:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],b=r.Cryo=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return h}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,C=d.occupant,g=C===void 0?[]:C,v=d.cellTemperature,p=d.cellTemperatureStatus,V=d.isBeakerLoaded,k=d.cooldownProgress,B=d.auto_eject_healthy,I=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return i("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return i("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return i(u?"switchOff":"switchOn")}return w}(),selected:u,children:u?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:k,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return i(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return i(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerLabel,C=d.beakerVolume;return u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=r.CryopodConsole=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.data,i=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,b),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),b=function(h,l){var c=(0,a.useBackend)(l),m=c.data,i=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:i.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(d,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},u)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.frozen_items,u=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return m("one_item",{item:s.uid})}return C}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],b=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function p(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;k.dnaBlockSize=A,k.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return p}(),h=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),k.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},l=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(k.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:b.map(function(P,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},R)})}),E]})},c=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:k.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function P(R){return R.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(R,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},m=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:k.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},i=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationIntensity",{value:P})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationDuration",{value:P})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},d=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,u,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,s)})]})},u=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,P=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function R(){return I("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return I("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return I("bufferOption",{option:"saveDisk",id:T})}return R}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return I("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(V,k){var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return I("injectRejuvenators",{amount:E})}return R}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(V,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},v=function(V,k){for(var B=(0,a.useBackend)(k),I=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,P=V.action,R=T.split(""),M=0,D=[],j=function(){for(var _=F/E+1,$=[],z=function(){var J=G+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:A===_&&x===J,content:R[F+G],mb:"0",onClick:function(){function ae(){return I(P,{block:_,subblock:J})}return ae}()}))},G=0;Gs.spawnpoints?"red":"green",children:[s.total," total, versus ",s.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return u("dispatch_ert",{silent:v})}return V}()})})]})})})},h=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return u("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,f.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,C=(0,a.useLocalState)(i,"text",""),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function p(V,k){return v(k)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return u("deny_ert",{reason:g})}return p}()})]})})}},77877:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.EconomyManager=function(){function S(y,h){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,b)})]})}return S}(),b=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},10707:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Electropack=function(){function b(S,y){var h=(0,t.useBackend)(y),l=h.act,c=h.data,m=c.power,i=c.code,d=c.frequency,u=c.minFrequency,s=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function C(){return l("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:s/10,value:d/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return l("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function C(g,v){return l("code",{code:v})}return C}()})})]})})})})}return b}()},85307:function(L,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(37843),N=r.EmotePanel=function(){function S(y,h){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,b)})})})}return S}(),b=r.EmotePanelContent=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.emotes,d=(0,a.useLocalState)(h,"searchText",""),u=d[0],s=d[1],C=(0,a.useLocalState)(h,"filterVisible",""),g=C[0],v=C[1],p=(0,a.useLocalState)(h,"filterAudible",""),V=p[0],k=p[1],B=(0,a.useLocalState)(h,"filterSound",""),I=B[0],w=B[1],T=(0,a.useLocalState)(h,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(h,"filterTargettable",""),P=E[0],R=E[1],M=(0,a.useLocalState)(h,"useTarget",""),D=M[0],j=M[1],F=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function U(_,$){return s($)}return U}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function U(){return v(!g)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:V,onClick:function(){function U(){return k(!V)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:I,onClick:function(){function U(){return w(!I)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function U(){return x(!A)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function U(){return R(!P)}return U}()})]}),children:F})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+u+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:D,onClick:function(){function U(){return j(!D)}return U}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:i.filter(function(U){return U.key&&(u.length>0?U.key.toLowerCase().includes(u.toLowerCase())||U.name.toLowerCase().includes(u.toLowerCase()):!0)&&(g?U.visible:!0)&&(V?U.audible:!0)&&(I?U.sound:!0)&&(A?U.hands:!0)&&(P?U.targettable:!0)}).map(function(U){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return c("play_emote",{emote_key:U.key,useTarget:D})}return _}(),children:[U.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",U.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",U.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",U.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",U.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",U.name]},U.name)})})})})})],4)}return S}()},52640:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(90955),b=n(72026),S=r.EvolutionMenu=function(){function l(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,h)]})})})}return l}(),y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,C=u.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:s}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},h=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,C=u.ability_tabs,g=u.purchased_abilities,v=u.view_mode,p=(0,t.useLocalState)(m,"selectedTab",C[0]),V=p[0],k=p[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var F=(0,a.createSearch)(j,function(U){return U.name+"|"+U.description});return(0,N.flow)([(0,b.filter)(function(U){return U==null?void 0:U.name}),(0,b.filter)(F),(0,b.sortBy)(function(U){return U==null?void 0:U.name})])(D)},P=function(D){if(w(D),D==="")return x(V.abilities);x(E(C.map(function(j){return j.abilities}).flat(),D))},R=function(D){k(D),x(D.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(D,j){P(j)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&V===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),g.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>s||g.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),N=n(73712),b=n(84947),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var p={},V=Object.keys(g),k,B;for(B=0;B=0)&&(p[k]=g[k]);return p}var h=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,p){var V=(0,o.useBackend)(p),k=V.act,B=V.data,I=B.building;return(0,e.createComponentVNode)(2,b.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,b.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})})})}return g}(),m=function(v,p){var V=(0,o.useBackend)(p),k=V.act,B=V.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return k("withdraw",{id:A})}return x}()},A)})})},i=function(v,p){var V=(0,o.useBackend)(p),k=V.act,B=V.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(p,"searchText",""),E=x[0],P=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function D(j){return k("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return k("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return k("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,F){return P(F)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,C,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,p){var V=(0,o.useBackend)(p),k=V.act,B=V.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},u=function(v,p){var V=(0,o.useBackend)(p),k=V.act,B=V.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return k("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return k("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function P(){return k("queueswap",{from:E+1,to:E})}return P}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(v,p){var V=(0,o.useBackend)(p),k=V.act,B=V.data,I=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[I]||0,P=w||E;if(!(P<=0&&!(I==="metal"||I==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:P.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/h*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,p){var V=(0,o.useBackend)(p),k=V.act,B=V.data,I=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return k("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return k("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),b=r.ExperimentConsole=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,C=m.occupant_status,g=function(){function p(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return f.get(C)}return B}(),k=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:k.color,children:k.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return p}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function p(){return c("door")}return p}()}),children:v})]})})}return S}()},14172:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,N=1013,b=function(h){var l="good",c=80,m=95,i=110,d=120;return hi?l="average":h>d&&(l="bad"),l},S=r.ExternalAirlockController=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.chamber_pressure,u=i.exterior_status,s=i.interior_status,C=i.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:b(d),value:d,minValue:f,maxValue:N,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return m("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":C?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return y}()},61893:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return h("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return h("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return h("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return h("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return h("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return h("send")}return c}()})})]})})]})})}return N}()},80031:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=y.config,m=l.contents,i=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",i," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function u(){return h("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return N}()},39552:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=S.image,i=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":i&&"solid"||"none","border-width":"2px","border-color":"orange",padding:i&&"2px"||"4px"},onClick:d})},N=r.FloorPainter=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.availableStyles,i=c.selectedStyle,d=c.selectedDir,u=c.directionsPreview,s=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return l("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:i,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return l("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return l("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[C],isSelected:i===C,onSelect:function(){function g(){return l("select_style",{style:C})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:u[g],isSelected:g===d,onSelect:function(){function v(){return l("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return b}()},5090:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=function(i){return i?"("+i.join(", ")+")":"ERROR"},b=function(i,d){if(!(!i||!d)){if(i[2]!==d[2])return null;var u=Math.atan2(d[1]-i[1],d[0]-i[0]),s=Math.sqrt(Math.pow(d[1]-i[1],2)+Math.pow(d[0]-i[0],2));return{angle:(0,a.rad2deg)(u),distance:s}}},S=r.GPS=function(){function m(i,d){var u=(0,t.useBackend)(d),s=u.data,C=s.emped,g=s.active,v=s.area,p=s.position,V=s.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:v,position:p})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return m}(),y=function(i,d){var u=i.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:u?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),u?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},h=function(i,d){var u=(0,t.useBackend)(d),s=u.act,C=u.data,g=C.active,v=C.tag,p=C.same_z,V=(0,t.useLocalState)(d,"newTag",v),k=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function I(){return s("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function I(){return s("tag",{newtag:k})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===k,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return s("tag",{newtag:k})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function I(){return s("same_z")}return I}()})})]})})},l=function(i,d){var u=i.title,s=i.area,C=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:u||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),N(C)]})})},c=function(i,d){var u=(0,t.useBackend)(d),s=u.data,C=s.position,g=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},i,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,b(C,v.position))}).map(function(v,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(v.position)})]},p)})})})))}},1055:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),N=r.GeneModder=function(){function i(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,b)]})})})}return i}(),b=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function p(){return C("insert")}return p}()}),children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.has_seed,p=g.seed,V=g.has_disk,k=g.disk,B,I;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+p.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:p.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?I=k.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},h=function(d,u){var s=(0,a.useBackend)(u),C=s.act,g=s.data,v=g.disk,p=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:p.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function k(){return C("extract",{id:V.id})}return k}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function k(){return C("replace",{id:V.id})}return k}()})})]},V)})},"Core Genes")},l=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(d,u){var s=(0,a.useBackend)(u),C=s.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:v})},m=function(d,u){var s=d.title,C=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(u),p=v.act,V=v.data,k=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(k!=null&&k.can_extract),icon:"save",onClick:function(){function I(){return p("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return p("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function N(b,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return N}()},86268:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.data,c=l.security,m=l.medical,i=l.diagnostic,d=l.radioactivity,u=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,N,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return b}(),N=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=S.label,m=S.type,i=m===void 0?null:m,d=S.is_active,u=S.act_on,s=u===void 0?"hud_on":u,C=S.act_off,g=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return l(d?g:s,{hud_type:i})}return v}()})})]})}},8977:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:i.color,content:i.amount||"0",disabled:!i.amount,onClick:function(){function d(){return h("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return N}()},70309:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.charging_state,m=l.charge_count,i=l.breaker,d=l.ext_power,u=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return C}(),s=function(){function C(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"Online":"Offline",color:i?"green":"red",px:1.5,onClick:function(){function C(){return h("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:u(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},64769:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),N=r.GuestPass=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return l("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return l("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return l("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return l("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(i){return l("access",{access:i})}return m}(),grantAll:function(){function m(){return l("grant_all")}return m}(),denyAll:function(){function m(){return l("clear_all")}return m}(),grantDep:function(){function m(i){return l("grant_region",{region:i})}return m}(),denyDep:function(){function m(i){return l("deny_region",{region:i})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return l("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return b}()},12219:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],N=null,b=r.HandheldChemDispenser=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return h}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.amount,s=d.energy,C=d.maxEnergy,g=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[s," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:u===v,content:v,onClick:function(){function V(){return i("amount",{amount:v})}return V}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(l,c){for(var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.chemicals,s=u===void 0?[]:u,C=d.current_reagent,g=[],v=0;v<(s.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(p,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function k(){return i("dispense",{reagent:p.id})}return k}()},V)}),g.map(function(p,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},53917:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.HealthSensor=function(){function S(y,h){var l=(0,t.useBackend)(h),c=l.act,m=l.data,i=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,C=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:u,maxValue:s,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,p){return c("alarm_health",{alarm_health:p})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:b(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),b=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=(0,a.useLocalState)(y,"currentDeck",""),i=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],C=u[1],g=c.decks,v=c.ai_override,p=c.emagged,V=function(){function k(B){l("select_deck",{deck:B}),d(B),C(!0),setTimeout(function(){C(!1)},3e3)}return k}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:k,selected:k===i,onClick:function(){function B(){return V(k)}return B}()},k)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function k(){return l("ai_override")}return k}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function k(){return l("wildlifecarp")}return k}()})]})})]})]})})]})})]})}return b}(),N=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},77209:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.Instrument=function(){function l(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,h)]})})]})}return l}(),b=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.help;if(s)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.lines,C=u.playing,g=u.repeat,v=u.maxRepeats,p=u.tempo,V=u.minTempo,k=u.maxTempo,B=u.tickLag,I=u.volume,w=u.minVolume,T=u.maxVolume,A=u.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:s.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return d("repeat",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=k,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:p+B})}return x}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:p-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,P){return d("setvolume",{new:P})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.allowedInstrumentNames,C=u.instrumentLoaded,g=u.instrument,v=u.canNoteShift,p=u.noteShift,V=u.noteShiftMin,k=u.noteShiftMax,B=u.sustainMode,I=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:g,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:k,value:p,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),P]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},h=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.playing,C=u.lines,g=u.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||s,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function V(){return d("modifyline",{line:p+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function V(){return d("deleteline",{line:p+1})}return V}()})],4),children:v},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},28847:function(L,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(91819),f=n(2971),N=n(84947),b=r.Jukebox=function(){function h(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.looping,C=d.track_selected,g=d.volume,v=d.max_volume,p=d.songs,V=d.startTime,k=d.endTime,B=d.worldTime,I=d.need_coin,w=d.payment,T=d.advanced_admin,A=35,x=!w&&I&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(p),P=p.find(function(F){return F.name===C}),R=E.length,M=P?E.findIndex(function(F){return F.name===P.name})+1:0,D=function(){function F(U){var _=Math.floor(U/60),$=U%60,z=String(_).padStart(2,"0")+":"+String($).padStart(2,"0");return z}return F}(),j=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[u?s?"\u221E":D(Math.round((B-V)/10)):s?"\u221E":D(P.length)," ","/ ",s?"\u221E":D(P.length)]});return(0,e.createComponentVNode)(2,N.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[x?(0,e.createComponentVNode)(2,y):null,(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{bold:!0,maxWidth:"240px",children:P.name.length>A?(0,e.createVNode)(1,"marquee",null,P.name,0):P.name}),(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:u?"pause":"play",color:"transparent",content:u?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:u,onClick:function(){function F(){return i("toggle")}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:u||I&&!T,tooltip:I&&!T?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:s,onClick:function(){function F(){return i("loop",{looping:!s})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:V,current:s?k:B,end:k,children:j})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[u?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return i("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return i("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return i("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.Knob,{size:2,color:g<=25?"green":g<=50?"":g<=75?"orange":"red",value:g,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function F(U,_){return i("set_volume",{volume:_})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,f.Button,{bold:!0,icon:"random",color:"transparent",content:M+"/"+R,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function F(){var U=Math.floor(Math.random()*R),_=E[U];i("select_track",{track:_.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:P.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:D(F.length)})]}),onClick:function(){function U(){i("select_track",{track:F.name})}return U}()})},F.name)})})})]})})]})}return h}(),S=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},y=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,f.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},64261:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!l.swiping&&!l.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){function i(){return h("triggerevent",{triggerevent:"Red Alert"})}return i}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Emergency Response Team"})}return i}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return i}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return h("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return i}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,l.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function i(){return h("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function i(){return h("reset")}return i}()}),children:m})]})})}return N}()},34898:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),N=r.KitchenMachine=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.data,m=l.config,i=c.ingredients,d=c.operating,u=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:d,name:u}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),b=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function u(){return c("cook")}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function u(){return c("eject")}return u}()})})]})})}},52564:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.isAdmin,u=i.isSlaved,s=i.isMalf,C=i.isAIMalf,g=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&u)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",u,"."]}),!!(s||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,N),g===1&&(0,e.createComponentVNode)(2,b)]})})}return y}(),N=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_zeroth_laws,u=i.zeroth_laws,s=i.has_ion_laws,C=i.ion_laws,g=i.ion_law_nr,v=i.has_inherent_laws,p=i.inherent_laws,V=i.has_supplied_laws,k=i.supplied_laws,B=i.channels,I=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,P=i.supplied_law,R=i.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:u,ctx:l}),!!s&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:l}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:p,ctx:l}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:k,ctx:l}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},b=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name+" - "+u.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:u.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.laws.has_ion_laws>0&&u.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_zeroth_laws>0&&u.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_inherent_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_supplied_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},u.name)})})},S=function(h,l){var c=(0,a.useBackend)(h.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:h.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),h.laws.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:u.state?"Yes":"No",selected:u.state,onClick:function(){function s(){return m("state_law",{ref:u.ref,state_law:u.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:u.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:u.ref})}return s}()})],4)]})]},u.law)})]})})}},55499:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryComputer=function(){function g(v,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),b=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return k("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(p,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(p,"rate_info",{bookid:I.id})}return T}()})]})},S=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function P(){return k("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return k("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},y=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return k("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return k("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},l=function(v,p){var V=(0,a.useBackend)(p),k=V.data,B=(0,a.useLocalState)(p,"tabIndex",0),I=B[0],w=B[1],T=k.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,p){var V=(0,a.useLocalState)(p,"tabIndex",0),k=V[0];switch(k){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,s);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return k("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return k("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return k("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return k("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return k("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return k("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return k("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(p,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return k("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return k("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return k("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(p,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return k("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(p,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return k("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return k("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return k("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(p,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},s=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return k("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,p){var V=(0,a.useBackend)(p),k=V.act,B=V.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",b),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",h)},92682:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),N=r.LibraryManager=function(){function l(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,b)})]})}return l}(),b=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,h);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.ckey,C=u.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",s,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return d("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},68e3:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),N=n(31068),b=n(84947),S=r.ListInputModal=function(){function l(c,m){var i=(0,f.useBackend)(m),d=i.act,u=i.data,s=u.items,C=s===void 0?[]:s,g=u.message,v=g===void 0?"":g,p=u.init_value,V=u.timeout,k=u.title,B=(0,f.useLocalState)(m,"selected",C.indexOf(p)),I=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),P=E[0],R=E[1],M=function(){function G(H){var J=$.length-1;if(H===N.KEY_DOWN)if(I===null||I===J){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var ce;w(I+1),(ce=document.getElementById((I+1).toString()))==null||ce.scrollIntoView()}else if(H===N.KEY_UP)if(I===null||I===0){var se;w(J),(se=document.getElementById(J.toString()))==null||se.scrollIntoView()}else{var he;w(I-1),(he=document.getElementById((I-1).toString()))==null||he.scrollIntoView()}}return G}(),D=function(){function G(H){H!==I&&w(H)}return G}(),j=function(){function G(){x(!1),x(!0)}return G}(),F=function(){function G(H){var J=String.fromCharCode(H),ae=C.find(function(he){return he==null?void 0:he.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ae){var ce,se=C.indexOf(ae);w(se),(ce=document.getElementById(se.toString()))==null||ce.scrollIntoView()}}return G}(),U=function(){function G(H){var J;H!==P&&(R(H),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return G}(),_=function(){function G(){x(!A),R("")}return G}(),$=C.filter(function(G){return G==null?void 0:G.toLowerCase().includes(P.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(I.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,b.Window,{title:k,width:325,height:z,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function G(H){var J=window.event?H.which:H.keyCode;(J===N.KEY_DOWN||J===N.KEY_UP)&&(H.preventDefault(),M(J)),J===N.KEY_ENTER&&(H.preventDefault(),d("submit",{entry:$[I]})),!A&&J>=N.KEY_A&&J<=N.KEY_Z&&(H.preventDefault(),F(J)),J===N.KEY_ESCAPE&&(H.preventDefault(),d("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return _()}return G}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:$,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,h,{filteredItems:$,onSearch:U,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[I]})})]})})})]})}return l}(),y=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(p,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function k(){return s(V)}return k}(),onDblClick:function(){function k(B){B.preventDefault(),d("submit",{entry:u[v]})}return k}(),onKeyDown:function(){function k(B){var I=window.event?B.which:B.keyCode;g&&I>=N.KEY_A&&I<=N.KEY_Z&&(B.preventDefault(),C())}return k}(),selected:V===v,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(k){return k.toUpperCase()})},V)})})},h=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(p){p.preventDefault(),d("submit",{entry:u[g]})}return v}(),onInput:function(){function v(p,V){return s(V)}return v}(),placeholder:"Search...",value:C})}},75965:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return P("configure",{key:T,value:D,ref:x})}return R}()})},N=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return P("configure",{key:T,value:!A,ref:x})}return R}()})},b=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return P("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,P=(0,a.useBackend)(w),R=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},y=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,P=I.values,R=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,b,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},h=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},l=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,P=I.userburn,R=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,P=I.statusmaxhealth,R=I.statusbrute,M=I.statusburn,D=I.statustoxin,j=I.statusoxy,F=I.statustemp,U=I.statusnutrition,_=I.statusfingerprints,$=I.statusdna,z=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?_:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?$:"???"})]})}),!!T&&!!z&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),z.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},m={rad_counter:h,health_analyzer:l,status_readout:c},i=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},u=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,F=x.complexity_max,U=x.wearer_name,_=x.wearer_job,$=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:$}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",_]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,F=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.modules,R=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return D(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return D(j.ref)}return F}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,i)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return B}(),k=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},86322:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(22677),b=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(h,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.autolink,u=i.code,s=i.frequency,C=i.linkedMagnets,g=i.magnetConfiguration,v=i.path,p=i.pathPosition,V=i.probing,k=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:u})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:k?"power-off":"times",content:k?"On":"Off",selected:k,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(b.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,N.modalOpen)(l,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(I,w){var T=b.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===p,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),C.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return m("toggle_magnet_power",{id:T})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return y}()},54374:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.recharge_port,m=c&&c.mech,i=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function u(){return h("reconnect")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.charge/i.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.charge})," / "+i.maxcharge]})})]})})})})}return N}()},14823:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=n(37843),b=r.MechaControlConsole=function(){function S(y,h){var l=(0,t.useBackend)(h),c=l.act,m=l.data,i=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function u(){return c("clear_log")}return u}()}),children:d.map(function(u){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",u.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(u.message)})]},u.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i.length&&i.map(function(u){return(0,e.createComponentVNode)(2,o.Section,{title:u.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:u.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:u.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:u.uid})}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.maxHealth*.75,1/0],average:[u.maxHealth*.5,u.maxHealth*.75],bad:[-1/0,u.maxHealth*.5]},value:u.health,maxValue:u.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:u.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.cellMaxCharge*.75,1/0],average:[u.cellMaxCharge*.5,u.cellMaxCharge*.75],bad:[-1/0,u.cellMaxCharge*.5]},value:u.cellCharge,maxValue:u.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[u.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:u.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(u.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:u.active||"None"}),u.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[u.cargoMax*.75,1/0],average:[u.cargoMax*.5,u.cargoMax*.75],good:[-1/0,u.cargoMax*.5]},value:u.cargoUsed,maxValue:u.cargoMax})})||null]})},u.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),N=n(84947),b=n(51185),S=n(69774),y=n(76519),h={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,A){(0,f.modalOpen)(T,"edit",{field:A.edit,value:A.value})},m=function(T,A){var x=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:x.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:x.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[x.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:x.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:x.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:h[x.severity],children:x.severity})]})})})},i=r.MedicalRecords=function(){function w(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.loginState,R=E.screen;if(!P.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var M;return R===2?M=(0,e.createComponentVNode)(2,d):R===3?M=(0,e.createComponentVNode)(2,u):R===4?M=(0,e.createComponentVNode)(2,s):R===5?M=(0,e.createComponentVNode)(2,p):R===6&&(M=(0,e.createComponentVNode)(2,V)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,I),M]})})]})}return w}(),d=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.records,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],F=(0,t.useLocalState)(A,"sortId","name"),U=F[0],_=F[1],$=(0,t.useLocalState)(A,"sortOrder",!0),z=$[0],G=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function H(){return E("screen",{screen:3})}return H}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function H(J,ae){return j(ae)}return H}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,k,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,k,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,k,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,k,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,k,{id:"m_stat",children:"Mental Status"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.id+"|"+H.rank+"|"+H.p_stat+"|"+H.m_stat})).sort(function(H,J){var ae=z?1:-1;return H[U].localeCompare(J[U])*ae}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[H.p_stat],onClick:function(){function J(){return E("view_record",{view_record:H.ref})}return J}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.m_stat})]},H.id)})]})})})],4)},u=function(T,A){var x=(0,t.useBackend)(A),E=x.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function P(){return E("del_all_med_records")}return P}()})})]})})},s=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical,M=P.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return E("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return E("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",onClick:function(){function D(){return E("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(T,A){var x=(0,t.useBackend)(A),E=x.data,P=E.general;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(A,R)}return D}()})]},M)})})}),!!P.has_photos&&P.photos.map(function(R,M){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:R,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",M+1]},M)})]})},g=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical;return!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:R.fields.map(function(M,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(A,M)}return j}()})]},D)})})})})},v=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function M(){return(0,f.modalOpen)(A,"add_comment")}return M}()}),children:R.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):R.comments.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:M.header}),(0,e.createVNode)(1,"br"),M.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_comment",{del_comment:D+1})}return j}()})]},D)})})})},p=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.virus,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],F=(0,t.useLocalState)(A,"sortId2","name"),U=F[0],_=F[1],$=(0,t.useLocalState)(A,"sortOrder2",!0),z=$[0],G=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function H(J,ae){return j(ae)}return H}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,B,{id:"severity",children:"Severity"})]}),R.filter((0,a.createSearch)(D,function(H){return H.name+"|"+H.max_stages+"|"+H.severity})).sort(function(H,J){var ae=z?1:-1;return H[U].localeCompare(J[U])*ae}).map(function(H){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+H.severity,onClick:function(){function J(){return E("vir",{vir:H.D})}return J}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",H.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:H.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:h[H.severity],children:H.severity})]},H.id)})]})})})})],4)},V=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.medbots;return R.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),R.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+M.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",M.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[M.area||"Unknown"," (",M.x,", ",M.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.use_beaker?"Reservoir: "+M.total_volume+"/"+M.maximum_volume:"Using internal synthesizer"})]},M.id)})]})})})},k=function(T,A){var x=(0,t.useLocalState)(A,"sortId","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder",!0),M=R[0],D=R[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[F,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var x=(0,t.useLocalState)(A,"sortId2","name"),E=x[0],P=x[1],R=(0,t.useLocalState)(A,"sortOrder2",!0),M=R[0],D=R[1],j=T.id,F=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function U(){E===j?D(!M):(P(j),D(!0))}return U}(),children:[F,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(T,A){var x=(0,t.useBackend)(A),E=x.act,P=x.data,R=P.screen,M=P.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:R===2,onClick:function(){function D(){E("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:R===5,onClick:function(){function D(){E("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:R===6,onClick:function(){function D(){return E("screen",{screen:6})}return D}(),children:"Medibot Tracking"}),R===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:R===3,children:"Record Maintenance"}),R===4&&M&&!M.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:R===4,children:["Record: ",M.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=h.product,u=h.productImage,s=h.productCategory,C=i.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>C,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:d.name,category:s})}return g}()})})]})},N=function(h,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=m.products,s=m.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[C[d]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:s[g.path],productCategory:C[d]},g.name)})})},b=r.MerchVendor=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.user_cash,u=i.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,u,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return y}(),S=function(h,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=i[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function C(){return u(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function C(){return u(2)}return C}(),children:"Decorations"})]})}},53551:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=["title","items"];function b(i,d){if(i==null)return{};var u={},s=Object.keys(i),C,g;for(g=0;g=0)&&(u[C]=i[C]);return u}var S={Alphabetical:function(){function i(d,u){return d-u}return i}(),Availability:function(){function i(d,u){return-(d.affordable-u.affordable)}return i}(),Price:function(){function i(d,u){return d.price-u.price}return i}()},y=r.MiningVendor=function(){function i(d,u){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return i}(),h=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,p=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return C("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.has_id,p=g.id,V=g.items,k=(0,t.useLocalState)(u,"search",""),B=k[0],I=k[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],P=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(V).map(function(j,F){var U=Object.entries(j[1]).filter(R).map(function(_){return _[1].affordable=v&&p.points>=_[1].price,_[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:U},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,u){var s=(0,t.useLocalState)(u,"search",""),C=s[0],g=s[1],v=(0,t.useLocalState)(u,"sort",""),p=v[0],V=v[1],k=(0,t.useLocalState)(u,"descending",!1),B=k[0],I=k[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=d.title,p=d.items,V=b(d,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:p.map(function(k){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:k.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+d+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(C){return C.name&&(d.length>0?C.name.toLowerCase().includes(d.toLowerCase())||C.desc.toLowerCase().includes(d.toLowerCase())||C.author.toLowerCase().includes(d.toLowerCase()):!0)}).map(function(C){return(0,e.createComponentVNode)(2,o.Collapsible,{title:C.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:C.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:C.desc})]},C.name)})})})})})],4)}return b}()},61100:function(L,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NTRecruiter=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.gamestatus,m=l.cand_name,i=l.cand_birth,d=l.cand_age,u=l.cand_species,s=l.cand_planet,C=l.cand_job,g=l.cand_records,v=l.cand_curriculum,p=l.total_curriculums,V=l.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function k(){return h("start_game")}return k}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function k(){return h("instructions")}return k}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function k(){return h("back_to_menu")}return k}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss"," ",(0,e.createVNode)(1,"b",null,p,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they"," ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",v]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,m,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,C,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,g,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function k(){return h("dismiss")}return k}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function k(){return h("hire")}return k}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",v-1,"/",p]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function k(){return h("back_to_menu")}return k}()})})]})})})}return N}()},6802:function(L,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(30381),N=n(84947),b=n(22677),S=n(76519),y=["icon","iconSpin","selected","security","onClick","title","children"],h=["name"];function l(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],i={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,F=E.channels,U=E.channel_idx,_=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),z=$[0],G=$[1],H=(0,t.useLocalState)(T,"viewingPhoto",""),J=H[0],ae=H[1],ce=(0,t.useLocalState)(T,"censorMode",!1),se=ce[0],he=ce[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,C));var Ie=F.reduce(function(pe,oe){return pe+oe.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:P&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,b.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,u,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return G(!z)}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Ie>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Ie>=10?"9+":Ie})}),(0,e.createComponentVNode)(2,u,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&F[_-1]===pe,onClick:function(){function oe(){return x("channel",{uid:pe.uid})}return oe}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,b.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return he(!se)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,u,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,b.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,b.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,u,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return I}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,P=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,F=j===void 0?!1:j,U=w.onClick,_=w.title,$=w.children,z=l(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},z,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),$]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,F=E.stories,U=E.wanted,_=(0,t.useLocalState)(T,"fullStories",[]),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"censorMode",!1),H=G[0],J=G[1],ae=P===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ae?ae.icon:"newspaper",mr:"0.5rem"}),ae?ae.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ce){return!$.includes(ce.uid)&&ce.body.length+3>c?Object.assign({},ce,{body_short:ce.body.substr(0,c-4)+"..."}):ce}).map(function(ce,se){return(0,e.createComponentVNode)(2,g,{story:ce},se)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ae&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([H&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ae.admin&&!R,selected:ae.censored,icon:ae.censored?"comment-slash":"comment",content:ae.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ce(){return x("censor_channel",{uid:ae.uid})}return ce}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ce(){return(0,b.modalOpen)(T,"manage_channel",{uid:ae.uid})}return ce}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ae.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ae.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ae.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ae.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(ce,se){return ce+se.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,R=E.wanted,M=Object.entries(P).reduce(function(D,j){var F=j[0],U=j[1];return D+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,g,{story:R,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(D){return Object.assign({},i[D],{id:D,jobs:P[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"censorMode",!1),$=_[0],z=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&$&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:P.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function(G,H){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},H)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return U([].concat(F,[P.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=l(w,h),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return R(A)}return M}()},x)))},p=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!P){(0,b.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||D||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),H=G[0],J=G[1],ae=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),ce=ae[0],se=ae[1],he=(0,t.useLocalState)(T,"isPublic",R?!!(P!=null&&P.public):!1),ye=he[0],Ie=he[1],pe=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),oe=pe[0],Z=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+P.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function q(ue,me){return U(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function q(ue,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:H,onInput:function(){function q(ue,me){return J(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ce,width:"35%",mr:"0.5rem",onInput:function(){function q(ue,me){return se(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ce,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Ie(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,b.modalAnswer)(T,w.id,"",{author:F,name:$.substr(0,49),description:H.substr(0,128),icon:ce,public:ye?1:0,admin_locked:oe?1:0})}return q}()})]})},k=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,F=w.args.scanned_user,U=R.slice().sort(function(q,ue){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===ue.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===F||!!q.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),H=G[0],J=G[1],ae=(0,t.useLocalState)(T,"title",""),ce=ae[0],se=ae[1],he=(0,t.useLocalState)(T,"body",""),ye=he[0],Ie=he[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),oe=pe[0],Z=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:$,onInput:function(){function q(ue,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:H,options:U.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ue){return J(ue)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ce,onInput:function(){function q(ue,me){return se(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(ue,me){return Ie(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ce,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),ye.split("\n").map(function(q,ue){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||H.trim().length===0||ce.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,b.modalAnswer)(T,"create_story","",{author:$,channel:H,title:ce.substr(0,127),body:ye.substr(0,1023),admin_locked:oe?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),$=_[0],z=_[1],G=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),H=G[0],J=G[1],ae=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ce=ae[0],se=ae[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:F,onInput:function(){function he(ye,Ie){return U(Ie)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function he(ye,Ie){return z(Ie)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:H,maxLength:"512",rows:"4",onInput:function(){function he(ye,Ie){return J(Ie)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function he(){return x(P?"eject_photo":"attach_photo")}return he}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ce,icon:ce?"lock":"lock-open",content:ce?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function he(){return se(!ce)}return he}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function he(){x("clear_wanted_notice"),(0,b.modalClose)(T)}return he}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||$.trim().length===0||H.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function he(){(0,b.modalAnswer)(T,w.id,"",{author:F,name:$.substr(0,127),description:H.substr(0,511),admin_locked:ce?1:0})}return he}()})]})};(0,b.modalRegisterBodyOverride)("create_channel",V),(0,b.modalRegisterBodyOverride)("manage_channel",V),(0,b.modalRegisterBodyOverride)("create_story",k),(0,b.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return h("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return h("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return h("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return h("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return h("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return h("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return h("deploy")}return c}()})})})})}return N}()},45523:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),N=n(2971),b=n(84947),S=r.NumberInputModal=function(){function h(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.init_value,s=d.large_buttons,C=d.message,g=C===void 0?"":C,v=d.timeout,p=d.title,V=(0,f.useLocalState)(c,"input",u),k=V[0],B=V[1],I=function(){function A(x){x!==k&&B(x)}return A}(),w=function(){function A(x){x!==k&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,b.Window,{title:p,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:k}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:k,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:k})})]})})})]})}return h}(),y=function(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.min_value,s=d.max_value,C=d.init_value,g=d.round_value,v=l.input,p=l.onClick,V=l.onChange,k=Math.round(v!==u?Math.max(v/2,u):s/2),B=v===u&&u>0||v===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===u,icon:"angle-double-left",onClick:function(){function I(){return p(u)}return I}(),tooltip:v===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:u,maxValue:s,onChange:function(){function I(w,T){return V(T)}return I}(),onEnter:function(){function I(w,T){return i("submit",{entry:T})}return I}(),value:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function I(){return p(s)}return I}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return p(k)}return I}(),tooltip:B?"Split":"Split ("+k+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===C,icon:"redo",onClick:function(){function I(){return p(C)}return I}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},48314:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],b=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function i(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.hasOccupant,p=g.choice,V;return p?V=(0,e.createComponentVNode)(2,m):V=v?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function k(){return C("choiceOff")}return k}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function k(){return C("choiceOn")}return k}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return i}(),l=function(d,u){var s=(0,t.useBackend)(u),C=s.data,g=C.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),b.map(function(v,p){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},p)},p)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,u){var s=(0,t.useBackend)(u),C=s.act,g=s.data,v=g.verbose,p=g.health,V=g.healthAlarm,k=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function w(){return C(p?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:k,icon:k?"toggle-on":"toggle-off",content:k?"On":"Off",onClick:function(){function w(){return C(k?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return C(I?"critOff":"critOn")}return w}()})})]})}},87511:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function N(u,s){var C=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(C)return(C=C.call(u)).next.bind(C);if(Array.isArray(u)||(C=b(u))||s&&u&&typeof u.length=="number"){C&&(u=C);var g=0;return function(){return g>=u.length?{done:!0}:{done:!1,value:u[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(u,s){if(u){if(typeof u=="string")return S(u,s);var C=Object.prototype.toString.call(u).slice(8,-1);if(C==="Object"&&u.constructor&&(C=u.constructor.name),C==="Map"||C==="Set")return Array.from(u);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var C=0,g=new Array(s);CC},c=function(s,C){var g=s.name,v=C.name;if(!g||!v)return 0;var p=g.match(y),V=v.match(y);if(p&&V&&g.replace(y,"")===v.replace(y,"")){var k=parseInt(p[1],10),B=parseInt(V[1],10);return k-B}return l(g,v)},m=function(s,C){var g=s.searchText,v=s.source,p=s.title,V=s.color,k=s.sorted,B=v.filter(h(g));return k&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:p+" - ("+v.length+")",children:B.map(function(I){return(0,e.createComponentVNode)(2,i,{thing:I,color:V},I.name)})})},i=function(s,C){var g=(0,t.useBackend)(C),v=g.act,p=s.color,V=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:p,onClick:function(){function k(){return v("orbit",{ref:V.ref})}return k}(),children:[V.name,V.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",V.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function u(s,C){for(var g=(0,t.useBackend)(C),v=g.act,p=g.data,V=p.alive,k=p.antagonists,B=p.highlights,I=p.response_teams,w=p.auto_observe,T=p.dead,A=p.ghosts,x=p.misc,E=p.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],M=P[1],D={},j=N(k),F;!(F=j()).done;){var U=F.value;D[U.antag]===void 0&&(D[U.antag]=[]),D[U.antag].push(U)}var _=Object.entries(D);_.sort(function(z,G){return l(z[0],G[0])});var $=function(){function z(G){for(var H=0,J=[_.map(function(se){var he=se[0],ye=se[1];return ye}),B,V,A,T,E,x];H0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:_.map(function(z){var G=z[0],H=z[1];return(0,e.createComponentVNode)(2,o.Section,{title:G+" - ("+H.length+")",level:2,children:H.filter(h(R)).sort(c).map(function(J){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:J},J.name)})},G)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:I,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:V,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return u}()},54528:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(50175);function b(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,N.createLogger)("OreRedemption"),y=function(C){return C.toLocaleString("en-US")+" pts"},h=r.OreRedemption=function(){function s(C,g){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),l=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.id,B=V.points,I=V.disk,w=Object.assign({},(b(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:k?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:k.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return p("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return p("insert_id")}return T}()})}),k&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(k.points)})}),k&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(k.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!k,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return p("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return p("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return p("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.sheets,B=Object.assign({},(b(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),k.map(function(I){return(0,e.createComponentVNode)(2,d,{ore:I},I.id)})]})))})},m=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.alloys,B=Object.assign({},(b(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),k.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},i=function(C,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},d=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=C.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function k(B,I){return p(V.value?"sheet":"alloy",{id:V.id,amount:I})}return k}()})})]})})},u=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function k(B,I){return p(V.value?"sheet":"alloy",{id:V.id,amount:I})}return k}()})})]})})}},55686:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(33115),b=function(h){var l;try{l=N("./"+h+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",h);throw m}var c=l[h];return c||(0,f.routingError)("missingExport",h)},S=r.PAI=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.app_template,u=i.app_icon,s=i.app_title,C=b(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return y}()},58717:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),N=n(75168),b=function(c){var m;try{m=N("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var i=m[c];return i||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app,C=u.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=b(s.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,h)})]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.idInserted,C=u.idLink,g=u.stationTime,v=u.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return d("Authenticate")}return p}(),content:s?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return d("Eject")}return p}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},h=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!s.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},78062:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),N=r.Pacman=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.active,i=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,p=c.is_ai,V=c.tmp_current,k=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=V/k,P=T*w,R=Math.round(g/C),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!i&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return l("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,U){return l("change_power",{change_power:U})}return j}()}),"(",(0,f.formatPower)(P),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||p||!A,onClick:function(){function j(){return l("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(C?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return b}()},65823:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.assembled,m=l.power,i=l.strength,d=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function u(){return h("scan")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function u(){return h("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||i===0,onClick:function(){function u(){return h("remove_strength")}return u}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function u(){return h("add_strength")}return u}(),ml:"4px"})]})]})})})})}return N}()},67572:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.data,i=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,N)})})}return y}(),N=function(h,l){var c=(0,a.useBackend)(l),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function i(){return m("insert_pda")}return i}()})]})})})},b=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:u})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[u][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u})]},u)})})})})]})},S=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.current_appearance,u=i.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},12456:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,C=m.prev_cat,g=m.next_cat,v=m.subcategory,p=m.prev_subcat,V=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function k(){return c("toggle_recipes")}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function k(){return c("toggle_compact")}return k}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function k(){return c("backwardCat")}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function k(){return c("forwardCat")}return k}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function k(){return c("backwardSubCat")}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function k(){return c("forwardSubCat")}return k}()})]}),s?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,b)]})]})})}return S}(),N=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},b=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:s.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function i(){return c("minus")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function i(){return c("add")}return i}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function i(){return c("removedocument")}return i}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function i(){return c("removefolder")}return i}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,b)]})})})}return S}(),N=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},b=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:i.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:i.uid})}return d}()})]})},i.name)})})}},82020:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(72026),N=n(90955),b=n(37843);function S(m,i){var d=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(d)return(d=d.call(m)).next.bind(d);if(Array.isArray(m)||(d=y(m))||i&&m&&typeof m.length=="number"){d&&(m=d);var u=0;return function(){return u>=m.length?{done:!0}:{done:!1,value:m[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,i){if(m){if(typeof m=="string")return h(m,i);var d=Object.prototype.toString.call(m).slice(8,-1);if(d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set")return Array.from(m);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return h(m,i)}}function h(m,i){(i==null||i>m.length)&&(i=m.length);for(var d=0,u=new Array(i);dm?this.substring(0,m)+"...":this};var l=function(i,d){d===void 0&&(d="");var u=(0,b.createSearch)(d,function(s){return s.altername});return(0,N.flow)([(0,f.filter)(function(s){return s==null?void 0:s.altername}),d&&(0,f.filter)(u),(0,f.sortBy)(function(s){return s.id})])(i)},c=r.Photocopier220=function(){function m(i,d){for(var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.copies,v=C.maxcopies,p=(0,a.useLocalState)(d,"searchText",""),V=p[0],k=p[1],B=l((0,f.sortBy)(function(M){return M.category})(C.forms||[]),V),I=[],w=S(B),T;!(T=w()).done;){var A=T.value;I.includes(A.category)||I.push(A.category)}var x=(0,a.useLocalState)(d,"number",0),E=x[0],P=x[1],R;return C.category===""?R=B:R=B.filter(function(M){return M.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return s("removedocument")}return M}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return s("removefolder")}return M}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return s("print_form")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return s("ai_pic")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function M(){return s("copy")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function M(){return s("ai_text")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:g,stepPixelSize:10,onChange:function(){function M(D,j){return s("copies",{new:j})}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function M(){return s("choose_category",{category:""})}return M}()})}),I.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:M,selected:C.category===M,onClick:function(){function D(){return s("choose_category",{category:M})}return D}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(D,j){return k(j)}return M}()}),children:R.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:M.altername.trimLongStr(37),tooltip:M.altername,selected:C.form_id===M.id,onClick:function(){function D(){return s("choose_form",{path:M.path,id:M.id})}return D}()})},M.path)})})})]})})})}return m}()},47051:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function N(h,l){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var b={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var m=l.tempKey,i=N(l,f),d=b[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,C=u.act,g=s.currentTemp,v=d.label,p=d.icon,V=m===g,k=function(){C("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:k},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),v]})))},y=r.PoolController=function(){function h(l,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,u=i.currentTemp,s=b[u]||b.normal,C=s.label,g=s.color,v=[],p=0,V=Object.entries(b);p50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var u=function(C){var g,v,p=C.status;switch(p){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var V=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:V})};u.defaultHooks=f.pureComponentHooks},15164:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),N=n(51185),b=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function h(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,C=d.chemicalInfo,g=d.trackingInfo,v;if(!u.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,b.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function V(){return i("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function V(){return i("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.goal===null,content:"Edit",onClick:function(){function V(){return(0,f.modalOpen)(c,"set_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:s.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function k(){return(0,f.modalOpen)(c,"warn",{uid:V.uid})}return k}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:V.volume})}),p.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volume0?"envelope-open-text":"envelope",onClick:function(){function k(){return s("setScreen",{setScreen:6})}return k}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function k(){return s("setScreen",{setScreen:1})}return k}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function k(){return s("setScreen",{setScreen:2})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function k(){return s("setScreen",{setScreen:3})}return k}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function k(){return s("setScreen",{setScreen:9})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function k(){return s("setScreen",{setScreen:10})}return k}()})]})}),!!v&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function k(){return s("setScreen",{setScreen:8})}return k}()})})]})})},b=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.department,v=[],p;switch(i.purpose){case"ASSISTANCE":v=C.assist_dept,p="Request assistance from another department";break;case"SUPPLIES":v=C.supply_dept,p="Request supplies from another department";break;case"INFO":v=C.info_dept,p="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:p,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(V){return V!==g}).map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function k(){return s("writeInput",{write:V,priority:"1"})}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function k(){return s("writeInput",{write:V,priority:"2"})}return k}()})]},V)})})})})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g;switch(i.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function v(){return s("setScreen",{setScreen:0})}return v}()})})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g,v;switch(i.type){case"MESSAGES":g=C.message_log,v="Message Log";break;case"SHIPPING":g=C.shipping_log,v="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function p(){return s("setScreen",{setScreen:0})}return p}()}),children:g.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[p.map(function(V,k){return(0,e.createVNode)(1,"div",null,V,0,null,k)}),(0,e.createVNode)(1,"hr")]},p)})})})},h=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.recipient,v=C.message,p=C.msgVerified,V=C.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function k(){return s("setScreen",{setScreen:0})}return k}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:V})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function k(){return s("department",{department:g})}return k}()})})})],4)},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.message,v=C.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function p(){return s("setScreen",{setScreen:0})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function p(){return s("writeAnnouncement")}return p}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(v&&g),onClick:function(){function p(){return s("sendAnnouncement")}return p}()})]})})],4)},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,C=u.data,g=C.shipDest,v=C.msgVerified,p=C.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return s("setScreen",{setScreen:0})}return V}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:v})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&v),onClick:function(){function V(){return s("printLabel")}return V}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:V,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===V?"Selected":"Select",selected:g===V,onClick:function(){function k(){return s("shipSelect",{shipSelect:V})}return k}()})},V)})})})})],4)}},51939:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},b=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.data,i=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(u){return u===N.LATHE||u===N.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:N.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),i?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:i})})}):null]})})})}return y}()},50239:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data,h=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),h.map(function(l,c){var m=l.name,i=l.level,d=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N="design",b="tech",S=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_data;return p?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:p.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:p.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:p.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function V(){return v("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return v("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,l)]})]}):null},y=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_data;if(!p)return null;var V=p.name,k=p.lathe_types,B=p.materials,I=k.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:V}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},h=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===b?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_type;return p?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var k=p===b?"eject_tech":"eject_design";v(k)}return V}()}):null},c=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_data,p=g.disk_type,V=function(){if(!v)return(0,e.createComponentVNode)(2,h);switch(p){case N:return(0,e.createComponentVNode)(2,y);case b:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},m=function(u,s){var C=(0,a.useBackend)(s),g=C.data,v=C.act,p=g.disk_type,V=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.sort(function(k,B){return k.name.localeCompare(B.name)}).map(function(k){var B=k.name,I=k.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){p===b?v("copy_tech",{id:I}):v("copy_design",{id:I})}return w}()})},I)})})})})},i=r.DataDiskMenu=function(){function d(u,s){var C=(0,a.useBackend)(s),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function p(){return(0,e.createComponentVNode)(2,c)}return p}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function p(){return(0,e.createComponentVNode)(2,m)}return p}()})],4):null}return d}()},72751:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data,h=S.act,l=y.loaded_item,c=y.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){h("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){h("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.data,l=y.act,c=h.category,m=h.matching_designs,i=h.menu,d=i===4,u=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(s){var C=s.id,g=s.name,v=s.can_build,p=s.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:v<1,onClick:function(){function V(){return l(u,{id:C,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return l(u,{id:C,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return l(u,{id:C,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},C)})})]})}return N}()},47349:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data,h=S.act,l=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var i=c?"disposeallP":"disposeallI";h(i)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(m){var i=m.volume,d=m.name,u=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var C=c?"disposeP":"disposeI";h(C,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.data,l=y.act,c=h.menu,m=h.categories,i=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:i+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function u(){l("setCategory",{category:d})}return u}()})},d)})})]})}return N}()},87115:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data,h=S.act,l=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var m=c.id,i=c.amount,d=c.name,u=function(){function v(p){var V=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";h(V,{id:m,amount:p})}return v}(),s=Math.floor(i/2e3),C=i<1,g=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",i," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return u(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return u("custom")}return v}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return u(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return u(50)}return v}()})],0):null})]},m)})})})}return f}()},2345:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data,h=y.total_materials,l=y.max_materials,c=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},45805:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),N=n(51939),b=r.LatheMenu=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.data,m=c.menu,i=c.linked_lathe,d=c.linked_imprinter;return m===4&&!i?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function h(l,c){return y("search",{to_search:c})}return h}()})})}return f}()},25242:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.MainMenu=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.data,c=l.disk_type,m=l.linked_destroy,i=l.linked_lathe,d=l.linked_imprinter,u=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){var C=s.name,g=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return b}()},29933:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(N,b){var S=N.icon,y=N.children,h=N.disabled,l=N.content,c=(0,a.useBackend)(b),m=c.data,i=c.act,d=m.menu,u=m.submenu,s=d,C=u;return N.menu!==null&&N.menu!==void 0&&(s=N.menu),N.submenu!==null&&N.submenu!==void 0&&(C=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:h,onClick:function(){function g(){i("nav",{menu:s,submenu:C})}return g}(),children:y})}return f}()},59959:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function b(S){return S!==o.MENU.MAIN}return b}(),render:function(){function b(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return b}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function b(S){return S!==o.SUBMENU.MAIN}return b}(),render:function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return b}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function b(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return b}(),submenu:o.SUBMENU.MAIN,render:function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return b}()})]})}return N}()},28078:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var N=o.render,b=(0,e.useBackend)(f),S=b.data,y=S.menu,h=S.submenu,l=function(){function m(i,d){return i==null?!0:typeof i=="function"?i(d):i===d}return m}(),c=l(o.menu,y)&&l(o.submenu,h);return c?N():null}return t}()},59991:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),N=r.SettingsMenu=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.data,c=h.act,m=l.sync,i=l.admin,d=l.linked_destroy,u=l.linked_lathe,s=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return b}()},63752:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var N=n(73492);r.LatheMainMenu=N.LatheMainMenu;var b=n(2345);r.LatheMaterials=b.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var h=n(92497);r.LatheSearch=h.LatheSearch;var l=n(25242);r.MainMenu=l.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var i=n(28078);r.RndRoute=i.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),N=function(y,h){var l=y/h;return l<=.2?"good":l<=.5?"average":"bad"},b=r.RobotSelfDiagnosis=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(i.name),children:i.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:i.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:N(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(i.electronic_damage,i.max_damage),children:i.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:i.powered?"good":"bad",children:i.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:i.status?"good":"bad",children:i.status?"Yes":"No"})]})})]})},d)})})})}return S}()},48356:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.can_hack,i=c.safety,d=c.show_lock_all,u=c.cyborgs,s=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function C(){return l("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return l("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:s,can_hack:m})]})})}return b}(),N=function(S,y){var h=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(y),m=c.act,i=c.data,d="Detonate";return i.detonate_cooldown>0&&(d+=" ("+i.detonate_cooldown+"s)"),h.length?h.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createFragment)([!!u.hackable&&!u.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:u.locked_down?"unlock":"lock",color:u.locked_down?"good":"default",content:u.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function s(){return m("stopbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:u.uid})}return s}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:u.status?"bad":u.locked_down?"average":"good",children:u.status?"Not Responding":u.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:u.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.health>50?"good":"bad",value:u.health/100})}),typeof u.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.charge>30?"good":"bad",value:u.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:u.cell_capacity<3e4?"average":"good",children:u.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!u.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:u.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:u.synchronization?"default":"average",children:u.synchronization||"None"})})]})},u.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,C=i.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),N=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,C=function(v,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||p&&!s,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+v,iconRight:p,onClick:function(){function V(){return m(p?"turnleft":"turnright",{num:v})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},b=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(u,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return m("retrieve",{index:s+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},S=function(h,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},46748:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.satellites,m=l.notice,i=l.meteor_shield,d=l.meteor_shield_coverage,u=l.meteor_shield_coverage_max,s=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:u,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return h("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return N}()},46504:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),N=n(99753),b=n(31068),S=r.SecureStorage=function(){function c(m,i){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})})})})}return c}(),y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=window.event?m.which:m.keyCode;if(s===b.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===b.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===b.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=b.KEY_0&&s<=b.KEY_9){m.preventDefault(),u("keypad",{digit:s-b.KEY_0});return}if(s>=b.KEY_NUMPAD_0&&s<=b.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-b.KEY_NUMPAD_0});return}},h=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.locked,g=s.no_passcode,v=s.emagged,p=s.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],k=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return y(I,i)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+k]),height:"100%",children:v?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:I})},I)})},B[0])})})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return u("keypad",{digit:C})}return g}()})}},54529:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),N=n(22677),b=n(51185),S=n(69774),y=n(76519),h={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(p,V){(0,N.modalOpen)(p,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function v(p,V){var k=(0,t.useBackend)(V),B=k.act,I=k.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,i):T===2&&(A=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(p,V){var k=(0,t.useBackend)(V),B=k.act,I=k.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},i=function(p,V){var k=(0,t.useBackend)(V),B=k.act,I=k.data,w=I.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),P=E[0],R=E[1],M=(0,t.useLocalState)(V,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var _=D?1:-1;return F[P].localeCompare(U[P])*_}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+h[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},d=function(p,V){var k=(0,t.useLocalState)(V,"sortId","name"),B=k[0],I=k[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!T):(I(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(p,V){var k=(0,t.useBackend)(V),B=k.act,I=k.data,w=I.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(P,R){return x(R)}return E}()})})]})},s=function(p,V){var k=(0,t.useBackend)(V),B=k.act,I=k.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return l(V,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(p,V){var k=(0,t.useBackend)(V),B=k.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(V,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(p,V){var k=(0,t.useBackend)(V),B=k.act,I=k.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.stored_seeds,i=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:i,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(u,s){return l("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,N):"No Seeds"})})})})}return b}(),N=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),i.name,i.variant?" ("+i.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",i.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function u(){return l("vend",{seedid:i.id,seedvariant:i.variant})}return u}()})]})]},d)})]})}},58578:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return h("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return h("request")}return c}()})})],0))]})})})})}return N}()},11154:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function y(h,l){var c=(0,a.useLocalState)(l,"tabIndex",0),m=c[0],i=c[1],d=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,b);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return u}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function u(){return i(0)}return u}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function u(){return i(1)}return u}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function u(){return i(2)}return u}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return y}(),N=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:u.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:u.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:u.id})}return s}()})]})]})},u.name)})})},b=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.templates_tabs,u=i.existing_shuttle,s=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===u.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!u&&s[u.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.existing_shuttle,u=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.description}),u.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:u.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function s(){return m("preview",{shuttle_id:u.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:u.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],b=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function s(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.hasOccupant,B=k?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,u);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return s}(),l=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.occupant,B=V.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return p("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return p("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:k.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:k.maxHealth,value:k.health/k.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(k.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[k.stat][0],children:N[k.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:k.maxTemp,value:k.bodyTemperature/k.maxTemp,color:y[k.temperatureSuitability+3],children:[(0,a.round)(k.btCelsius,0),"\xB0C,",(0,a.round)(k.btFaren,0),"\xB0F"]})}),!!k.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:k.bloodMax,value:k.bloodLevel/k.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[k.bloodPercent,"%, ",k.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[k.pulse," BPM"]})],4)]})})},m=function(C,g){var v=(0,t.useBackend)(g),p=v.data,V=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:b.map(function(k,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:k[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[k[1]]/100,ranges:S,children:(0,a.round)(V[k[1]],0)},B)},B)})})})},i=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.hasOccupant,B=V.isBeakerLoaded,I=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!k,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return p("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return p("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,g){var v=(0,t.useBackend)(g),p=v.act,V=v.data,k=V.occupant,B=V.chemicals,I=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(P,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>I||k.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return p("chemical",{chemid:T.id,amount:P})}return M}()},R)})]})})},A)})})},u=function(C,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42439:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function m(){return h("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return N}()},280:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.secure,m=l.can_dry,i=l.drying,d=l.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function u(){return h("drying")}return u}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(u,s){return u.display_name.localeCompare(s.display_name)}).map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",u.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function s(){return h("vend",{index:u.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:u.quantity,step:1,stepPixelSize:3,onChange:function(){function s(C,g){return h("vend",{index:u.vend,amount:g})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return h("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return N}()},47606:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),N=1e3,b=r.Smes=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,C=m.inputting,g=m.inputLevel,v=m.inputLevelMax,p=m.inputAvailable,V=m.outputPowernet,k=m.outputAttempt,B=m.outputting,I=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=i>=100&&"good"||C&&"average"||"bad",x=B&&"good"||u>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s?"sync-alt":"times",selected:s,onClick:function(){function E(){return c("tryinput")}return E}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:i>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/N,fillValue:p/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("input",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:k?"power-off":"times",selected:k,onClick:function(){function E(){return c("tryoutput")}return E}(),children:k?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":u>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,R){return c("output",{target:R*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},66527:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=0,m=1,i=2,d=l.generated,u=l.generated_ratio,s=l.tracking_state,C=l.tracking_rate,g=l.connected_panels,v=l.connected_tracker,p=l.cdir,V=l.direction,k=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return h("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",k,")"," "]}),s===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function B(I,w){return h("cdir",{cdir:w})}return B}()}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:s===c,onClick:function(){function B(){return h("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return h("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===i,disabled:!v,onClick:function(){function B(){return h("track",{track:i})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return h("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},27478:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function i(){return h("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return h("spawn",{ID:m.uids})}return i}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return N}()},15565:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return h}(),N=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("hemomancer")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},b=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("umbrae")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("gargantua")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("dantalion")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},31752:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function b(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return b}(),N=r.StationAlertConsoleContent=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.data,c=l.alarms||[],m=c.Fire||[],i=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})],4)}return b}()},64323:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),N=n(84947),b=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(b||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data,s=u.future_station_traits,C=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=C[0],v=C[1],p=Object.fromEntries(u.valid_station_traits.map(function(k){return[k.name,k.path]})),V=Object.keys(p);return V.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:V,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function k(){if(g){var B=p[g],I=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}d("setup_future_traits",{station_traits:I})}}return k}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(k){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:k.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(I){if(I.path!==k.path)return I.path})})}return B}(),children:"Delete"})})]})},k.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function k(){return d("clear_future_traits")}return k}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function k(){return d("setup_future_traits",{station_traits:[]})}return k}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data;return u.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:u.current_traits.map(function(s){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:u.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||u.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return d("revert",{ref:s.ref})}return C}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},h=r.StationTraitsPanel=function(){function l(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",b.ViewStationTraits),d=i[0],u=i[1],s;switch(d){case b.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case b.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:d===b.ViewStationTraits,onClick:function(){function C(){return u(b.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===b.SetupFutureStationTraits,onClick:function(){function C(){return u(b.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return l}()},57633:function(L,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.data,i=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,S)]})})})}return y}(),N=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.helmet,u=i.suit,s=i.magboots,C=i.mask,g=i.storage,v=i.open,p=i.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function V(){return m("cook")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:p?"Unlock":"Lock",icon:p?"unlock":"lock",disabled:v,onClick:function(){function V(){return m("toggle_lock")}return V}()})],4),children:v&&!p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,b,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,b,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,b,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,b,{object:C,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,b,{object:g,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:p?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),p?"The unit is locked.":"The unit is closed."]})})})},b=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=h.object,u=h.label,s=h.missingText,C=h.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function g(){return m(C)}return g}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.open,u=i.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:u,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(L,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),N=n(2971),b=n(30381),S=n(84947),y=n(99753),h=r.SupermatterMonitor=function(){function i(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data;return g.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return i}(),l=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.supermatters,p=v===void 0?[]:v;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return C("refresh")}return V}()}),children:(0,e.createComponentVNode)(2,N.Table,{children:p.map(function(V){return(0,e.createComponentVNode)(2,N.Table.Row,{children:[(0,e.createComponentVNode)(2,N.Table.Cell,{children:V.supermatter_id+". "+V.area_name}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,N.Button,{content:"Details",onClick:function(){function k(){return C("view",{view:V.supermatter_id})}return k}()})})]},V.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),C=s.act,g=s.data,v=g.active,p=g.SM_integrity,V=g.SM_power,k=g.SM_ambienttemp,B=g.SM_ambientpressure,I=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:l(k),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(k)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,b.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,b.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return h(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return N}()},61225:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return l("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return b}()},61424:function(L,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},N={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},b={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},S=function(c,m,i,d){return d===void 0&&(d=null),c.map(function(u){var s,C=(s=u[d])!=null?s:u;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:m.includes(u),content:C,onClick:function(){function g(){m.includes(u)?i(m.filter(function(v){var p;return((p=v[d])!=null?p:v)!==u})):i([u].concat(m))}return g}()},C)})},y=r.TTSSeedsExplorer=function(){function l(){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,h)})})})}return l}(),h=r.TTSSeedsExplorerContent=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.providers,C=u.seeds,g=u.selected_seed,v=u.phrases,p=u.donator_level,V=u.character_gender,k=C.map(function(Z){return Z.category}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),B=C.map(function(Z){return Z.gender}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),I=C.map(function(Z){return Z.required_donator_level}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}).sort(function(Z,q){return Z-q}).map(function(Z){return f[Z]}),w=(0,a.useLocalState)(m,"selectedProviders",s),T=w[0],A=w[1],x=(0,a.useLocalState)(m,"selectedGenders",B.includes(N[V])?[N[V]]:B),E=x[0],P=x[1],R=(0,a.useLocalState)(m,"selectedCategories",k),M=R[0],D=R[1],j=(0,a.useLocalState)(m,"selectedDonatorLevels",I.includes(f[p])?I.slice(0,I.indexOf(f[p])+1):I),F=j[0],U=j[1],_=(0,a.useLocalState)(m,"selectedPhrase",v[0]),$=_[0],z=_[1],G=(0,a.useLocalState)(m,"searchtext",""),H=G[0],J=G[1],ae=S(s,T,A,"name"),ce=S(B,E,P),se=S(k,M,D),he=S(I,F,U),ye=(0,e.createComponentVNode)(2,t.Dropdown,{options:v,selected:$.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function Z(q){return z(q)}return Z}()}),Ie=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function Z(q,ue){return J(ue)}return Z}()}),pe=C.sort(function(Z,q){var ue=Z.name.toLowerCase(),me=q.name.toLowerCase();return ue>me?1:ue0&&g!==Z.name?"orange":"white",children:Z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:g===Z.name?.5:.25,textAlign:"left",children:Z.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:g===Z.name?"white":b[Z.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:b[Z.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Z.required_donator_level>0&&(0,e.createFragment)([f[Z.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Z.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{height:"175px",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:ae}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ce}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ye}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Ie})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===0,onClick:function(){function Z(){return D([])}return Z}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===k.length,onClick:function(){function Z(){return D(k)}return Z}()})],4),children:se})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+pe.length+"/"+C.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:oe})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:2,italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})],4)}return l}()},97552:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.records,i=m===void 0?[]:m,d=c.explosion_target,u=c.toxins_tech,s=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||s,align:"center",onClick:function(){function C(){return l("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function C(){return l("delete_logs")}return C}()})]})]})}),i.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return b}(),N=r.TachyonArrayContent=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.records,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function u(){return l("delete_record",{index:d.index})}return u}()})})]},d.index)})]})})})})}return b}()},33291:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function m(){return h("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return h("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function m(i,d){return h("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return h("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return h("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return N}()},75480:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.o_tanks,m=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function i(){return h("oxygen")}return i}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function i(){return h("plasma")}return i}()})})]})})})}return N}()},62291:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function h(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),C=s[0],g=s[1],v=function(){function p(V){switch(V){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function p(){return g(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function p(){return g(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function p(){return g(2)}return p}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return h}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},b=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.sectors_available,C=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,p=d.nttc_toggle_command_bold,V=d.nttc_job_indicator_type,k=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function I(){return i("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return i("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function I(){return i("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return i("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function I(){return i("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function I(){return i("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:k||"Unset",selected:k,icon:"globe",onClick:function(){function I(){return i("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return i("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return i("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return i("export")}return I}()})]})],4)},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.link_password,s=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"lock",onClick:function(){function C(){return i("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),s.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return i("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function s(){return i("add_filter")}return s}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return i("remove_filter",{user:s})}return C}()})})]},s)})]})})}},82905:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.linked,d=m.active,u=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:i===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),i===1?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,b)]})})}return S}(),N=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.linked_core_id,d=m.linked_core_addr,u=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"Yes":"No",icon:u?"eye-slash":"eye",selected:u,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return c("unlink")}return s}()})})]})})},b=function(y,h){var l=(0,a.useBackend)(h),c=l.act,m=l.data,i=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("link",{addr:d.addr})}return u}()})})]},d.addr)})]})})}},87692:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,i=1,d=2,u=l.calibrated,s=l.calibrating,C=l.powerstation,g=l.regime,v=l.teleporterhub,p=l.target,V=l.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function k(B){return h("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return k}()}),g===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function k(B){return h("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return k}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===i?"good":null,onClick:function(){function k(){return h("setregime",{regime:i})}return k}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function k(){return h("setregime",{regime:m})}return k}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===d?"good":null,disabled:!V,onClick:function(){function k(){return h("setregime",{regime:d})}return k}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||u&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(u||s),onClick:function(){function k(){return h("calibrate")}return k}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&C&&v&&g===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function k(){return h("load")}return k}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function k(){return h("eject")}return k}()})]})})]})})})})}return N}()},40759:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.TempGun=function(){function h(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.target_temperature,s=d.temperature,C=d.max_temp,g=d.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:C,value:u,format:function(){function v(p){return(0,a.toFixed)(p,2)}return v}(),width:"50px",onDrag:function(){function v(p,V){return i("target_temperature",{target_temperature:V})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:b(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(s),children:S(s)})})]})})})})}return h}(),b=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},y=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},32369:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),N=n(2971),b=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),h=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,C=s.max_length,g=s.message,v=g===void 0?"":g,p=s.multiline,V=s.placeholder,k=s.timeout,B=s.title,I=(0,o.useLocalState)(i,"input",V||""),w=I[0],T=I[1],A=function(){function P(R){if(R!==w){var M=p?S(R):y(R);T(M)}}return P}(),x=p||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,b.Window,{title:B,width:325,height:E,children:[k&&(0,e.createComponentVNode)(2,a.Loader,{value:k}),(0,e.createComponentVNode)(2,b.Window.Content,{onKeyDown:function(){function P(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),M===f.KEY_ESCAPE&&u("cancel")}return P}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),l=function(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,C=s.max_length,g=s.multiline,v=m.input,p=m.onType,V=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function k(){return u("cancel")}return k}(),onEnter:function(){function k(B){V&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return k}(),onInput:function(){function k(B,I){return p(I)}return k}(),placeholder:"Type something...",value:v})}},82296:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),N=r.ThermoMachine=function(){function b(S,y){var h=(0,t.useBackend)(y),l=h.act,c=h.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return l("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return l("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return l("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(i,d){return l("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return l("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return l("target",{target:c.initial})}return m}()})]})]})})]})})}return b}()},68488:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.tank_one,m=l.tank_two,i=l.attached_device,d=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function u(){return h("toggle")}return u}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function u(){return h("device")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function u(){return h("remove_device")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function u(){return h("tankone")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function u(){return h("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},26868:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),N=r.TurbineComputer=function(){function y(h,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.compressor,u=i.compressor_broken,s=i.turbine,C=i.turbine_broken,g=i.online,v=!!(d&&!u&&s&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function p(){return m("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return m("disconnect")}return p}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,b)})})})}return y}(),b=function(h,l){var c=(0,a.useBackend)(l),m=c.data,i=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,C=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!i||d?"bad":"good",children:d?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!u||s?"bad":"good",children:s?u?"Offline":"Missing":"Online"})]})},S=function(h,l){var c=(0,a.useBackend)(l),m=c.data,i=m.rpm,d=m.temperature,u=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[i," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),N=n(2971),b=n(84947),S=n(22677),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},h=r.Uplink=function(){function C(g,v){var p=(0,f.useBackend)(v),V=p.act,k=p.data,B=k.cart,I=(0,f.useLocalState)(v,"tabIndex",0),w=I[0],T=I[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,b.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,b.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function P(){return V("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:y(w)})]})})]})}return C}(),l=function(g,v){var p=(0,f.useBackend)(v),V=p.act,k=p.data,B=k.crystals,I=k.cats,w=(0,f.useLocalState)(v,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],P=x[1],R=function(_,$){$===void 0&&($="");var z=(0,o.createSearch)($,function(G){var H=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+H});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),$&&(0,a.filter)(z),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(_)},M=function(_){if(P(_),_==="")return A(I[0].items);A(R(I.map(function($){return $.items}).flat(),_))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],F=D[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function U(){return F(!j)}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return V("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return V("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(_,$){M($)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function _(){A(U.items),P("")}return _}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:U,showDecription:j},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,v){var p=(0,f.useBackend)(v),V=p.act,k=p.data,B=k.cart,I=k.crystals,w=k.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,u,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,v){var p=(0,f.useBackend)(v),V=p.act,k=p.data,B=k.cats,I=k.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:w})},T)})})})})},i=function(g,v){var p=g.i,V=g.showDecription,k=V===void 0?1:V,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,d,{i:p}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:k,buttons:I,children:k?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},d=function(g,v){var p=(0,f.useBackend)(v),V=p.act,k=p.data,B=g.i,I=k.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,N.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},u=function(g,v){var p=(0,f.useBackend)(v),V=p.act,k=p.data,B=g.i,I=k.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(g,v){var p=(0,f.useBackend)(v),V=p.act,k=p.data,B=k.exploitable,I=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],P=function(D,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(D)},R=P(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=S.product,i=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,p=c.inserted_item_name,V=!u||m.price===0,k="ERROR!",B="";V?(k="FREE",B="arrow-circle-down"):(k=m.price,B="shopping-cart");var I=!v||i===0||!V&&m.price>C&&m.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:i<=0&&"bad"||i<=m.max_amount/2&&"average"||"good",children:[i," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:k,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},N=r.Vending=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.user,i=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,C=s===void 0?[]:s,g=c.hidden_records,v=g===void 0?[]:g,p=c.stock,V=c.vend_ready,k=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((u?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!k&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,k,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[i,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:p[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return b}()},25485:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:i>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return h("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(u,s){return h("volume",{channel:m.num,volume:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return h("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return N}()},26564:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.remaining,m=l.question,i=l.choices,d=l.user_vote,u=l.counts,s=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(s?" ("+(u[C]||0)+")":""),onClick:function(){function g(){return h("vote",{target:C})}return g}(),selected:C===d})},C)})]})})})}return N}()},496:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.wires||[],m=l.status||[],i=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:i,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function u(){return h("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return h("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return h("attach",{wire:d.color})}return u}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return N}()},28919:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return h("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},14635:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(h,l){var c=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(c)return(c=c.call(h)).next.bind(c);if(Array.isArray(h)||(c=N(h))||l&&h&&typeof h.length=="number"){c&&(h=c);var m=0;return function(){return m>=h.length?{done:!0}:{done:!1,value:h[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(h,l){if(h){if(typeof h=="string")return b(h,l);var c=Object.prototype.toString.call(h).slice(8,-1);if(c==="Object"&&h.constructor&&(c=h.constructor.name),c==="Map"||c==="Set")return Array.from(h);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return b(h,l)}}function b(h,l){(l==null||l>h.length)&&(l=h.length);for(var c=0,m=new Array(l);c0&&!k.includes(j.ref)&&!p.includes(j.ref),checked:p.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return h}()},29136:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,y,h,l,c){return Sl?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function b(S,y){var h=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(h).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:f(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return b}()},83326:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(b){return b+" unit"+(b===1?"":"s")},f=r.BeakerContents=function(){function N(b){var S=b.beakerLoaded,y=b.beakerContents,h=y===void 0?[]:y,l=b.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||h.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),h.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,m)})]},c.name)})]})}return N}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.locked,c=h.noaccess,m=h.maintpanel,i=h.on,d=h.autopatrol,u=h.canhack,s=h.emagged,C=h.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function g(){return y("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("autopatrol")}return g}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return f}()},22677:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function h(l,c,m){var i=(0,a.useBackend)(l),d=i.act,u=i.data,s=Object.assign(u.modal?u.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return h}(),N=r.modalRegisterBodyOverride=function(){function h(l,c){o[l]=c}return h}(),b=r.modalAnswer=function(){function h(l,c,m,i){var d=(0,a.useBackend)(l),u=d.act,s=d.data;if(s.modal){var C=Object.assign(s.modal.args||{},i||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(C)})}}return h}(),S=r.modalClose=function(){function h(l,c){var m=(0,a.useBackend)(l),i=m.act;i("modal_close",{id:c})}return h}(),y=r.ComplexModal=function(){function h(l,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,u=d.id,s=d.text,C=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),p,V,k="auto";if(o[u])p=o[u](i.modal,c);else if(C==="input"){var B=i.modal.value;g=function(){function w(T){return b(c,u,B)}return w}(),p=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return b(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var I=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return b(c,u,T)}return w}()}),k="initial"}else C==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(i.modal.value,10),onClick:function(){function A(){return b(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return b(c,u,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return b(c,u,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:k,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,p,V]})}}return h}()},692:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),N=f.COLORS.department,b=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return b.indexOf(m)!==-1?"green":"orange"},y=function(m){if(b.indexOf(m)!==-1)return!0},h=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(i.rank),bold:y(i.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.active})]},i.name+i.rank)})]})},l=r.CrewManifest=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s;if(m.data)s=m.data;else{var C=(0,a.useBackend)(i),g=C.data;s=g}var v=s,p=v.manifest,V=p.heads,k=p.sec,B=p.eng,I=p.med,w=p.sci,T=p.ser,A=p.sup,x=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:h(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:h(k)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:h(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:h(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:h(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:h(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:h(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:h(x)})]})}return c}()},98658:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(N,b){var S=(0,t.useBackend)(b),y=S.act,h=S.data,l=h.large_buttons,c=h.swapped_buttons,m=N.input,i=N.message,d=N.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function C(){return y("submit",{entry:m})}return C}(),textAlign:"center",tooltip:l&&i,disabled:d,width:!l&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function C(){return y("cancel")}return C}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!l&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u})]})}return f}()},29723:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=N.siliconUser,c=l===void 0?h.siliconUser:l,m=N.locked,i=m===void 0?h.locked:m,d=N.normallyLocked,u=d===void 0?h.normallyLocked:d,s=N.onLockStatusChange,C=s===void 0?function(){return y("lock")}:s,g=N.accessText,v=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){function p(){C&&C(!i)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(N){var b=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(b)*100+"%"}}),2)}return f}()},51185:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.loginState;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},69774:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.loginState,c=h.isAI,m=h.isRobot,i=h.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(N){var b=N.operating,S=N.name;if(b)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function N(b,S){var y=(0,t.useBackend)(S),h=y.act,l=b.data,c=l.code,m=l.frequency,i=l.minFrequency,d=l.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:i/10,maxValue:d/10,value:m/10,format:function(){function u(s){return(0,a.toFixed)(s,1)}return u}(),width:"80px",onDrag:function(){function u(s,C){return h("freq",{freq:C})}return u}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function u(s,C){return h("code",{code:C})}return u}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function u(){return h("signal")}return u}()})]})}return N}()},79969:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),N=n(2971),b=r.SimpleRecords=function(){function h(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return h}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.recordsList,u=(0,a.useLocalState)(c,"searchText",""),s=u[0],C=u[1],g=function(V,k){k===void 0&&(k="");var B=(0,t.createSearch)(k,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),k&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(d)},v=g(d,s);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(V,k){return C(k)}return p}()}),v.map(function(p){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function V(){return i("Records",{target:p.uid})}return V}()})},p)})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.records,u=d.general,s=d.medical,C=d.security,g;switch(l.recordType){case"MED":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(N,b){var S,y=(0,a.useBackend)(b),h=y.act,l=y.data,c=l.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function i(){return h("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:h.app_data})}return f}()},56601:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.app_data,c=l.holder,m=l.dead,i=l.health,d=l.brute,u=l.oxy,s=l.tox,C=l.burn,g=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:i/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.app_data,c=l.master,m=l.dna,i=l.prime,d=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function u(){return y("getdna")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.app_data,c=l.cable,m=l.machine,i=l.inprogress,d=l.progress,u=l.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var C;return m&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),i?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),C]})}return f}()},94648:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.app_data,c=l.available_software,m=l.installed_software,i=l.installed_toggles,d=l.available_ram,u=l.emotions,s=l.current_emotion,C=l.speech_verbs,g=l.current_speech_verb,v=l.available_chassises,p=l.current_chassis,V=[];return m.map(function(k){return V[k.key]=k.name}),i.map(function(k){return V[k.key]=k.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(k){return!V[k.key]}).map(function(k){return(0,e.createComponentVNode)(2,t.Button,{content:k.name+" ("+k.cost+")",icon:k.icon,disabled:k.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:k.key})}return B}()},k.key)}),c.filter(function(k){return!V[k.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(k){return k.key!=="mainmenu"}).map(function(k){return(0,e.createComponentVNode)(2,t.Button,{content:k.name,icon:k.icon,onClick:function(){function B(){return y("startSoftware",{software_key:k.key})}return B}()},k.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{content:k.name,icon:k.icon,selected:k.active,onClick:function(){function B(){return y("setToggle",{toggle_key:k.key})}return B}()},k.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{content:k.name,selected:k.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:k.id})}return B}()},k.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{content:k.name,selected:k.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:k.name})}return B}()},k.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(k){return(0,e.createComponentVNode)(2,t.Button,{content:k.name,selected:k.icon===p,onClick:function(){function B(){return y("setChassis",{chassis_to_change:k.icon})}return B}()},k.id)})})]})})}return f}()},45549:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:h.app_data})}return f}()},53434:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:h.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:h.app_data})}return f}()},32036:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.app_data,m=c.minFrequency,i=c.maxFrequency,d=c.frequency,u=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function s(C){return(0,t.toFixed)(C,1)}return s}(),onChange:function(){function s(C,g){return h("freq",{freq:g})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return h("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return h("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return N}()},76020:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:h.app_data})}return f}()},29539:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data,l=h.janitor,c=l.user_loc,m=l.mops,i=l.buckets,d=l.cleanbots,u=l.carts,s=l.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return f}()},57725:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function N(b,S){var y=(0,t.useBackend)(S),h=y.act,l=y.data,c=l.owner,m=l.ownjob,i=l.idInserted,d=l.categories,u=l.pai,s=l.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!i,onClick:function(){function C(){return h("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var g=l.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in s?v.notify_icon:v.icon,iconSpin:v.uid in s,color:v.uid in s?"red":"transparent",content:v.name,onClick:function(){function p(){return h("StartProgram",{program:v.uid})}return p}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return h("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return h("pai",{option:2})}return C}()})]})})]})}return N}()},29978:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(N,b){var S=(0,a.useBackend)(b),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function y(h,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.active_convo;return d?(0,e.createComponentVNode)(2,N,{data:i}):(0,e.createComponentVNode)(2,b,{data:i})}return y}(),N=r.ActiveConversation=function(){function y(h,l){var c=(0,t.useBackend)(l),m=c.act,i=h.data,d=i.convo_name,u=i.convo_job,s=i.messages,C=i.active_convo,g=(0,t.useLocalState)(l,"clipboardMode",!1),v=g[0],p=g[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function k(){return p(!v)}return k}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function k(){return m("Message",{target:C})}return k}(),content:"Reply"})],4),children:(0,a.filter)(function(k){return k.target===C})(s).map(function(k,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:k.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:k.sent?"#4d9121":"#cd7a0d",position:"absolute",left:k.sent?null:"0px",right:k.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:k.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:k.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:k.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[k.sent?"You:":"Them:"," ",k.message]})]},B)})});return v&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function k(){return p(!v)}return k}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function k(){return m("Message",{target:C})}return k}(),content:"Reply"})],4),children:(0,a.filter)(function(k){return k.target===C})(s).map(function(k,B){return(0,e.createComponentVNode)(2,o.Box,{color:k.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[k.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:k.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function k(){return m("Clear",{option:"Convo"})}return k}()})})})}),V]})}return y}(),b=r.MessengerList=function(){function y(h,l){var c=(0,t.useBackend)(l),m=c.act,i=h.data,d=i.convopdas,u=i.pdas,s=i.charges,C=i.silent,g=i.toff,v=i.ringtone_list,p=i.ringtone,V=(0,t.useLocalState)(l,"searchTerm",""),k=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(v),onSelected:function(){function I(w){return m("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[s," charges left."]})})}),!d.length&&!u.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:k,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:i,pdas:d,msgAct:"Select Conversation",searchTerm:k}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:i,searchTerm:k})]})}return y}(),S=function(h,l){var c=(0,t.useBackend)(l),m=c.act,i=h.data,d=h.pdas,u=h.title,s=h.msgAct,C=h.searchTerm,g=i.charges,v=i.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:u,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u,children:d.filter(function(p){return p.Name.toLowerCase().includes(C.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function V(){return m(s,{target:p.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function k(){return m("Messenger Plugin",{plugin:V.uid,target:p.uid})}return k}()},V.uid)})})]},p.uid)})})}},54291:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function N(b,S){var y=(0,a.useBackend)(S),h=y.act,l=y.data,c=l.connected,m=l.wild_captures,i=l.no_collection,d=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function u(){return h("Disconnect")}return u}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function u(){return h("Reconnect")}return u}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function u(){return h("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return h("Next")}return u}()})]})}),children:i?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function u(){return h("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return h("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return h("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return h("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},31112:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function b(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,f)})}return b}(),f=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.mulebot,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return l("control",{bot:d.uid})}return u}()})},d.Name)})},N=function(S,y){var h=(0,a.useBackend)(y),l=h.act,c=h.data,m=c.mulebot,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,C=i.load,g=i.powr,v=i.dest,p=i.home,V=i.retn,k=i.pick,B;switch(u){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=u;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function I(){return l("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function I(){return l("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:k?"Yes":"No",selected:k,onClick:function(){function I(){return l("set_pickup_type",{autopick:k?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return l("set_auto_return",{autoret:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return l("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return l("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return l("home")}return I}()})]})]})]})}},2817:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,C=s.logged_in,g=s.owner_name,v=s.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,b)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),N=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=(0,t.useLocalState)(i,"tabIndex",1),C=s[0],g=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},b=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),u=d[0],s=(0,t.useBackend)(i),C=s.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,i){var d,u=(0,t.useBackend)(i),s=u.act,C=u.data,g=C.requests,v=C.available_accounts,p=C.money,V=(0,t.useLocalState)(i,"selectedAccount"),k=V[0],B=V[1],I=(0,t.useLocalState)(i,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],P=[];return v.map(function(R){return P[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=v.filter(function(R){return R.UID===k})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(P[M])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(M,D){return T(D)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:p0&&s.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:u>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},73786:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],N=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(h,u){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var S=r.Layout=function(){function h(u){var c=u.className,m=u.theme,i=m===void 0?"nanotrasen":m,d=u.children,l=b(u,f);return(0,e.createVNode)(1,"div","theme-"+i,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(l))),d,0,Object.assign({},(0,t.computeBoxProps)(l)))),2)}return h}(),k=function(u){var c=u.className,m=u.scrollable,i=u.children,d=b(u,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),i,0,Object.assign({},(0,t.computeBoxProps)(d))))};k.defaultHooks={onComponentDidMount:function(){function h(u){return(0,o.addScrollableNode)(u)}return h}(),onComponentWillUnmount:function(){function h(u){return(0,o.removeScrollableNode)(u)}return h}()},S.Content=k},55067:function(L,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(39241),N=n(73786),b=["theme","children","className"],S=["className","fitted","children"];/** + */function b(h,l){if(h==null)return{};var c={},m=Object.keys(h),i,d;for(d=0;d=0)&&(c[i]=h[i]);return c}var S=r.Layout=function(){function h(l){var c=l.className,m=l.theme,i=m===void 0?"nanotrasen":m,d=l.children,u=b(l,f);return(0,e.createVNode)(1,"div","theme-"+i,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(u))),d,0,Object.assign({},(0,t.computeBoxProps)(u)))),2)}return h}(),y=function(l){var c=l.className,m=l.scrollable,i=l.children,d=b(l,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),i,0,Object.assign({},(0,t.computeBoxProps)(d))))};y.defaultHooks={onComponentDidMount:function(){function h(l){return(0,o.addScrollableNode)(l)}return h}(),onComponentWillUnmount:function(){function h(l){return(0,o.removeScrollableNode)(l)}return h}()},S.Content=y},55067:function(L,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(39241),N=n(73786),b=["theme","children","className"],S=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,m){if(c==null)return{};var i={},d=Object.keys(c),l,s;for(s=0;s=0)&&(i[l]=c[l]);return i}var h=r.Pane=function(){function c(m,i){var d=m.theme,l=m.children,s=m.className,C=k(m,b),g=(0,t.useBackend)(i),v=g.suspended,p=(0,f.useDebug)(i),V=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:V&&"debug-layout",children:!v&&l})})))}return c}(),u=function(m){var i=m.className,d=m.fitted,l=m.children,s=k(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},s,{children:d&&l||(0,e.createVNode)(1,"div","Window__contentPadding",l,0)})))};h.Content=u},82118:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(28823),a=n(66586),t=n(90816),o=n(37843),f=n(91819),N=n(2971),b=n(30381),S=n(39241),k=n(20697),h=n(45360),u=n(50175),c=n(73786),m=["className","fitted","children"];function i(y,B){if(y==null)return{};var I={},w=Object.keys(y),T,A;for(A=0;A=0)&&(I[T]=y[T]);return I}function d(y,B){y.prototype=Object.create(B.prototype),y.prototype.constructor=y,l(y,B)}function l(y,B){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function I(w,T){return w.__proto__=T,w}return I}(),l(y,B)}/** + */function y(c,m){if(c==null)return{};var i={},d=Object.keys(c),u,s;for(s=0;s=0)&&(i[u]=c[u]);return i}var h=r.Pane=function(){function c(m,i){var d=m.theme,u=m.children,s=m.className,C=y(m,b),g=(0,t.useBackend)(i),v=g.suspended,p=(0,f.useDebug)(i),V=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout,Object.assign({className:(0,a.classes)(["Window",s]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:V&&"debug-layout",children:!v&&u})})))}return c}(),l=function(m){var i=m.className,d=m.fitted,u=m.children,s=y(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},s,{children:d&&u||(0,e.createVNode)(1,"div","Window__contentPadding",u,0)})))};h.Content=l},82118:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(28823),a=n(66586),t=n(90816),o=n(37843),f=n(91819),N=n(2971),b=n(30381),S=n(39241),y=n(20697),h=n(45360),l=n(50175),c=n(73786),m=["className","fitted","children"];function i(k,B){if(k==null)return{};var I={},w=Object.keys(k),T,A;for(A=0;A=0)&&(I[T]=k[T]);return I}function d(k,B){k.prototype=Object.create(B.prototype),k.prototype.constructor=k,u(k,B)}function u(k,B){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function I(w,T){return w.__proto__=T,w}return I}(),u(k,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var s=(0,u.createLogger)("Window"),C=[400,600],g=r.Window=function(y){d(B,y);function B(){return y.apply(this,arguments)||this}var I=B.prototype;return I.componentDidMount=function(){function w(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(s.log("mounting"),this.updateGeometry())}return w}(),I.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),I.updateGeometry=function(){function w(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:C},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,h.setWindowKey)(x.window.key),(0,h.recallWindowGeometry)(E)}return w}(),I.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,P=A.children,R=(0,f.useBackend)(this.context),M=R.config,D=R.suspended,j=(0,S.useDebug)(this.context),F=j.debugLayout,U=(0,t.useDispatch)(this.context),_=(T=M.window)==null?void 0:T.fancy,$=M.user&&(M.user.observer?M.status2?m-2:0),d=2;d=o){var l=[c].concat(i).map(function(s){return typeof s=="string"?s:s instanceof Error?s.stack||String(s):JSON.stringify(s)}).filter(function(s){return s}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:l})}},S=r.createLogger=function(){function h(u){return{debug:function(){function c(){for(var m=arguments.length,i=new Array(m),d=0;d2?m-2:0),d=2;d=o){var u=[c].concat(i).map(function(s){return typeof s=="string"?s:s instanceof Error?s.stack||String(s):JSON.stringify(s)}).filter(function(s){return s}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:u})}},S=r.createLogger=function(){function h(l){return{debug:function(){function c(){for(var m=arguments.length,i=new Array(m),d=0;d0;){var p=g.shift(),V=p(C);try{v=N(V)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return b("notFound",C);var y=v[C];return y||b("missingExport",C)}return u}()},79143:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(90955),a=n(90816),t=n(28823),o=n(96820),f=n(91819),N=n(39241),b=n(50175);function S(d,l){d.prototype=Object.create(l.prototype),d.prototype.constructor=d,k(d,l)}function k(d,l){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),k(d,l)}/** + */var N=n(8156),b=function(c,m){return function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},S=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},y=function(){return(0,e.createComponentVNode)(2,f.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},h=r.getRoutedComponent=function(){function l(c){var m=c.getState(),i=(0,a.selectBackend)(m),d=i.suspended,u=i.config;if(d)return S;if(u.refreshing)return y;if(0)var s;for(var C=u==null?void 0:u.interface,g=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],v;!v&&g.length>0;){var p=g.shift(),V=p(C);try{v=N(V)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return b("notFound",C);var k=v[C];return k||b("missingExport",C)}return l}()},79143:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(90955),a=n(90816),t=n(28823),o=n(96820),f=n(91819),N=n(39241),b=n(50175);function S(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,y(d,u)}function y(d,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(C,g){return C.__proto__=g,C}return s}(),y(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var h=(0,b.createLogger)("store"),u=r.configureStore=function(){function d(l){var s,C;l===void 0&&(l={});var g=l,v=g.sideEffects,p=v===void 0?!0:v,V=(0,e.flow)([(0,a.combineReducers)({debug:N.debugReducer,backend:f.backendReducer}),l.reducer]),y=p?[].concat(((s=l.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((C=l.middleware)==null?void 0:C.post)||[]):[],B=a.applyMiddleware.apply(void 0,y),I=(0,a.createStore)(V,B);return window.__store__=I,window.__augmentStack__=m(I),I}return d}(),c=function(l){return function(s){return function(C){var g=C.type,v=C.payload;return g==="update"||g==="backend/update"?h.debug("action",{type:g}):h.debug("action",C),s(C)}}},m=function(l){return function(s,C){var g,v;C?typeof C=="object"&&!C.stack&&(C.stack=s):(C=new Error(s.split("\n")[0]),C.stack=s),h.log("FatalError:",C);var p=l.getState(),V=p==null||(g=p.backend)==null?void 0:g.config,y=s;return y+="\nUser Agent: "+navigator.userAgent,y+="\nState: "+JSON.stringify({ckey:V==null||(v=V.client)==null?void 0:v.ckey,interface:V==null?void 0:V.interface,window:V==null?void 0:V.window}),y}},i=r.StoreProvider=function(d){S(l,d);function l(){return d.apply(this,arguments)||this}var s=l.prototype;return s.getChildContext=function(){function C(){var g=this.props.store;return{store:g}}return C}(),s.render=function(){function C(){return this.props.children}return C}(),l}(t.Component)},90969:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** +*/var h=(0,b.createLogger)("store"),l=r.configureStore=function(){function d(u){var s,C;u===void 0&&(u={});var g=u,v=g.sideEffects,p=v===void 0?!0:v,V=(0,e.flow)([(0,a.combineReducers)({debug:N.debugReducer,backend:f.backendReducer}),u.reducer]),k=p?[].concat(((s=u.middleware)==null?void 0:s.pre)||[],[o.assetMiddleware,f.backendMiddleware],((C=u.middleware)==null?void 0:C.post)||[]):[],B=a.applyMiddleware.apply(void 0,k),I=(0,a.createStore)(V,B);return window.__store__=I,window.__augmentStack__=m(I),I}return d}(),c=function(u){return function(s){return function(C){var g=C.type,v=C.payload;return g==="update"||g==="backend/update"?h.debug("action",{type:g}):h.debug("action",C),s(C)}}},m=function(u){return function(s,C){var g,v;C?typeof C=="object"&&!C.stack&&(C.stack=s):(C=new Error(s.split("\n")[0]),C.stack=s),h.log("FatalError:",C);var p=u.getState(),V=p==null||(g=p.backend)==null?void 0:g.config,k=s;return k+="\nUser Agent: "+navigator.userAgent,k+="\nState: "+JSON.stringify({ckey:V==null||(v=V.client)==null?void 0:v.ckey,interface:V==null?void 0:V.interface,window:V==null?void 0:V.window}),k}},i=r.StoreProvider=function(d){S(u,d);function u(){return d.apply(this,arguments)||this}var s=u.prototype;return s.getChildContext=function(){function C(){var g=this.props.store;return{store:g}}return C}(),s.render=function(){function C(){return this.props.children}return C}(),u}(t.Component)},90969:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -278,11 +278,11 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Button",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],f=["good","average","bad","black","white"],N=function(S,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[f.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:h,children:h},h)})]})]})}},16748:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(50175);/** + */var t=r.meta={title:"Button",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],f=["good","average","bad","black","white"],N=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[f.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:h,children:h},h)})]})]})}},16748:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(50175);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"ByondUi",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},N=function(S,k){var h=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),u=h[0],c=h[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setImmediate(function(){try{var i=new Function("return ("+u+")")();i&&i.then?(o.logger.log("Promise"),i.then(o.logger.log)):o.logger.log(i)}catch(d){o.logger.log(d)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(i){return c(i.target.value)}return m}(),children:u})})],4)}},76475:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** + */var f=r.meta={title:"ByondUi",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},N=function(S,y){var h=(0,a.useLocalState)(y,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),l=h[0],c=h[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function m(){return setImmediate(function(){try{var i=new Function("return ("+l+")")();i&&i.then?(o.logger.log("Promise"),i.then(o.logger.log)):o.logger.log(i)}catch(d){o.logger.log(d)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(i){return c(i.target.value)}return m}(),children:l})})],4)}},76475:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -290,31 +290,31 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var k=(0,a.useLocalState)(S,"fs_grow",1),h=k[0],u=k[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],i=c[1],d=(0,a.useLocalState)(S,"fs_fill",!0),l=d[0],s=d[1],C=(0,a.useLocalState)(S,"fs_title",!0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return i(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return u(+!h)}return p}(),children:"Flex.Item grow={"+h+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return s(!l)}return p}(),children:"Section fill={"+String(l)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function p(){return v(!g)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:l,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:l,children:"Content"})})]})})]})}},25462:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var y=(0,a.useLocalState)(S,"fs_grow",1),h=y[0],l=y[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],i=c[1],d=(0,a.useLocalState)(S,"fs_fill",!0),u=d[0],s=d[1],C=(0,a.useLocalState)(S,"fs_title",!0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return i(m==="column"?"row":"column")}return p}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(+!h)}return p}(),children:"Flex.Item grow={"+h+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return s(!u)}return p}(),children:"Section fill={"+String(u)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function p(){return v(!g)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:u,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:u,children:"Content"})})]})})]})}},25462:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var k=(0,a.useLocalState)(S,"number",0),h=k[0],u=k[1],c=(0,a.useLocalState)(S,"text","Sample text"),m=c[0],i=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function d(l,s){return i(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function d(l,s){return i(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onChange:function(){function d(l,s){return u(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(l,s){return u(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(l,s){return u(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(l,s){return u(s)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(l,s){return u(s)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:h,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(l,s){return u(s)}return d}(),children:function(){function d(l){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:l.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:l.displayValue*4}),l.inputElement]})}return d}()})})})]})})}},97028:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},85266:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Input",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var y=(0,a.useLocalState)(S,"number",0),h=y[0],l=y[1],c=(0,a.useLocalState)(S,"text","Sample text"),m=c[0],i=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onChange:function(){function d(u,s){return i(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function d(u,s){return i(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onChange:function(){function d(u,s){return l(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return l(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return l(s)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return l(s)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function d(u,s){return l(s)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:h,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(u,s){return l(s)}return d}(),children:function(){function d(u){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:u.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:u.displayValue*4}),u.inputElement]})}return d}()})})})]})})}},97028:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=r.meta={title:"Popper",render:function(){function f(){return(0,e.createComponentVNode)(2,o)}return f}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},85266:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var k=(0,a.useLocalState)(S,"progress",.5),h=k[0],u=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:h,children:["Value: ",Number(h).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return u(h-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return u(h+.1)}return c}()})]})]})}},36216:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + */var o=r.meta={title:"ProgressBar",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var y=(0,a.useLocalState)(S,"progress",.5),h=y[0],l=y[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:h,children:["Value: ",Number(h).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return l(h-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return l(h+.1)}return c}()})]})]})}},36216:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Stack",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},N=function(S,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},22338:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(96417),t=n(2971),o=n(48300);/** + */var t=r.meta={title:"Stack",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},f=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},N=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,f)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,f)]})})]})})}},22338:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(96417),t=n(2971),o=n(48300);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=r.meta={title:"Storage",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},N=function(S,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function h(){localStorage.clear(),a.storage.clear()}return h}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},88446:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var f=r.meta={title:"Storage",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},N=function(S,y){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function h(){localStorage.clear(),a.storage.clear()}return h}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},88446:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],N=function(S,k){var h=(0,a.useLocalState)(k,"tabIndex",0),u=h[0],c=h[1],m=(0,a.useLocalState)(k,"tabProps",{}),i=m[0],d=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:i.vertical,onClick:function(){function l(){return d(Object.assign({},i,{vertical:!i.vertical}))}return l}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:i.leftSlot,onClick:function(){function l(){return d(Object.assign({},i,{leftSlot:!i.leftSlot}))}return l}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:i.rightSlot,onClick:function(){function l(){return d(Object.assign({},i,{rightSlot:!i.rightSlot}))}return l}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:i.icon,onClick:function(){function l(){return d(Object.assign({},i,{icon:!i.icon}))}return l}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:i.fluid,onClick:function(){function l(){return d(Object.assign({},i,{fluid:!i.fluid}))}return l}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:i.leftAligned,onClick:function(){function l(){return d(Object.assign({},i,{leftAligned:!i.leftAligned}))}return l}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:i.vertical,fluid:i.fluid,textAlign:i.leftAligned&&"left",children:f.map(function(l,s){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===u,icon:i.icon&&"info-circle",leftSlot:i.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:i.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(s)}return C}(),children:l},s)})})})],4)}},2938:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + */var o=r.meta={title:"Tabs",render:function(){function b(){return(0,e.createComponentVNode)(2,N)}return b}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],N=function(S,y){var h=(0,a.useLocalState)(y,"tabIndex",0),l=h[0],c=h[1],m=(0,a.useLocalState)(y,"tabProps",{}),i=m[0],d=m[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:i.vertical,onClick:function(){function u(){return d(Object.assign({},i,{vertical:!i.vertical}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:i.leftSlot,onClick:function(){function u(){return d(Object.assign({},i,{leftSlot:!i.leftSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:i.rightSlot,onClick:function(){function u(){return d(Object.assign({},i,{rightSlot:!i.rightSlot}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:i.icon,onClick:function(){function u(){return d(Object.assign({},i,{icon:!i.icon}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:i.fluid,onClick:function(){function u(){return d(Object.assign({},i,{fluid:!i.fluid}))}return u}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:i.leftAligned,onClick:function(){function u(){return d(Object.assign({},i,{leftAligned:!i.leftAligned}))}return u}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:i.vertical,fluid:i.fluid,textAlign:i.leftAligned&&"left",children:f.map(function(u,s){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===l,icon:i.icon&&"info-circle",leftSlot:i.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:i.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(s)}return C}(),children:u},s)})})})],4)}},2938:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var k=(0,a.useLocalState)(S,"kitchenSinkTheme"),h=k[0],u=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:h,onInput:function(){function c(m,i){return u(i)}return c}()})})})})}},54212:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(60028),t=n(2971);/** + */var o=r.meta={title:"Themes",render:function(){function N(){return(0,e.createComponentVNode)(2,f)}return N}()},f=function(b,S){var y=(0,a.useLocalState)(S,"kitchenSinkTheme"),h=y[0],l=y[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:h,onInput:function(){function c(m,i){return l(i)}return c}()})})})})}},54212:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(60028),t=n(2971);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -322,12 +322,12 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},47468:function(){},52355:function(){},66309:function(){},74395:function(){},86879:function(){},66782:function(){},72694:function(){},35116:function(){},47968:function(){},67041:function(){},59719:function(){},14045:function(){},81912:function(){},53152:function(){},33115:function(L,r,n){var e={"./pai_atmosphere.js":98638,"./pai_bioscan.js":56601,"./pai_directives.js":48047,"./pai_doorjack.js":4646,"./pai_main_menu.js":94648,"./pai_manifest.js":45549,"./pai_medrecords.js":53434,"./pai_messenger.js":7328,"./pai_radio.js":32036,"./pai_secrecords.js":76020,"./pai_signaler.js":11562};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=33115},75168:function(L,r,n){var e={"./pda_atmos_scan.js":29539,"./pda_janitor.js":92180,"./pda_main_menu.js":57725,"./pda_manifest.js":29978,"./pda_medical.js":20567,"./pda_messenger.js":38467,"./pda_mob_hunt.js":54291,"./pda_mule.js":31112,"./pda_nanobank.js":2817,"./pda_notes.js":66621,"./pda_power.js":96490,"./pda_secbot.js":36436,"./pda_security.js":55244,"./pda_signaler.js":23470,"./pda_status_display.js":43085,"./pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=75168},8156:function(L,r,n){var e={"./AICard":89163,"./AICard.js":89163,"./AIFixer":46817,"./AIFixer.js":46817,"./APC":20420,"./APC.js":20420,"./ATM":16822,"./ATM.js":16822,"./AccountsUplinkTerminal":90698,"./AccountsUplinkTerminal.js":90698,"./AgentCard":66895,"./AgentCard.js":66895,"./AiAirlock":26354,"./AiAirlock.js":26354,"./AirAlarm":26673,"./AirAlarm.js":26673,"./AirlockAccessController":98565,"./AirlockAccessController.js":98565,"./AirlockElectronics":76385,"./AirlockElectronics.js":76385,"./AlertModal":55666,"./AlertModal.tsx":55666,"./AppearanceChanger":16504,"./AppearanceChanger.js":16504,"./AtmosAlertConsole":77280,"./AtmosAlertConsole.js":77280,"./AtmosControl":66274,"./AtmosControl.js":66274,"./AtmosFilter":90588,"./AtmosFilter.js":90588,"./AtmosMixer":87486,"./AtmosMixer.js":87486,"./AtmosPump":46714,"./AtmosPump.js":46714,"./AtmosTankControl":66032,"./AtmosTankControl.js":66032,"./Autolathe":62343,"./Autolathe.js":62343,"./BioChipPad":13940,"./BioChipPad.js":13940,"./Biogenerator":55295,"./Biogenerator.js":55295,"./BlueSpaceArtilleryControl":92247,"./BlueSpaceArtilleryControl.js":92247,"./BluespaceTap":74594,"./BluespaceTap.js":74594,"./BodyScanner":31876,"./BodyScanner.js":31876,"./BookBinder":73440,"./BookBinder.js":73440,"./BotClean":40730,"./BotClean.js":40730,"./BotFloor":36078,"./BotFloor.js":36078,"./BotHonk":89121,"./BotHonk.js":89121,"./BotMed":39805,"./BotMed.js":39805,"./BotSecurity":35519,"./BotSecurity.js":35519,"./BrigCells":71169,"./BrigCells.js":71169,"./BrigTimer":19070,"./BrigTimer.js":19070,"./CameraConsole":59681,"./CameraConsole.js":59681,"./CameraConsole220":64487,"./CameraConsole220.js":64487,"./Canister":21348,"./Canister.js":21348,"./CardComputer":13944,"./CardComputer.js":13944,"./CargoConsole":62486,"./CargoConsole.js":62486,"./ChangelogView":86885,"./ChangelogView.js":86885,"./ChemDispenser":56975,"./ChemDispenser.js":56975,"./ChemHeater":48734,"./ChemHeater.js":48734,"./ChemMaster":35918,"./ChemMaster.js":35918,"./CloningConsole":8573,"./CloningConsole.js":8573,"./CloningPod":58378,"./CloningPod.js":58378,"./ColourMatrixTester":14283,"./ColourMatrixTester.js":14283,"./CommunicationsComputer":98577,"./CommunicationsComputer.js":98577,"./CompostBin":70611,"./CompostBin.js":70611,"./Contractor":73744,"./Contractor.js":73744,"./ConveyorSwitch":57392,"./ConveyorSwitch.js":57392,"./CrewMonitor":91413,"./CrewMonitor.js":91413,"./Cryo":55104,"./Cryo.js":55104,"./CryopodConsole":1763,"./CryopodConsole.js":1763,"./DNAModifier":69055,"./DNAModifier.js":69055,"./DestinationTagger":94406,"./DestinationTagger.js":94406,"./DisposalBin":17585,"./DisposalBin.js":17585,"./DnaVault":64636,"./DnaVault.js":64636,"./DroneConsole":13015,"./DroneConsole.js":13015,"./EFTPOS":97673,"./EFTPOS.js":97673,"./ERTManager":29206,"./ERTManager.js":29206,"./EconomyManager":77877,"./EconomyManager.js":77877,"./Electropack":10707,"./Electropack.js":10707,"./EmotePanel":85307,"./EmotePanel.js":85307,"./EvolutionMenu":52640,"./EvolutionMenu.js":52640,"./ExosuitFabricator":70672,"./ExosuitFabricator.js":70672,"./ExperimentConsole":25627,"./ExperimentConsole.js":25627,"./ExternalAirlockController":14172,"./ExternalAirlockController.js":14172,"./FaxMachine":61893,"./FaxMachine.js":61893,"./FilingCabinet":80031,"./FilingCabinet.js":80031,"./FloorPainter":39552,"./FloorPainter.js":39552,"./GPS":5090,"./GPS.js":5090,"./GeneModder":1055,"./GeneModder.js":1055,"./GenericCrewManifest":14232,"./GenericCrewManifest.js":14232,"./GhostHudPanel":86268,"./GhostHudPanel.js":86268,"./GlandDispenser":8977,"./GlandDispenser.js":8977,"./GravityGen":70309,"./GravityGen.js":70309,"./GuestPass":64769,"./GuestPass.js":64769,"./HandheldChemDispenser":12219,"./HandheldChemDispenser.js":12219,"./HealthSensor":53917,"./HealthSensor.js":53917,"./Holodeck":93116,"./Holodeck.js":93116,"./Instrument":77209,"./Instrument.js":77209,"./Jukebox":28847,"./Jukebox.tsx":28847,"./KeycardAuth":64261,"./KeycardAuth.js":64261,"./KitchenMachine":34898,"./KitchenMachine.js":34898,"./LawManager":52564,"./LawManager.js":52564,"./LibraryComputer":55499,"./LibraryComputer.js":55499,"./LibraryManager":92682,"./LibraryManager.js":92682,"./ListInputModal":68e3,"./ListInputModal.tsx":68e3,"./MODsuit":75965,"./MODsuit.js":75965,"./MagnetController":86322,"./MagnetController.js":86322,"./MechBayConsole":54374,"./MechBayConsole.js":54374,"./MechaControlConsole":14823,"./MechaControlConsole.js":14823,"./MedicalRecords":16189,"./MedicalRecords.js":16189,"./MerchVendor":44482,"./MerchVendor.js":44482,"./MiningVendor":53551,"./MiningVendor.js":53551,"./ModpacksList":71545,"./ModpacksList.js":71545,"./NTRecruiter":61100,"./NTRecruiter.js":61100,"./Newscaster":6802,"./Newscaster.js":6802,"./NuclearBomb":64639,"./NuclearBomb.js":64639,"./NumberInputModal":45523,"./NumberInputModal.tsx":45523,"./OperatingComputer":48314,"./OperatingComputer.js":48314,"./Orbit":87511,"./Orbit.js":87511,"./OreRedemption":54528,"./OreRedemption.js":54528,"./PAI":55686,"./PAI.js":55686,"./PDA":58717,"./PDA.js":58717,"./Pacman":78062,"./Pacman.js":78062,"./ParticleAccelerator":65823,"./ParticleAccelerator.js":65823,"./PdaPainter":67572,"./PdaPainter.js":67572,"./PersonalCrafting":12456,"./PersonalCrafting.js":12456,"./Photocopier":72143,"./Photocopier.js":72143,"./Photocopier220":82020,"./Photocopier220.js":82020,"./PoolController":47051,"./PoolController.js":47051,"./PortablePump":5424,"./PortablePump.js":5424,"./PortableScrubber":70673,"./PortableScrubber.js":70673,"./PortableTurret":22015,"./PortableTurret.js":22015,"./PowerMonitor":75199,"./PowerMonitor.js":75199,"./PrisonerImplantManager":15164,"./PrisonerImplantManager.js":15164,"./PrisonerShuttleConsole":99646,"./PrisonerShuttleConsole.js":99646,"./RCD":82443,"./RCD.js":82443,"./RPD":61566,"./RPD.js":61566,"./Radio":24618,"./Radio.js":24618,"./ReagentGrinder":85183,"./ReagentGrinder.js":85183,"./RemoteSignaler":94890,"./RemoteSignaler.js":94890,"./RequestConsole":6301,"./RequestConsole.js":6301,"./RndConsole":51939,"./RndConsole.js":51939,"./RndConsoleComponents":63752,"./RndConsoleComponents/":63752,"./RndConsoleComponents/CurrentLevels":50239,"./RndConsoleComponents/CurrentLevels.js":50239,"./RndConsoleComponents/DataDiskMenu":24183,"./RndConsoleComponents/DataDiskMenu.js":24183,"./RndConsoleComponents/DeconstructionMenu":72751,"./RndConsoleComponents/DeconstructionMenu.js":72751,"./RndConsoleComponents/LatheCategory":51802,"./RndConsoleComponents/LatheCategory.js":51802,"./RndConsoleComponents/LatheChemicalStorage":47349,"./RndConsoleComponents/LatheChemicalStorage.js":47349,"./RndConsoleComponents/LatheMainMenu":73492,"./RndConsoleComponents/LatheMainMenu.js":73492,"./RndConsoleComponents/LatheMaterialStorage":87115,"./RndConsoleComponents/LatheMaterialStorage.js":87115,"./RndConsoleComponents/LatheMaterials":2345,"./RndConsoleComponents/LatheMaterials.js":2345,"./RndConsoleComponents/LatheMenu":45805,"./RndConsoleComponents/LatheMenu.js":45805,"./RndConsoleComponents/LatheSearch":92497,"./RndConsoleComponents/LatheSearch.js":92497,"./RndConsoleComponents/MainMenu":25242,"./RndConsoleComponents/MainMenu.js":25242,"./RndConsoleComponents/RndNavButton":29933,"./RndConsoleComponents/RndNavButton.js":29933,"./RndConsoleComponents/RndNavbar":59959,"./RndConsoleComponents/RndNavbar.js":59959,"./RndConsoleComponents/RndRoute":28078,"./RndConsoleComponents/RndRoute.js":28078,"./RndConsoleComponents/SettingsMenu":59991,"./RndConsoleComponents/SettingsMenu.js":59991,"./RndConsoleComponents/index":63752,"./RndConsoleComponents/index.js":63752,"./RobotSelfDiagnosis":73407,"./RobotSelfDiagnosis.js":73407,"./RoboticsControlConsole":48356,"./RoboticsControlConsole.js":48356,"./Safe":33122,"./Safe.js":33122,"./SatelliteControl":46748,"./SatelliteControl.js":46748,"./SecureStorage":46504,"./SecureStorage.js":46504,"./SecurityRecords":54529,"./SecurityRecords.js":54529,"./SeedExtractor":79315,"./SeedExtractor.js":79315,"./ShuttleConsole":58578,"./ShuttleConsole.js":58578,"./ShuttleManipulator":11154,"./ShuttleManipulator.js":11154,"./Sleeper":80699,"./Sleeper.js":80699,"./SlotMachine":42439,"./SlotMachine.js":42439,"./Smartfridge":280,"./Smartfridge.js":280,"./Smes":47606,"./Smes.js":47606,"./SolarControl":66527,"./SolarControl.js":66527,"./SpawnersMenu":27478,"./SpawnersMenu.js":27478,"./SpecMenu":15565,"./SpecMenu.js":15565,"./StationAlertConsole":31752,"./StationAlertConsole.js":31752,"./StationTraitsPanel":64323,"./StationTraitsPanel.tsx":64323,"./SuitStorage":57633,"./SuitStorage.js":57633,"./SupermatterMonitor":72217,"./SupermatterMonitor.js":72217,"./SyndicateComputerSimple":55055,"./SyndicateComputerSimple.js":55055,"./TEG":61225,"./TEG.js":61225,"./TTSSeedsExplorer":61424,"./TTSSeedsExplorer.tsx":61424,"./TachyonArray":97552,"./TachyonArray.js":97552,"./Tank":33291,"./Tank.js":33291,"./TankDispenser":75480,"./TankDispenser.js":75480,"./TcommsCore":62291,"./TcommsCore.js":62291,"./TcommsRelay":82905,"./TcommsRelay.js":82905,"./Teleporter":87692,"./Teleporter.js":87692,"./TempGun":40759,"./TempGun.js":40759,"./TextInputModal":32369,"./TextInputModal.tsx":32369,"./ThermoMachine":82296,"./ThermoMachine.js":82296,"./TransferValve":68488,"./TransferValve.js":68488,"./TurbineComputer":26868,"./TurbineComputer.js":26868,"./Uplink":30778,"./Uplink.js":30778,"./Vending":7307,"./Vending.js":7307,"./VolumeMixer":25485,"./VolumeMixer.js":25485,"./VotePanel":26564,"./VotePanel.js":26564,"./Wires":496,"./Wires.js":496,"./WizardApprenticeContract":28919,"./WizardApprenticeContract.js":28919,"./common/AccessList":14635,"./common/AccessList.js":14635,"./common/AtmosScan":29136,"./common/AtmosScan.js":29136,"./common/BeakerContents":83326,"./common/BeakerContents.js":83326,"./common/BotStatus":86041,"./common/BotStatus.js":86041,"./common/ComplexModal":22677,"./common/ComplexModal.js":22677,"./common/CrewManifest":692,"./common/CrewManifest.js":692,"./common/InputButtons":98658,"./common/InputButtons.tsx":98658,"./common/InterfaceLockNoticeBox":29723,"./common/InterfaceLockNoticeBox.js":29723,"./common/Loader":2146,"./common/Loader.tsx":2146,"./common/LoginInfo":51185,"./common/LoginInfo.js":51185,"./common/LoginScreen":69774,"./common/LoginScreen.js":69774,"./common/Operating":48154,"./common/Operating.js":48154,"./common/Signaler":92149,"./common/Signaler.js":92149,"./common/SimpleRecords":79969,"./common/SimpleRecords.js":79969,"./common/TemporaryNotice":76519,"./common/TemporaryNotice.js":76519,"./pai/pai_atmosphere":98638,"./pai/pai_atmosphere.js":98638,"./pai/pai_bioscan":56601,"./pai/pai_bioscan.js":56601,"./pai/pai_directives":48047,"./pai/pai_directives.js":48047,"./pai/pai_doorjack":4646,"./pai/pai_doorjack.js":4646,"./pai/pai_main_menu":94648,"./pai/pai_main_menu.js":94648,"./pai/pai_manifest":45549,"./pai/pai_manifest.js":45549,"./pai/pai_medrecords":53434,"./pai/pai_medrecords.js":53434,"./pai/pai_messenger":7328,"./pai/pai_messenger.js":7328,"./pai/pai_radio":32036,"./pai/pai_radio.js":32036,"./pai/pai_secrecords":76020,"./pai/pai_secrecords.js":76020,"./pai/pai_signaler":11562,"./pai/pai_signaler.js":11562,"./pda/pda_atmos_scan":29539,"./pda/pda_atmos_scan.js":29539,"./pda/pda_janitor":92180,"./pda/pda_janitor.js":92180,"./pda/pda_main_menu":57725,"./pda/pda_main_menu.js":57725,"./pda/pda_manifest":29978,"./pda/pda_manifest.js":29978,"./pda/pda_medical":20567,"./pda/pda_medical.js":20567,"./pda/pda_messenger":38467,"./pda/pda_messenger.js":38467,"./pda/pda_mob_hunt":54291,"./pda/pda_mob_hunt.js":54291,"./pda/pda_mule":31112,"./pda/pda_mule.js":31112,"./pda/pda_nanobank":2817,"./pda/pda_nanobank.js":2817,"./pda/pda_notes":66621,"./pda/pda_notes.js":66621,"./pda/pda_power":96490,"./pda/pda_power.js":96490,"./pda/pda_secbot":36436,"./pda/pda_secbot.js":36436,"./pda/pda_security":55244,"./pda/pda_security.js":55244,"./pda/pda_signaler":23470,"./pda/pda_signaler.js":23470,"./pda/pda_status_display":43085,"./pda/pda_status_display.js":43085,"./pda/pda_supplyrecords":26948,"./pda/pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=8156},69321:function(L,r,n){var e={"./Blink.stories.js":90969,"./BlockQuote.stories.js":22030,"./Box.stories.js":35286,"./Button.stories.js":38465,"./ByondUi.stories.js":16748,"./Collapsible.stories.js":76475,"./Flex.stories.js":28994,"./Input.stories.js":25462,"./Popper.stories.js":97028,"./ProgressBar.stories.js":85266,"./Stack.stories.js":36216,"./Storage.stories.js":22338,"./Tabs.stories.js":88446,"./Themes.stories.js":2938,"./Tooltip.stories.js":54212};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=69321},79474:function(L,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(L,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(L,r,n){"use strict";var e=n(62600),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(L,r,n){"use strict";var e=n(95558),a=n(15439),t=n(8165).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),L.exports=function(N){f[o][N]=!0}},47158:function(L,r,n){"use strict";var e=n(13300).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(L,r,n){"use strict";var e=n(54341),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(L,r,n){"use strict";var e=n(66379),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(L,r,n){"use strict";var e=n(13586);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(L,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),N=n(3302),b=n(48615),S=n(36787),k=n(21650),h=n(60855),u=n(57301),c=n(54341),m=n(56379),i=n(91420),d=n(95558),l=n(76246),s=n(4471),C=s.enforce,g=s.get,v=t.Int8Array,p=v&&v.prototype,V=t.Uint8ClampedArray,y=V&&V.prototype,B=v&&m(v),I=p&&m(p),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=l("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!i&&b(t.opera)!=="Opera",R=!1,M,D,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},_=function(){function ce(se){if(!f(se))return!1;var he=b(se);return he==="DataView"||N(F,he)||N(U,he)}return ce}(),$=function ce(se){var he=m(se);if(f(he)){var ye=g(he);return ye&&N(ye,E)?ye[E]:ce(he)}},z=function(se){if(!f(se))return!1;var he=b(se);return N(F,he)||N(U,he)},G=function(se){if(z(se))return se;throw new T("Target is not a typed array")},H=function(se){if(o(se)&&(!i||c(B,se)))return se;throw new T(S(se)+" is not a typed array constructor")},J=function(se,he,ye,Ie){if(a){if(ye)for(var pe in F){var oe=t[pe];if(oe&&N(oe.prototype,se))try{delete oe.prototype[se]}catch(Z){try{oe.prototype[se]=he}catch(q){}}}(!I[se]||ye)&&h(I,se,ye?he:P&&p[se]||he,Ie)}},ae=function(se,he,ye){var Ie,pe;if(a){if(i){if(ye){for(Ie in F)if(pe=t[Ie],pe&&N(pe,se))try{delete pe[se]}catch(oe){}}if(!B[se]||ye)try{return h(B,se,ye?he:P&&B[se]||he)}catch(oe){}else return}for(Ie in F)pe=t[Ie],pe&&(!pe[se]||ye)&&h(pe,se,he)}};for(M in F)D=t[M],j=D&&D.prototype,j?C(j)[E]=D:P=!1;for(M in U)D=t[M],j=D&&D.prototype,j&&(C(j)[E]=D);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ce(){throw new T("Incorrect invocation")}return ce}(),P))for(M in F)t[M]&&i(t[M],B);if((!P||!I||I===w)&&(I=B.prototype,P))for(M in F)t[M]&&i(t[M].prototype,I);if(P&&m(y)!==I&&i(y,I),a&&!N(I,A)){R=!0,u(I,A,{configurable:!0,get:function(){function ce(){return f(this)?this[x]:void 0}return ce}()});for(M in F)t[M]&&k(t[M],x,M)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&x,aTypedArray:G,aTypedArrayConstructor:H,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:$,isView:_,isTypedArray:z,TypedArray:B,TypedArrayPrototype:I}},31284:function(L,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),N=n(21650),b=n(57301),S=n(26148),k=n(13586),h=n(14434),u=n(84501),c=n(74369),m=n(28968),i=n(48705),d=n(48350),l=n(56379),s=n(91420),C=n(39948),g=n(31170),v=n(43405),p=n(83826),V=n(15676),y=n(4471),B=f.PROPER,I=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=y.getterFor(w),R=y.getterFor(T),M=y.set,D=e[w],j=D,F=j&&j[A],U=e[T],_=U&&U[A],$=Object.prototype,z=e.Array,G=e.RangeError,H=a(C),J=a([].reverse),ae=d.pack,ce=d.unpack,se=function(ge){return[ge&255]},he=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Ie=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return ae(i(ge),23,4)},oe=function(ge){return ae(ge,52,8)},Z=function(ge,ke,ve){b(ge[A],ke,{configurable:!0,get:function(){function Se(){return ve(this)[ke]}return Se}()})},q=function(ge,ke,ve,Se){var we=R(ge),xe=m(ve),Oe=!!Se;if(xe+ke>we.byteLength)throw new G(E);var We=we.bytes,Ve=xe+we.byteOffset,re=g(We,Ve,Ve+ke);return Oe?re:J(re)},ue=function(ge,ke,ve,Se,we,xe){var Oe=R(ge),We=m(ve),Ve=Se(+we),re=!!xe;if(We+ke>Oe.byteLength)throw new G(E);for(var le=Oe.bytes,Ce=We+Oe.byteOffset,de=0;dewe)throw new G("Wrong offset");if(ve=ve===void 0?we-xe:c(ve),xe+ve>we)throw new G(x);M(this,{type:T,buffer:ge,byteLength:ve,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=ve,this.byteOffset=xe)}return fe}(),_=U[A],t&&(Z(j,"byteLength",P),Z(U,"buffer",R),Z(U,"byteLength",R),Z(U,"byteOffset",R)),S(_,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return ce(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return ce(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setUint8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setInt16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){ue(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){ue(this,8,ge,oe,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&D.name!==w;!k(function(){D(1)})||!k(function(){new D(-1)})||k(function(){return new D,new D(1.5),new D(NaN),D.length!==1||me&&!I})?(j=function(){function fe(ge){return h(this,F),v(new D(m(ge)),this,j)}return fe}(),j[A]=F,F.constructor=j,p(j,D)):me&&I&&N(D,"name",w),s&&l(_)!==$&&s(_,$);var ne=new U(new j(2)),be=a(_.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),(ne.getInt8(0)||!ne.getInt8(1))&&S(_,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}V(j,w),V(U,T),L.exports={ArrayBuffer:j,DataView:U}},28332:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;L.exports=[].copyWithin||function(){function N(b,S){var k=e(this),h=t(k),u=a(b,h),c=a(S,h),m=arguments.length>2?arguments[2]:void 0,i=f((m===void 0?h:a(m,h))-c,h-u),d=1;for(c0;)c in k?k[u]=k[c]:o(k,u),u+=d,c+=d;return k}return N}()},39948:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);L.exports=function(){function o(f){for(var N=e(this),b=t(N),S=arguments.length,k=a(S>1?arguments[1]:void 0,b),h=S>2?arguments[2]:void 0,u=h===void 0?b:a(h,b);u>k;)N[k++]=f;return N}return o}()},16856:function(L,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");L.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(L,r,n){"use strict";var e=n(83207);L.exports=function(a,t,o){for(var f=0,N=arguments.length>2?o:e(t),b=new a(N);N>f;)b[f]=t[f++];return b}},45056:function(L,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),N=n(49632),b=n(83207),S=n(80750),k=n(45731),h=n(52984),u=Array;L.exports=function(){function c(m){var i=t(m),d=N(this),l=arguments.length,s=l>1?arguments[1]:void 0,C=s!==void 0;C&&(s=e(s,l>2?arguments[2]:void 0));var g=h(i),v=0,p,V,y,B,I,w;if(g&&!(this===u&&f(g)))for(B=k(i,g),I=B.next,V=d?new this:[];!(y=a(I,B)).done;v++)w=C?o(B,s,[y.value,v],!0):y.value,S(V,v,w);else for(p=b(i),V=d?new this(p):u(p);p>v;v++)w=C?s(i[v],v):i[v],S(V,v,w);return V.length=v,V}return c}()},33483:function(L,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(N){return function(b,S,k){var h=e(b),u=t(h),c=a(k,u),m;if(N&&S!==S){for(;u>c;)if(m=h[c++],m!==m)return!0}else for(;u>c;c++)if((N||c in h)&&h[c]===S)return N||c||0;return!N&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},18539:function(L,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),N=n(51582),b=a([].push),S=function(h){var u=h===1,c=h===2,m=h===3,i=h===4,d=h===6,l=h===7,s=h===5||d;return function(C,g,v,p){for(var V=o(C),y=t(V),B=f(y),I=e(g,v),w=0,T=p||N,A=u?T(C,B):c||l?T(C,0):void 0,x,E;B>w;w++)if((s||w in y)&&(x=y[w],E=I(x,w,V),h))if(u)A[w]=E;else if(E)switch(h){case 3:return!0;case 5:return x;case 6:return w;case 2:b(A,x)}else switch(h){case 4:return!1;case 7:b(A,x)}return d?-1:m||i?i:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16400:function(L,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),N=Math.min,b=[].lastIndexOf,S=!!b&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),h=S||!k;L.exports=h?function(){function u(c){if(S)return e(b,this,arguments)||0;var m=a(this),i=o(m),d=i-1;for(arguments.length>1&&(d=N(d,t(arguments[1]))),d<0&&(d=i+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return u}():b},34924:function(L,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");L.exports=function(f){return t>=51||!e(function(){var N=[],b=N.constructor={};return b[o]=function(){return{foo:1}},N[f](Boolean).foo!==1})}},56127:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(L,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),f=TypeError,N=function(S){return function(k,h,u,c){var m=a(k),i=t(m),d=o(m);e(h);var l=S?d-1:0,s=S?-1:1;if(u<2)for(;;){if(l in i){c=i[l],l+=s;break}if(l+=s,S?l<0:d<=l)throw new f("Reduce of empty array with no initial value")}for(;S?l>=0:d>l;l+=s)l in i&&(c=h(c,i[l],l,m));return c}};L.exports={left:N(!1),right:N(!0)}},10779:function(L,r,n){"use strict";var e=n(16361),a=n(59882),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();L.exports=f?function(N,b){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=b}:function(N,b){return N.length=b}},31170:function(L,r,n){"use strict";var e=n(72908);L.exports=e([].slice)},91183:function(L,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,N){var b=f.length;if(b<8)for(var S=1,k,h;S0;)f[h]=f[--h];h!==S++&&(f[h]=k)}else for(var u=a(b/2),c=o(e(f,0,u),N),m=o(e(f,u),N),i=c.length,d=m.length,l=0,s=0;l1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(V,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),u&&a(V,"size",{configurable:!0,get:function(){function w(){return y(this).size}return w}()}),p}return l}(),setStrong:function(){function l(s,C,g){var v=C+" Iterator",p=d(C),V=d(v);S(s,C,function(y,B){i(this,{type:v,target:y,state:p(y),kind:B,last:void 0})},function(){for(var y=V(this),B=y.kind,I=y.last;I&&I.removed;)I=I.previous;return!y.target||!(y.last=I=I?I.next:y.state.first)?(y.target=void 0,k(void 0,!0)):k(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),h(C)}return l}()}},19250:function(L,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),N=n(62695),b=n(66379),S=n(20453),k=n(18539),h=n(3302),u=n(4471),c=u.set,m=u.getterFor,i=k.find,d=k.findIndex,l=e([].splice),s=0,C=function(V){return V.frozen||(V.frozen=new g)},g=function(){this.entries=[]},v=function(V,y){return i(V.entries,function(B){return B[0]===y})};g.prototype={get:function(){function p(V){var y=v(this,V);if(y)return y[1]}return p}(),has:function(){function p(V){return!!v(this,V)}return p}(),set:function(){function p(V,y){var B=v(this,V);B?B[1]=y:this.entries.push([V,y])}return p}(),delete:function(){function p(V){var y=d(this.entries,function(B){return B[0]===V});return~y&&l(this.entries,y,1),!!~y}return p}()},L.exports={getConstructor:function(){function p(V,y,B,I){var w=V(function(E,P){o(E,T),c(E,{type:y,id:s++,frozen:void 0}),N(P)||S(P,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(y),x=function(){function E(P,R,M){var D=A(P),j=t(f(R),!0);return j===!0?C(D).set(R,M):j[D.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var R=A(this);if(!b(P))return!1;var M=t(P);return M===!0?C(R).delete(P):M&&h(M,R.id)&&delete M[R.id]}return E}(),has:function(){function E(P){var R=A(this);if(!b(P))return!1;var M=t(P);return M===!0?C(R).has(P):M&&h(M,R.id)}return E}()}),a(T,B?{get:function(){function E(P){var R=A(this);if(b(P)){var M=t(P);return M===!0?C(R).get(P):M?M[R.id]:void 0}}return E}(),set:function(){function E(P,R){return x(this,P,R)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),w}return p}()}},10609:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),N=n(66526),b=n(20453),S=n(14434),k=n(53664),h=n(62695),u=n(66379),c=n(13586),m=n(1608),i=n(15676),d=n(43405);L.exports=function(l,s,C){var g=l.indexOf("Map")!==-1,v=l.indexOf("Weak")!==-1,p=g?"set":"add",V=a[l],y=V&&V.prototype,B=V,I={},w=function(D){var j=t(y[D]);f(y,D,D==="add"?function(){function F(U){return j(this,U===0?0:U),this}return F}():D==="delete"?function(F){return v&&!u(F)?!1:j(this,F===0?0:F)}:D==="get"?function(){function F(U){return v&&!u(U)?void 0:j(this,U===0?0:U)}return F}():D==="has"?function(){function F(U){return v&&!u(U)?!1:j(this,U===0?0:U)}return F}():function(){function F(U,_){return j(this,U===0?0:U,_),this}return F}())},T=o(l,!k(V)||!(v||y.forEach&&!c(function(){new V().entries().next()})));if(T)B=C.getConstructor(s,l,g,p),N.enable();else if(o(l,!0)){var A=new B,x=A[p](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new V(M)}),R=!v&&c(function(){for(var M=new V,D=5;D--;)M[p](D,D);return!M.has(-0)});P||(B=s(function(M,D){S(M,y);var j=d(new V,M,B);return h(D)||b(D,j[p],{that:j,AS_ENTRIES:g}),j}),B.prototype=y,y.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(p),v&&y.clear&&delete y.clear}return I[l]=B,e({global:!0,constructor:!0,forced:B!==V},I),i(B,l),v||C.setStrong(B,l,g),B}},83826:function(L,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);L.exports=function(f,N,b){for(var S=a(N),k=o.f,h=t.f,u=0;u"+h+""}},32214:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},21650:function(L,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);L.exports=e?function(o,f,N){return a.f(o,f,t(1,N))}:function(o,f,N){return o[f]=N,o}},73970:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(L,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);L.exports=function(o,f,N){var b=e(f);b in o?a.f(o,b,t(0,N)):o[b]=N}},20228:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,N=Math.abs,b=Date.prototype,S=b.toISOString,k=e(b.getTime),h=e(b.getUTCDate),u=e(b.getUTCFullYear),c=e(b.getUTCHours),m=e(b.getUTCMilliseconds),i=e(b.getUTCMinutes),d=e(b.getUTCMonth),l=e(b.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function s(){if(!f(k(this)))throw new o("Invalid time value");var C=this,g=u(C),v=m(C),p=g<0?"-":g>9999?"+":"";return p+t(N(g),p?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(h(C),2,0)+"T"+t(c(C),2,0)+":"+t(i(C),2,0)+":"+t(l(C),2,0)+"."+t(v,3,0)+"Z"}return s}():S},81603:function(L,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},57301:function(L,r,n){"use strict";var e=n(40773),a=n(8165);L.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},60855:function(L,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);L.exports=function(f,N,b,S){S||(S={});var k=S.enumerable,h=S.name!==void 0?S.name:N;if(e(b)&&t(b,h,S),S.global)k?f[N]=b:o(N,b);else{try{S.unsafe?f[N]&&(k=!0):delete f[N]}catch(u){}k?f[N]=b:a.f(f,N,{value:b,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(L,r,n){"use strict";var e=n(60855);L.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(L,r,n){"use strict";var e=n(26856),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(L,r,n){"use strict";var e=n(36787),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(L,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(f){return o?t.createElement(f):{}}},54579:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(L,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},52460:function(L,r,n){"use strict";var e=n(53437),a=n(86727);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(L,r,n){"use strict";var e=n(74247);L.exports=/MSIE|Trident/.test(e)},79034:function(L,r,n){"use strict";var e=n(74247);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(L,r,n){"use strict";var e=n(74247);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(L,r,n){"use strict";var e=n(26856),a=n(8649);L.exports=a(e.process)==="process"},71979:function(L,r,n){"use strict";var e=n(74247);L.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(L,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,N=f&&f.v8,b,S;N&&(b=N.split("."),S=b[0]>0&&b[0]<4?1:+(b[0]+b[1])),!S&&a&&(b=a.match(/Edge\/(\d+)/),(!b||b[1]>=74)&&(b=a.match(/Chrome\/(\d+)/),b&&(S=+b[1]))),L.exports=S},27204:function(L,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},38139:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(L,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),N=n(83826),b=n(23620);L.exports=function(S,k){var h=S.target,u=S.global,c=S.stat,m,i,d,l,s,C;if(u?i=e:c?i=e[h]||f(h,{}):i=(e[h]||{}).prototype,i)for(d in k){if(s=k[d],S.dontCallGetSet?(C=a(i,d),l=C&&C.value):l=i[d],m=b(u?d:h+(c?".":"#")+d,S.forced),!m&&l!==void 0){if(typeof s==typeof l)continue;N(s,l)}(S.sham||l&&l.sham)&&t(s,"sham",!0),o(i,d,s,S)}}},13586:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(L,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),f=n(95558),N=n(21650),b=f("species"),S=RegExp.prototype;L.exports=function(k,h,u,c){var m=f(k),i=!o(function(){var C={};return C[m]=function(){return 7},""[k](C)!==7}),d=i&&!o(function(){var C=!1,g=/a/;return k==="split"&&(g={},g.constructor={},g.constructor[b]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return C=!0,null},g[m](""),!C});if(!i||!d||u){var l=e(/./[m]),s=h(m,""[k],function(C,g,v,p,V){var y=e(C),B=g.exec;return B===t||B===S.exec?i&&!V?{done:!0,value:l(g,v,p)}:{done:!0,value:y(v,g,p)}:{done:!1}});a(String.prototype,k,s[0]),a(S,m,s[1])}c&&N(S[m],"sham",!0)}},73132:function(L,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function N(b,S,k,h,u,c,m,i){for(var d=u,l=0,s=m?o(m,i):!1,C,g;l0&&e(C)?(g=a(C),d=N(b,S,C,g,d,c-1)-1):(t(d+1),b[d]=C),d++),l++;return d};L.exports=f},58199:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(L,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(L,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);L.exports=function(f,N){return a(f),N===void 0?f:t?o(f,N):function(){return f.apply(N,arguments)}}},86678:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(L,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),N=n(86678),b=Function,S=e([].concat),k=e([].join),h={},u=function(m,i,d){if(!o(h,i)){for(var l=[],s=0;s]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(k,h,u,c,m,i){var d=u+k.length,l=c.length,s=S;return m!==void 0&&(m=a(m),s=b),f(i,s,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return k;case"`":return N(h,0,u);case"'":return N(h,d);case"<":v=m[N(g,1,-1)];break;default:var p=+g;if(p===0)return C;if(p>l){var V=t(p/10);return V===0?C:V<=l?c[V-1]===void 0?o(g,1):c[V-1]+o(g,1):C}v=c[p-1]}return v===void 0?"":v})}},26856:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},3302:function(L,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(f,N){return t(a(f),N)}return o}()},51653:function(L){"use strict";L.exports={}},66481:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(L,r,n){"use strict";var e=n(22070);L.exports=e("document","documentElement")},16109:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,k,h){var u=r(h),c=h*8-k-1,m=(1<>1,d=k===23?e(2,-24)-e(2,-77):0,l=S<0||S===0&&1/S<0?1:0,s=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=m):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+i>=1?S+=d/v:S+=d*e(2,1-i),S*v>=2&&(C++,v/=2),C+i>=m?(g=0,C=m):C+i>=1?(g=(S*v-1)*e(2,k),C+=i):(g=S*e(2,i-1)*e(2,k),C=0));k>=8;)u[s++]=g&255,g/=256,k-=8;for(C=C<0;)u[s++]=C&255,C/=256,c-=8;return u[--s]|=l*128,u},N=function(S,k){var h=S.length,u=h*8-k-1,c=(1<>1,i=u-7,d=h-1,l=S[d--],s=l&127,C;for(l>>=7;i>0;)s=s*256+S[d--],i-=8;for(C=s&(1<<-i)-1,s>>=-i,i+=k;i>0;)C=C*256+S[d--],i-=8;if(s===0)s=1-m;else{if(s===c)return C?NaN:l?-1/0:1/0;C+=e(2,k),s-=m}return(l?-1:1)*C*e(2,s-k)};L.exports={pack:f,unpack:N}},80689:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?f(N,""):o(N)}:o},43405:function(L,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);L.exports=function(o,f,N){var b,S;return t&&e(b=f.constructor)&&b!==N&&a(S=b.prototype)&&S!==N.prototype&&t(o,S),o}},92004:function(L,r,n){"use strict";var e=n(72908),a=n(53664),t=n(70192),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),L.exports=t.inspectSource},66526:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),N=n(8165).f,b=n(60097),S=n(31024),k=n(58221),h=n(76246),u=n(58199),c=!1,m=h("meta"),i=0,d=function(V){N(V,m,{value:{objectID:"O"+i++,weakData:{}}})},l=function(V,y){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!f(V,m)){if(!k(V))return"F";if(!y)return"E";d(V)}return V[m].objectID},s=function(V,y){if(!f(V,m)){if(!k(V))return!0;if(!y)return!1;d(V)}return V[m].weakData},C=function(V){return u&&c&&k(V)&&!f(V,m)&&d(V),V},g=function(){v.enable=function(){},c=!0;var V=b.f,y=a([].splice),B={};B[m]=1,V(B).length&&(b.f=function(I){for(var w=V(I),T=0,A=w.length;TI;I++)if(T=P(i[I]),T&&b(m,T))return T;return new c(!1)}y=S(i,B)}for(A=g?i.next:y.next;!(x=a(A,y)).done;){try{T=P(x.value)}catch(R){h(y,"throw",R)}if(typeof T=="object"&&T&&b(m,T))return T}return new c(!1)}},65169:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);L.exports=function(o,f,N){var b,S;a(o);try{if(b=t(o,"return"),!b){if(f==="throw")throw N;return N}b=e(b,o)}catch(k){S=!0,b=k}if(f==="throw")throw N;if(S)throw b;return a(b),N}},41903:function(L,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),f=n(47730),N=function(){return this};L.exports=function(b,S,k,h){var u=S+" Iterator";return b.prototype=a(e,{next:t(+!h,k)}),o(b,u,!1,!0),f[u]=N,b}},21436:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),N=n(41903),b=n(56379),S=n(91420),k=n(15676),h=n(21650),u=n(60855),c=n(95558),m=n(47730),i=n(83665),d=o.PROPER,l=o.CONFIGURABLE,s=i.IteratorPrototype,C=i.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",p="values",V="entries",y=function(){return this};L.exports=function(B,I,w,T,A,x,E){N(w,I,T);var P=function(H){if(H===A&&F)return F;if(!C&&H&&H in D)return D[H];switch(H){case v:return function(){function J(){return new w(this,H)}return J}();case p:return function(){function J(){return new w(this,H)}return J}();case V:return function(){function J(){return new w(this,H)}return J}()}return function(){return new w(this)}},R=I+" Iterator",M=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],F=!C&&j||P(A),U=I==="Array"&&D.entries||j,_,$,z;if(U&&(_=b(U.call(new B)),_!==Object.prototype&&_.next&&(!t&&b(_)!==s&&(S?S(_,s):f(_[g])||u(_,g,y)),k(_,R,!0,!0),t&&(m[R]=y))),d&&A===p&&j&&j.name!==p&&(!t&&l?h(D,"name",p):(M=!0,F=function(){function G(){return a(j,this)}return G}())),A)if($={values:P(p),keys:x?F:P(v),entries:P(V)},E)for(z in $)(C||M||!(z in D))&&u(D,z,$[z]);else e({target:I,proto:!0,forced:C||M},$);return(!t||E)&&D[g]!==F&&u(D,g,F,{name:A}),m[I]=F,$}},83665:function(L,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),N=n(60855),b=n(95558),S=n(90139),k=b("iterator"),h=!1,u,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(u=c)):h=!0);var i=!t(u)||e(function(){var d={};return u[k].call(d)!==d});i?u={}:S&&(u=o(u)),a(u[k])||N(u,k,function(){return this}),L.exports={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:h}},47730:function(L){"use strict";L.exports={}},83207:function(L,r,n){"use strict";var e=n(74369);L.exports=function(a){return e(a.length)}},40773:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),N=n(15340).CONFIGURABLE,b=n(92004),S=n(4471),k=S.enforce,h=S.get,u=String,c=Object.defineProperty,m=e("".slice),i=e("".replace),d=e([].join),l=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),s=String(String).split("String"),C=L.exports=function(g,v,p){m(u(v),0,7)==="Symbol("&&(v="["+i(u(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),p&&p.getter&&(v="get "+v),p&&p.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(f?c(g,"name",{value:v,configurable:!0}):g.name=v),l&&p&&o(p,"arity")&&g.length!==p.arity&&c(g,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(y){}var V=k(g);return o(V,"source")||(V.source=d(s,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&h(this).source||b(this)}return g}(),"toString")},80563:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},27509:function(L,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(b){return b+o-o};L.exports=function(N,b,S,k){var h=+N,u=a(h),c=e(h);if(uS||i!==i?c*(1/0):c*i}},48705:function(L,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function f(N){return e(N,a,t,o)}return f}()},74347:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},30585:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(L,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),N=n(25184),b=n(79034),S=n(71979),k=n(86727),h=e.MutationObserver||e.WebKitMutationObserver,u=e.document,c=e.process,m=e.Promise,i=a("queueMicrotask"),d,l,s,C,g;if(!i){var v=new f,p=function(){var y,B;for(k&&(y=c.domain)&&y.exit();B=v.get();)try{B()}catch(I){throw v.head&&d(),I}y&&y.enter()};!N&&!k&&!S&&h&&u?(l=!0,s=u.createTextNode(""),new h(p).observe(s,{characterData:!0}),d=function(){s.data=l=!l}):!b&&m&&m.resolve?(C=m.resolve(void 0),C.constructor=m,g=t(C.then,C),d=function(){g(p)}):k?d=function(){c.nextTick(p)}:(o=t(o,e),d=function(){o(p)}),i=function(y){v.head||d(),v.add(y)}}L.exports=i},14187:function(L,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var N,b;this.promise=new f(function(S,k){if(N!==void 0||b!==void 0)throw new a("Bad Promise constructor");N=S,b=k}),this.resolve=e(N),this.reject=e(b)};L.exports.f=function(o){return new t(o)}},75816:function(L,r,n){"use strict";var e=n(28774),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(L,r,n){"use strict";var e=n(26856),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),b=t("".charAt),S=e.parseFloat,k=e.Symbol,h=k&&k.iterator,u=1/S(N+"-0")!==-1/0||h&&!a(function(){S(Object(h))});L.exports=u?function(){function c(m){var i=f(o(m)),d=S(i);return d===0&&b(i,0)==="-"?-0:d}return c}():S},41148:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),b=e.parseInt,S=e.Symbol,k=S&&S.iterator,h=/^[+-]?0x/i,u=t(h.exec),c=b(N+"08")!==8||b(N+"0x16")!==22||k&&!a(function(){b(Object(k))});L.exports=c?function(){function m(i,d){var l=f(o(i));return b(l,d>>>0||(u(h,l)?16:10))}return m}():b},23554:function(L,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),N=n(61791),b=n(10409),S=n(63549),k=n(80689),h=Object.assign,u=Object.defineProperty,c=a([].concat);L.exports=!h||o(function(){if(e&&h({b:1},h(u({},"a",{enumerable:!0,get:function(){function s(){u(this,"b",{value:3,enumerable:!1})}return s}()}),{b:2})).b!==1)return!0;var m={},i={},d=Symbol("assign detection"),l="abcdefghijklmnopqrst";return m[d]=7,l.split("").forEach(function(s){i[s]=s}),h({},m)[d]!==7||f(h({},i)).join("")!==l})?function(){function m(i,d){for(var l=S(i),s=arguments.length,C=1,g=N.f,v=b.f;s>C;)for(var p=k(arguments[C++]),V=g?c(f(p),g(p)):f(p),y=V.length,B=0,I;y>B;)I=V[B++],(!e||t(v,p,I))&&(l[I]=p[I]);return l}return m}():h},15439:function(L,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),N=n(55642),b=n(97223),S=">",k="<",h="prototype",u="script",c=b("IE_PROTO"),m=function(){},i=function(v){return k+u+S+v+k+"/"+u+S},d=function(v){v.write(i("")),v.close();var p=v.parentWindow.Object;return v=null,p},l=function(){var v=N("iframe"),p="java"+u+":",V;return v.style.display="none",f.appendChild(v),v.src=String(p),V=v.contentWindow.document,V.open(),V.write(i("document.F=Object")),V.close(),V.F},s,C=function(){try{s=new ActiveXObject("htmlfile")}catch(p){}C=typeof document!="undefined"?document.domain&&s?d(s):l():d(s);for(var v=t.length;v--;)delete C[h][t[v]];return C()};o[c]=!0,L.exports=Object.create||function(){function g(v,p){var V;return v!==null?(m[h]=e(v),V=new m,m[h]=null,V[c]=v):V=C(),p===void 0?V:a.f(V,p)}return g}()},55119:function(L,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),f=n(54292),N=n(99869);r.f=e&&!a?Object.defineProperties:function(){function b(S,k){o(S);for(var h=f(k),u=N(k),c=u.length,m=0,i;c>m;)t.f(S,i=u[m++],h[i]);return S}return b}()},8165:function(L,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),N=TypeError,b=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",h="configurable",u="writable";r.f=e?t?function(){function c(m,i,d){if(o(m),i=f(i),o(d),typeof m=="function"&&i==="prototype"&&"value"in d&&u in d&&!d[u]){var l=S(m,i);l&&l[u]&&(m[i]=d.value,d={configurable:h in d?d[h]:l[h],enumerable:k in d?d[k]:l[k],writable:!1})}return b(m,i,d)}return c}():b:function(){function c(m,i,d){if(o(m),i=f(i),o(d),a)try{return b(m,i,d)}catch(l){}if("get"in d||"set"in d)throw new N("Accessors not supported");return"value"in d&&(m[i]=d.value),m}return c}()},19765:function(L,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),N=n(72445),b=n(3302),S=n(16109),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function h(u,c){if(u=f(u),c=N(c),S)try{return k(u,c)}catch(m){}if(b(u,c))return o(!a(t.f,u,c),u[c])}return h}()},31024:function(L,r,n){"use strict";var e=n(8649),a=n(54292),t=n(60097).f,o=n(31170),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(k){return o(f)}};L.exports.f=function(){function b(S){return f&&e(S)==="Window"?N(S):t(a(S))}return b}()},60097:function(L,r,n){"use strict";var e=n(49871),a=n(38139),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},61791:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(L,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),N=o("IE_PROTO"),b=Object,S=b.prototype;L.exports=f?b.getPrototypeOf:function(k){var h=t(k);if(e(h,N))return h[N];var u=h.constructor;return a(u)&&h instanceof u?u.prototype:h instanceof b?S:null}},58221:function(L,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),f=Object.isExtensible,N=e(function(){f(1)});L.exports=N||o?function(){function b(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return b}():f},54341:function(L,r,n){"use strict";var e=n(72908);L.exports=e({}.isPrototypeOf)},49871:function(L,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),N=e([].push);L.exports=function(b,S){var k=t(b),h=0,u=[],c;for(c in k)!a(f,c)&&a(k,c)&&N(u,c);for(;S.length>h;)a(k,c=S[h++])&&(~o(u,c)||N(u,c));return u}},99869:function(L,r,n){"use strict";var e=n(49871),a=n(38139);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},6205:function(L,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);L.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(L,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,f={},N;try{N=e(Object.prototype,"__proto__","set"),N(f,[]),o=f instanceof Array}catch(b){}return function(){function b(S,k){return a(S),t(k),o?N(S,k):S.__proto__=k,S}return b}()}():void 0)},64266:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),N=n(54292),b=n(10409).f,S=t(b),k=t([].push),h=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),u=function(m){return function(i){for(var d=N(i),l=f(d),s=h&&o(d)===null,C=l.length,g=0,v=[],p;C>g;)p=l[g++],(!e||(s?p in d:S(d,p)))&&k(v,m?[p,d[p]]:d[p]);return v}};L.exports={entries:u(!0),values:u(!1)}},6625:function(L,r,n){"use strict";var e=n(41936),a=n(48615);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(L,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;L.exports=function(f,N){var b,S;if(N==="string"&&a(b=f.toString)&&!t(S=e(b,f))||a(b=f.valueOf)&&!t(S=e(b,f))||N!=="string"&&a(b=f.toString)&&!t(S=e(b,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(L,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),N=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function b(S){var k=t.f(f(S)),h=o.f;return h?N(k,h(S)):k}return b}()},55601:function(L,r,n){"use strict";var e=n(26856);L.exports=e},73034:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(L,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),N=n(95558),b=n(52460),S=n(53437),k=n(90139),h=n(43541),u=a&&a.prototype,c=N("species"),m=!1,i=t(e.PromiseRejectionEvent),d=o("Promise",function(){var l=f(a),s=l!==String(a);if(!s&&h===66||k&&!(u.catch&&u.finally))return!0;if(!h||h<51||!/native code/.test(l)){var C=new a(function(p){p(1)}),g=function(V){V(function(){},function(){})},v=C.constructor={};if(v[c]=g,m=C.then(function(){})instanceof g,!m)return!0}return!s&&(b||S)&&!i});L.exports={CONSTRUCTOR:d,REJECTION_EVENT:i,SUBCLASSING:m}},3e3:function(L,r,n){"use strict";var e=n(26856);L.exports=e.Promise},61988:function(L,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);L.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var N=t.f(o),b=N.resolve;return b(f),N.promise}},18182:function(L,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(L,r,n){"use strict";var e=n(8165).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(N){t[o]=N}return f}()})}},8274:function(L){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},L.exports=r},59833:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),N=TypeError;L.exports=function(b,S){var k=b.exec;if(t(k)){var h=e(k,b,S);return h!==null&&a(h),h}if(o(b)==="RegExp")return e(f,b,S);throw new N("RegExp#exec called on incompatible receiver")}},59049:function(L,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),N=n(7624),b=n(15439),S=n(4471).get,k=n(18095),h=n(17329),u=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,i=a("".charAt),d=a("".indexOf),l=a("".replace),s=a("".slice),C=function(){var V=/a/,y=/b*/g;return e(c,V,"a"),e(c,y,"a"),V.lastIndex!==0||y.lastIndex!==0}(),g=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,p=C||v||g||k||h;p&&(m=function(){function V(y){var B=this,I=S(B),w=t(y),T=I.raw,A,x,E,P,R,M,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=I.groups,F=g&&B.sticky,U=e(o,B),_=B.source,$=0,z=w;if(F&&(U=l(U,"y",""),d(U,"g")===-1&&(U+="g"),z=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(w,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",z=" "+z,$++),x=new RegExp("^(?:"+_+")",U)),v&&(x=new RegExp("^"+_+"$(?!\\s)",U)),C&&(E=B.lastIndex),P=e(c,F?x:B,z),F?P?(P.input=s(P.input,$),P[0]=s(P[0],$),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:C&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(u,P[0],x,function(){for(R=1;Rb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},305:function(L,r,n){"use strict";var e=n(62695),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},17459:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),N=n(31170),b=n(92827),S=e.Function,k=/MSIE .\./.test(f)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();L.exports=function(h,u){var c=u?2:1;return k?function(m,i){var d=b(arguments.length,1)>c,l=t(m)?m:S(m),s=d?N(arguments,c):[],C=d?function(){a(l,this,s)}:l;return u?h(C,i):h(C)}:h}},92468:function(L,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");L.exports=function(N){var b=e(N);o&&b&&!b[f]&&a(b,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(L,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");L.exports=function(f,N,b){f&&!b&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:N})}},97223:function(L,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(L,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});L.exports=o},7624:function(L,r,n){"use strict";var e=n(90139),a=n(70192);(L.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83604:function(L,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");L.exports=function(N,b){var S=e(N).constructor,k;return S===void 0||t(k=e(S)[f])?b:a(k)}},81626:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(L,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),N=e("".charCodeAt),b=e("".slice),S=function(h){return function(u,c){var m=t(o(u)),i=a(c),d=m.length,l,s;return i<0||i>=d?h?"":void 0:(l=N(m,i),l<55296||l>56319||i+1===d||(s=N(m,i+1))<56320||s>57343?h?f(m,i):l:h?b(m,i,i+2):(l-55296<<10)+(s-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(L,r,n){"use strict";var e=n(74247);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(L,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),N=e(o),b=e("".slice),S=Math.ceil,k=function(u){return function(c,m,i){var d=t(f(c)),l=a(m),s=d.length,C=i===void 0?" ":t(i),g,v;return l<=s||C===""?d:(g=l-s,v=N(C,S(g/C.length)),v.length>g&&(v=b(v,0,g)),u?d+v:v+d)}};L.exports={start:k(!1),end:k(!0)}},75463:function(L,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;L.exports=function(){function f(N){var b=a(t(this)),S="",k=e(N);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(b+=b))k&1&&(S+=b);return S}return f}()},45745:function(L,r,n){"use strict";var e=n(47913).end,a=n(15677);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";L.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(L,r,n){"use strict";var e=n(47913).start,a=n(15677);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(L,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),N=RegExp("^["+o+"]+"),b=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(u){var c=t(a(u));return h&1&&(c=f(c,N,"")),h&2&&(c=f(c,b,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(L,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(L,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);L.exports=function(){var f=a("Symbol"),N=f&&f.prototype,b=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(k){return e(b,this)},{arity:1})}},16010:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),N=n(13586),b=n(21474),S=n(31170),k=n(55642),h=n(92827),u=n(25184),c=n(86727),m=e.setImmediate,i=e.clearImmediate,d=e.process,l=e.Dispatch,s=e.Function,C=e.MessageChannel,g=e.String,v=0,p={},V="onreadystatechange",y,B,I,w;N(function(){y=e.location});var T=function(R){if(f(p,R)){var M=p[R];delete p[R],M()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),y.protocol+"//"+y.host)};(!m||!i)&&(m=function(){function P(R){h(arguments.length,1);var M=o(R)?R:s(R),D=S(arguments,1);return p[++v]=function(){a(M,void 0,D)},B(v),v}return P}(),i=function(){function P(R){delete p[R]}return P}(),c?B=function(R){d.nextTick(A(R))}:l&&l.now?B=function(R){l.now(A(R))}:C&&!u?(I=new C,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&y&&y.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):V in k("script")?B=function(R){b.appendChild(k("script"))[V]=function(){b.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),L.exports={set:m,clear:i}},7950:function(L,r,n){"use strict";var e=n(72908);L.exports=e(1 .valueOf)},39531:function(L,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;L.exports=function(o,f){var N=e(o);return N<0?a(N+f,0):t(N,f)}},73873:function(L,r,n){"use strict";var e=n(9560),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},28968:function(L,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var f=e(o),N=a(f);if(f!==N)throw new t("Wrong length or index");return N}},54292:function(L,r,n){"use strict";var e=n(80689),a=n(305);L.exports=function(t){return e(a(t))}},84501:function(L,r,n){"use strict";var e=n(54037);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(L,r,n){"use strict";var e=n(84501),a=Math.min;L.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(L,r,n){"use strict";var e=n(305),a=Object;L.exports=function(t){return a(e(t))}},45476:function(L,r,n){"use strict";var e=n(70685),a=RangeError;L.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(L,r,n){"use strict";var e=n(84501),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},9560:function(L,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),N=n(95558),b=TypeError,S=N("toPrimitive");L.exports=function(k,h){if(!a(k)||t(k))return k;var u=o(k,S),c;if(u){if(h===void 0&&(h="default"),c=e(u,k,h),!a(c)||t(c))return c;throw new b("Can't convert object to primitive value")}return h===void 0&&(h="number"),f(k,h)}},72445:function(L,r,n){"use strict";var e=n(9560),a=n(43474);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(L,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},8758:function(L,r,n){"use strict";var e=n(48615),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),N=n(30432),b=n(31284),S=n(14434),k=n(73970),h=n(21650),u=n(76117),c=n(74369),m=n(28968),i=n(45476),d=n(52834),l=n(72445),s=n(3302),C=n(48615),g=n(66379),v=n(43474),p=n(15439),V=n(54341),y=n(91420),B=n(60097).f,I=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),P=n(21465),R=n(4471),M=n(43405),D=R.get,j=R.set,F=R.enforce,U=x.f,_=E.f,$=a.RangeError,z=b.ArrayBuffer,G=z.prototype,H=b.DataView,J=N.NATIVE_ARRAY_BUFFER_VIEWS,ae=N.TYPED_ARRAY_TAG,ce=N.TypedArray,se=N.TypedArrayPrototype,he=N.isTypedArray,ye="BYTES_PER_ELEMENT",Ie="Wrong length",pe=function(ne,be){A(ne,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},oe=function(ne){var be;return V(G,ne)||(be=C(ne))==="ArrayBuffer"||be==="SharedArrayBuffer"},Z=function(ne,be){return he(ne)&&!v(be)&&be in ne&&u(+be)&&be>=0},q=function(){function me(ne,be){return be=l(be),Z(ne,be)?k(2,ne[be]):_(ne,be)}return me}(),ue=function(){function me(ne,be,fe){return be=l(be),Z(ne,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(ne[be]=fe.value,ne):U(ne,be,fe)}return me}();o?(J||(E.f=q,x.f=ue,pe(se,"buffer"),pe(se,"byteOffset"),pe(se,"byteLength"),pe(se,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:q,defineProperty:ue}),L.exports=function(me,ne,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,ve="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},We=function(de,Ne){var Ae=D(de);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(de,Ne,Ae){var De=D(de);De.view[ve](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},re=function(de,Ne){U(de,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};J?f&&(we=ne(function(Ce,de,Ne,Ae){return S(Ce,xe),M(function(){return g(de)?oe(de)?Ae!==void 0?new Se(de,i(Ne,fe),Ae):Ne!==void 0?new Se(de,i(Ne,fe)):new Se(de):he(de)?P(we,de):t(I,we,de):new Se(m(de))}(),Ce,we)}),y&&y(we,ce),w(B(Se),function(Ce){Ce in we||h(we,Ce,Se[Ce])}),we.prototype=xe):(we=ne(function(Ce,de,Ne,Ae){S(Ce,xe);var De=0,je=0,_e,Ue,Ke;if(!g(de))Ke=m(de),Ue=Ke*fe,_e=new z(Ue);else if(oe(de)){_e=de,je=i(Ne,fe);var Ge=de.byteLength;if(Ae===void 0){if(Ge%fe)throw new $(Ie);if(Ue=Ge-je,Ue<0)throw new $(Ie)}else if(Ue=c(Ae)*fe,Ue+je>Ge)throw new $(Ie);Ke=Ue/fe}else return he(de)?P(we,de):t(I,we,de);for(j(Ce,{buffer:_e,byteOffset:je,byteLength:Ue,length:Ke,view:new H(_e)});De1?arguments[1]:void 0,C=s!==void 0,g=b(d),v,p,V,y,B,I,w,T;if(g&&!S(g))for(w=N(d,g),T=w.next,d=[];!(I=a(T,w)).done;)d.push(I.value);for(C&&l>2&&(s=e(s,arguments[2])),p=f(d),V=new(h(i))(p),y=k(V),v=0;p>v;v++)B=C?s(d[v],v):d[v],V[v]=y?u(B):+B;return V}return c}()},9230:function(L,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(f){return t(a(f,o(f)))}},76246:function(L,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(L,r,n){"use strict";var e=n(16361),a=n(13586);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(C){if(!o(C))return!1;var g=C[m];return g!==void 0?!!g:t(C)},l=!i||!h("concat");e({target:"Array",proto:!0,arity:1,forced:l},{concat:function(){function s(C){var g=f(this),v=k(g,0),p=0,V,y,B,I,w;for(V=-1,B=arguments.length;V1?arguments[1]:void 0)}return f}()})},7216:function(L,r,n){"use strict";var e=n(3116),a=n(39948),t=n(98759);e({target:"Array",proto:!0},{fill:a}),t("fill")},50584:function(L,r,n){"use strict";var e=n(3116),a=n(18539).filter,t=n(34924),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},25972:function(L,r,n){"use strict";var e=n(3116),a=n(18539).findIndex,t=n(98759),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function N(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},26632:function(L,r,n){"use strict";var e=n(3116),a=n(18539).find,t=n(98759),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function N(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},14064:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),f=n(83207),N=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function b(S){var k=o(this),h=f(k),u;return t(S),u=N(k,0),u.length=a(u,k,k,h,0,1,S,arguments.length>1?arguments[1]:void 0),u}return b}()})},55222:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),f=n(84501),N=n(51582);e({target:"Array",proto:!0},{flat:function(){function b(){var S=arguments.length?arguments[0]:void 0,k=t(this),h=o(k),u=N(k,0);return u.length=a(u,k,k,h,0,S===void 0?1:f(S)),u}return b}()})},68616:function(L,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(L,r,n){"use strict";var e=n(3116),a=n(45056),t=n(1608),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},26088:function(L,r,n){"use strict";var e=n(3116),a=n(33483).includes,t=n(13586),o=n(98759),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function N(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},92654:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),f=a([].indexOf),N=!!f&&1/f([1],1,-0)<0,b=N||!o("indexOf");e({target:"Array",proto:!0,forced:b},{indexOf:function(){function S(k){var h=arguments.length>1?arguments[1]:void 0;return N?f(this,k,h)||0:t(this,k,h)}return S}()})},58423:function(L,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(L,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,N=n(21436),b=n(32214),S=n(90139),k=n(16361),h="Array Iterator",u=o.set,c=o.getterFor(h);L.exports=N(Array,"Array",function(i,d){u(this,{type:h,target:e(i),index:0,kind:d})},function(){var i=c(this),d=i.target,l=i.index++;if(!d||l>=d.length)return i.target=void 0,b(void 0,!0);switch(i.kind){case"keys":return b(l,!1);case"values":return b(d[l],!1)}return b([l,d[l]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(i){}},37808:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),N=a([].join),b=t!==Object,S=b||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(h){return N(o(this),h===void 0?",":h)}return k}()})},2509:function(L,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(L,r,n){"use strict";var e=n(3116),a=n(18539).map,t=n(34924),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},38196:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,N=a(function(){function b(){}return!(f.of.call(b)instanceof b)});e({target:"Array",stat:!0,forced:N},{of:function(){function b(){for(var S=0,k=arguments.length,h=new(t(this)?this:f)(k);k>S;)o(h,S,arguments[S++]);return h.length=k,h}return b}()})},56913:function(L,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,b=N||!t("reduceRight");e({target:"Array",proto:!0,forced:b},{reduceRight:function(){function S(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(L,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,b=N||!t("reduce");e({target:"Array",proto:!0,forced:b},{reduce:function(){function S(k){var h=arguments.length;return a(this,k,h,h>1?arguments[1]:void 0)}return S}()})},48704:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(59882),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function N(){return t(this)&&(this.length=this.length),o(this)}return N}()})},24077:function(L,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),N=n(83207),b=n(54292),S=n(80750),k=n(95558),h=n(34924),u=n(31170),c=h("slice"),m=k("species"),i=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function l(s,C){var g=b(this),v=N(g),p=f(s,v),V=f(C===void 0?v:C,v),y,B,I;if(a(g)&&(y=g.constructor,t(y)&&(y===i||a(y.prototype))?y=void 0:o(y)&&(y=y[m],y===null&&(y=void 0)),y===i||y===void 0))return u(g,p,V);for(B=new(y===void 0?i:y)(d(V-p,0)),I=0;p1?arguments[1]:void 0)}return f}()})},43430:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),N=n(81245),b=n(8758),S=n(13586),k=n(91183),h=n(56127),u=n(31574),c=n(88836),m=n(43541),i=n(27204),d=[],l=a(d.sort),s=a(d.push),C=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=h("sort"),p=!S(function(){if(m)return m<70;if(!(u&&u>3)){if(c)return!0;if(i)return i<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:w+A,v:T})}for(d.sort(function(x,E){return E.v-x.v}),A=0;Ab(T)?1:-1}};e({target:"Array",proto:!0,forced:V},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(p)return I===void 0?l(w):l(w,I);var T=[],A=f(w),x,E;for(E=0;Eg-y+V;I--)h(C,I-1)}else if(V>y)for(I=g-y;I>v;I--)w=I+y-1,T=I+V-1,w in C?C[T]=C[w]:h(C,T);for(I=0;I9490626562425156e-8?o(h)+N:a(h-1+f(h-1)*f(h+1))}return S}()})},68872:function(L,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(b){var S=+b;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var N=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:N},{asinh:f})},93105:function(L,r,n){"use strict";var e=n(3116),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(N){var b=+N;return b===0?b:t((1+b)/(1-b))/2}return f}()})},1795:function(L,r,n){"use strict";var e=n(3116),a=n(30585),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(N){var b=+N;return a(b)*o(t(b),.3333333333333333)}return f}()})},11121:function(L,r,n){"use strict";var e=n(3116),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(N){var b=N>>>0;return b?31-a(t(b+.5)*o):32}return f}()})},18730:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,f=Math.E,N=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:N},{cosh:function(){function b(S){var k=a(o(S)-1)+1;return(k+1/(k*f*f))*(f/2)}return b}()})},11624:function(L,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(L,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(L,r,n){"use strict";var e=n(3116),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function N(b,S){for(var k=0,h=0,u=arguments.length,c=0,m,i;h0?(i=m/c,k+=i*i):k+=m;return c===1/0?1/0:c*o(k)}return N}()})},75213:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(N,b){var S=65535,k=+N,h=+b,u=S&k,c=S&h;return 0|u*c+((S&k>>>16)*c+u*(S&h>>>16)<<16>>>0)}return f}()})},4347:function(L,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(L,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(L,r,n){"use strict";var e=n(3116),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},54468:function(L,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,N=Math.E,b=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:b},{sinh:function(){function S(k){var h=+k;return o(h)<1?(t(h)-t(-h))/2:(f(h-1)-f(-h-1))*(N/2)}return S}()})},95499:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var N=+f,b=a(N),S=a(-N);return b===1/0?1:S===1/0?-1:(b-S)/(t(N)+t(-N))}return o}()})},50929:function(L,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(L,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),N=n(72908),b=n(23620),S=n(3302),k=n(43405),h=n(54341),u=n(43474),c=n(9560),m=n(13586),i=n(60097).f,d=n(19765).f,l=n(8165).f,s=n(7950),C=n(47913).trim,g="Number",v=o[g],p=f[g],V=v.prototype,y=o.TypeError,B=N("".slice),I=N("".charCodeAt),w=function(M){var D=c(M,"number");return typeof D=="bigint"?D:T(D)},T=function(M){var D=c(M,"number"),j,F,U,_,$,z,G,H;if(u(D))throw new y("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=C(D),j=I(D,0),j===43||j===45){if(F=I(D,2),F===88||F===120)return NaN}else if(j===48){switch(I(D,1)){case 66:case 98:U=2,_=49;break;case 79:case 111:U=8,_=55;break;default:return+D}for($=B(D,2),z=$.length,G=0;G_)return NaN;return parseInt($,U)}}return+D},A=b(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(M){return h(V,M)&&m(function(){s(M)})},E=function(){function R(M){var D=arguments.length<1?0:v(w(M));return x(this)?k(Object(D),this,E):D}return R}();E.prototype=V,A&&!a&&(V.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,D){for(var j=t?i(D):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,U;j.length>F;F++)S(D,U=j[F])&&!S(M,U)&&l(M,U,d(D,U))};a&&p&&P(f[g],p),(A||a)&&P(f[g],v)},48211:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(L,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(L,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},84660:function(L,r,n){"use strict";var e=n(3116),a=n(76117),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},82678:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),N=n(13586),b=RangeError,S=String,k=Math.floor,h=a(f),u=a("".slice),c=a(1 .toFixed),m=function g(v,p,V){return p===0?V:p%2===1?g(v,p-1,V*v):g(v*v,p/2,V)},i=function(v){for(var p=0,V=v;V>=4096;)p+=12,V/=4096;for(;V>=2;)p+=1,V/=2;return p},d=function(v,p,V){for(var y=-1,B=V;++y<6;)B+=p*v[y],v[y]=B%1e7,B=k(B/1e7)},l=function(v,p){for(var V=6,y=0;--V>=0;)y+=v[V],v[V]=k(y/p),y=y%p*1e7},s=function(v){for(var p=6,V="";--p>=0;)if(V!==""||p===0||v[p]!==0){var y=S(v[p]);V=V===""?y:V+h("0",7-y.length)+y}return V},C=N(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!N(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function g(v){var p=o(this),V=t(v),y=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(V<0||V>20)throw new b("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return S(p);if(p<0&&(B="-",p=-p),p>1e-21)if(w=i(p*m(2,69,1))-69,T=w<0?p*m(2,-w,1):p/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(y,0,T),A=V;A>=7;)d(y,1e7,0),A-=7;for(d(y,m(10,A,1),0),A=w-1;A>=23;)l(y,8388608),A-=23;l(y,1<0?(x=I.length,I=B+(x<=V?"0."+h("0",V-x)+I:u(I,0,x-V)+"."+u(I,x-V))):I=B+I,I}return g}()})},83403:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),f=a(1 .toPrecision),N=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:N},{toPrecision:function(){function b(S){return S===void 0?f(o(this)):f(o(this),S)}return b}()})},4229:function(L,r,n){"use strict";var e=n(3116),a=n(23554);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},53388:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(15439);e({target:"Object",stat:!0,sham:!a},{create:t})},53121:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function b(S,k){N.f(f(this),S,{get:o(k),enumerable:!0,configurable:!0})}return b}()})},53822:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(55119).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},2514:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(8165).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},2218:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function b(S,k){N.f(f(this),S,{set:o(k),enumerable:!0,configurable:!0})}return b}()})},14955:function(L,r,n){"use strict";var e=n(3116),a=n(64266).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79220:function(L,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,N=Object.freeze,b=t(function(){N(1)});e({target:"Object",stat:!0,forced:b,sham:!a},{freeze:function(){function S(k){return N&&o(k)?N(f(k)):k}return S}()})},81941:function(L,r,n){"use strict";var e=n(3116),a=n(20453),t=n(80750);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var N={};return a(f,function(b,S){t(N,b,S)},{AS_ENTRIES:!0}),N}return o}()})},37245:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,f=n(16361),N=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getOwnPropertyDescriptor:function(){function b(S,k){return o(t(S),k)}return b}()})},8373:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),f=n(19765),N=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function b(S){for(var k=o(S),h=f.f,u=t(k),c={},m=0,i,d;u.length>m;)d=h(k,i=u[m++]),d!==void 0&&N(c,i,d);return c}return b}()})},81212:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(31024).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},56896:function(L,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),f=n(63549),N=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:N},{getOwnPropertySymbols:function(){function b(S){var k=o.f;return k?k(f(S)):[]}return b}()})},26054:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),f=n(62297),N=a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getPrototypeOf:function(){function b(S){return o(t(S))}return b}()})},49611:function(L,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isFrozen,b=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:b},{isFrozen:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:N?N(k):!1}return S}()})},55750:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isSealed,b=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:b},{isSealed:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:N?N(k):!1}return S}()})},57745:function(L,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(L,r,n){"use strict";var e=n(3116),a=n(63549),t=n(99869),o=n(13586),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function N(b){return t(a(b))}return N}()})},63429:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),b=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var h=o(this),u=f(k),c;do if(c=b(h,u))return c.get;while(h=N(h))}return S}()})},9558:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),b=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var h=o(this),u=f(k),c;do if(c=b(h,u))return c.set;while(h=N(h))}return S}()})},2420:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.preventExtensions,b=f(function(){N(1)});e({target:"Object",stat:!0,forced:b,sham:!o},{preventExtensions:function(){function S(k){return N&&a(k)?N(t(k)):k}return S}()})},19015:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.seal,b=f(function(){N(1)});e({target:"Object",stat:!0,forced:b,sham:!o},{seal:function(){function S(k){return N&&a(k)?N(t(k)):k}return S}()})},34137:function(L,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(L,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(L,r,n){"use strict";var e=n(3116),a=n(64266).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},49456:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),b=n(18182);e({target:"Promise",stat:!0,forced:b},{all:function(){function S(k){var h=this,u=o.f(h),c=u.resolve,m=u.reject,i=f(function(){var d=t(h.resolve),l=[],s=0,C=1;N(k,function(g){var v=s++,p=!1;C++,a(d,h,g).then(function(V){p||(p=!0,l[v]=V,--C||c(l))},m)}),--C||c(l)});return i.error&&m(i.value),u.promise}return S}()})},72188:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),N=n(53664),b=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(u){return this.then(void 0,u)}return h}()}),!a&&N(o)){var k=f("Promise").prototype.catch;S.catch!==k&&b(S,"catch",k,{unsafe:!0})}},13779:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),N=n(60855),b=n(91420),S=n(15676),k=n(92468),h=n(79474),u=n(53664),c=n(66379),m=n(14434),i=n(83604),d=n(87073).set,l=n(60816),s=n(66481),C=n(73034),g=n(8274),v=n(4471),p=n(3e3),V=n(14657),y=n(14187),B="Promise",I=V.CONSTRUCTOR,w=V.REJECTION_EVENT,T=V.SUBCLASSING,A=v.getterFor(B),x=v.set,E=p&&p.prototype,P=p,R=E,M=o.TypeError,D=o.document,j=o.process,F=y.f,U=F,_=!!(D&&D.createEvent&&o.dispatchEvent),$="unhandledrejection",z="rejectionhandled",G=0,H=1,J=2,ae=1,ce=2,se,he,ye,Ie,pe=function(ve){var Se;return c(ve)&&u(Se=ve.then)?Se:!1},oe=function(ve,Se){var we=Se.value,xe=Se.state===H,Oe=xe?ve.ok:ve.fail,We=ve.resolve,Ve=ve.reject,re=ve.domain,le,Ce,de;try{Oe?(xe||(Se.rejection===ce&&ne(Se),Se.rejection=ae),Oe===!0?le=we:(re&&re.enter(),le=Oe(we),re&&(re.exit(),de=!0)),le===ve.promise?Ve(new M("Promise-chain cycle")):(Ce=pe(le))?f(Ce,le,We,Ve):We(le)):Ve(we)}catch(Ne){re&&!de&&re.exit(),Ve(Ne)}},Z=function(ve,Se){ve.notified||(ve.notified=!0,l(function(){for(var we=ve.reactions,xe;xe=we.get();)oe(xe,ve);ve.notified=!1,Se&&!ve.rejection&&ue(ve)}))},q=function(ve,Se,we){var xe,Oe;_?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+ve])?Oe(xe):ve===$&&s("Unhandled promise rejection",we)},ue=function(ve){f(d,o,function(){var Se=ve.facade,we=ve.value,xe=me(ve),Oe;if(xe&&(Oe=C(function(){t?j.emit("unhandledRejection",we,Se):q($,Se,we)}),ve.rejection=t||me(ve)?ce:ae,Oe.error))throw Oe.value})},me=function(ve){return ve.rejection!==ae&&!ve.parent},ne=function(ve){f(d,o,function(){var Se=ve.facade;t?j.emit("rejectionHandled",Se):q(z,Se,ve.value)})},be=function(ve,Se,we){return function(xe){ve(Se,xe,we)}},fe=function(ve,Se,we){ve.done||(ve.done=!0,we&&(ve=we),ve.value=Se,ve.state=J,Z(ve,!0))},ge=function ke(ve,Se,we){if(!ve.done){ve.done=!0,we&&(ve=we);try{if(ve.facade===Se)throw new M("Promise can't be resolved itself");var xe=pe(Se);xe?l(function(){var Oe={done:!1};try{f(xe,Se,be(ke,Oe,ve),be(fe,Oe,ve))}catch(We){fe(Oe,We,ve)}}):(ve.value=Se,ve.state=H,Z(ve,!1))}catch(Oe){fe({done:!1},Oe,ve)}}};if(I&&(P=function(){function ke(ve){m(this,R),h(ve),f(se,this);var Se=A(this);try{ve(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=P.prototype,se=function(){function ke(ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:G,value:void 0})}return ke}(),se.prototype=N(R,"then",function(){function ke(ve,Se){var we=A(this),xe=F(i(this,P));return we.parent=!0,xe.ok=u(ve)?ve:!0,xe.fail=u(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===G?we.reactions.add(xe):l(function(){oe(xe,we)}),xe.promise}return ke}()),he=function(){var ve=new se,Se=A(ve);this.promise=ve,this.resolve=be(ge,Se),this.reject=be(fe,Se)},y.f=F=function(ve){return ve===P||ve===ye?new he(ve):U(ve)},!a&&u(p)&&E!==Object.prototype)){Ie=E.then,T||N(E,"then",function(){function ke(ve,Se){var we=this;return new P(function(xe,Oe){f(Ie,we,xe,Oe)}).then(ve,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}b&&b(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),S(P,B,!1,!0),k(B)},79063:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),N=n(53664),b=n(83604),S=n(61988),k=n(60855),h=t&&t.prototype,u=!!t&&o(function(){h.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:u},{finally:function(){function m(i){var d=b(this,f("Promise")),l=N(i);return this.then(l?function(s){return S(d,i()).then(function(){return s})}:i,l?function(s){return S(d,i()).then(function(){throw s})}:i)}return m}()}),!a&&N(t)){var c=f("Promise").prototype.finally;h.finally!==c&&k(h,"finally",c,{unsafe:!0})}},75795:function(L,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),b=n(18182);e({target:"Promise",stat:!0,forced:b},{race:function(){function S(k){var h=this,u=o.f(h),c=u.reject,m=f(function(){var i=t(h.resolve);N(k,function(d){a(i,h,d).then(u.resolve,c)})});return m.error&&c(m.value),u.promise}return S}()})},75955:function(L,r,n){"use strict";var e=n(3116),a=n(14187),t=n(14657).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var N=a.f(this),b=N.reject;return b(f),N.promise}return o}()})},39996:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,N=n(61988),b=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(h){return N(S&&this===b?o:this,h)}return k}()})},1210:function(L,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),f=n(13586),N=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:N},{apply:function(){function b(S,k,h){return a(t(S),k,o(h))}return b}()})},91370:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),N=n(45418),b=n(66379),S=n(15439),k=n(13586),h=a("Reflect","construct"),u=Object.prototype,c=[].push,m=k(function(){function l(){}return!(h(function(){},[],l)instanceof l)}),i=!k(function(){h(function(){})}),d=m||i;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function l(s,C){f(s),N(C);var g=arguments.length<3?s:f(arguments[2]);if(i&&!m)return h(s,C,g);if(s===g){switch(C.length){case 0:return new s;case 1:return new s(C[0]);case 2:return new s(C[0],C[1]);case 3:return new s(C[0],C[1],C[2]);case 4:return new s(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,s,v))}var p=g.prototype,V=S(b(p)?p:u),y=t(s,V,C);return b(y)?y:V}return l}()})},17327:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),N=n(13586),b=N(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:b,sham:!a},{defineProperty:function(){function S(k,h,u){t(k);var c=o(h);t(u);try{return f.f(k,c,u),!0}catch(m){return!1}}return S}()})},2679:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(19765).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,N){var b=t(a(f),N);return b&&!b.configurable?!1:delete f[N]}return o}()})},27262:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(19765);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(N,b){return o.f(t(N),b)}return f}()})},47278:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(56379),o=n(62297);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(N){return t(a(N))}return f}()})},60733:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),N=n(19765),b=n(56379);function S(k,h){var u=arguments.length<3?k:arguments[2],c,m;if(o(k)===u)return k[h];if(c=N.f(k,h),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,u);if(t(m=b(k)))return S(m,h,u)}e({target:"Reflect",stat:!0},{get:S})},22547:function(L,r,n){"use strict";var e=n(3116);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},92992:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(58221);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},64650:function(L,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(45418),o=n(58199);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(N){t(N);try{var b=a("Object","preventExtensions");return b&&b(N),!0}catch(S){return!1}}return f}()})},65558:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(30907),o=n(91420);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(N,b){a(N),t(b);try{return o(N,b),!0}catch(S){return!1}}return f}()})},97836:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),N=n(13586),b=n(8165),S=n(19765),k=n(56379),h=n(73970);function u(m,i,d){var l=arguments.length<4?m:arguments[3],s=S.f(t(m),i),C,g,v;if(!s){if(o(g=k(m)))return u(g,i,d,l);s=h(0)}if(f(s)){if(s.writable===!1||!o(l))return!1;if(C=S.f(l,i)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,b.f(l,i,C)}else b.f(l,i,h(0,d))}else{if(v=s.set,v===void 0)return!1;a(v,l,d)}return!0}var c=N(function(){var m=function(){},i=b.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,i)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:u})},83932:function(L,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),N=n(21650),b=n(15439),S=n(60097).f,k=n(54341),h=n(28774),u=n(8758),c=n(13980),m=n(96472),i=n(69713),d=n(60855),l=n(13586),s=n(3302),C=n(4471).enforce,g=n(92468),v=n(95558),p=n(18095),V=n(17329),y=v("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,j=new B(M)!==M,F=m.MISSED_STICKY,U=m.UNSUPPORTED_Y,_=e&&(!j||F||p||V||l(function(){return D[y]=!1,B(M)!==M||B(D)===D||String(B(M,"i"))!=="/a/i"})),$=function(ce){for(var se=ce.length,he=0,ye="",Ie=!1,pe;he<=se;he++){if(pe=A(ce,he),pe==="\\"){ye+=pe+A(ce,++he);continue}!Ie&&pe==="."?ye+="[\\s\\S]":(pe==="["?Ie=!0:pe==="]"&&(Ie=!1),ye+=pe)}return ye},z=function(ce){for(var se=ce.length,he=0,ye="",Ie=[],pe=b(null),oe=!1,Z=!1,q=0,ue="",me;he<=se;he++){if(me=A(ce,he),me==="\\")me+=A(ce,++he);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":T(R,P(ce,he+1))&&(he+=2,Z=!0),ye+=me,q++;continue;case(me===">"&&Z):if(ue===""||s(pe,ue))throw new w("Invalid capture group name");pe[ue]=!0,Ie[Ie.length]=[ue,q],Z=!1,ue="";continue}Z?ue+=me:ye+=me}return[ye,Ie]};if(o("RegExp",_)){for(var G=function(){function ae(ce,se){var he=k(I,this),ye=h(ce),Ie=se===void 0,pe=[],oe=ce,Z,q,ue,me,ne,be;if(!he&&ye&&Ie&&ce.constructor===G)return ce;if((ye||k(I,ce))&&(ce=ce.source,Ie&&(se=c(oe))),ce=ce===void 0?"":u(ce),se=se===void 0?"":u(se),oe=ce,p&&"dotAll"in M&&(q=!!se&&E(se,"s")>-1,q&&(se=x(se,/s/g,""))),Z=se,F&&"sticky"in M&&(ue=!!se&&E(se,"y")>-1,ue&&U&&(se=x(se,/y/g,""))),V&&(me=z(ce),ce=me[0],pe=me[1]),ne=f(B(ce,se),he?this:I,G),(q||ue||pe.length)&&(be=C(ne),q&&(be.dotAll=!0,be.raw=G($(ce),Z)),ue&&(be.sticky=!0),pe.length&&(be.groups=pe)),ce!==oe)try{N(ne,"source",oe===""?"(?:)":oe)}catch(fe){}return ne}return ae}(),H=S(B),J=0;H.length>J;)i(G,B,H[J++]);I.constructor=G,G.prototype=I,d(a,"RegExp",G,{constructor:!0})}g("RegExp")},72941:function(L,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),N=e.RegExp,b=N.prototype,S=a&&f(function(){var k=!0;try{N(".","d")}catch(s){k=!1}var h={},u="",c=k?"dgimsy":"gimsy",m=function(C,g){Object.defineProperty(h,C,{get:function(){function v(){return u+=g,!0}return v}()})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(i.hasIndices="d");for(var d in i)m(d,i[d]);var l=Object.getOwnPropertyDescriptor(b,"flags").get.call(h);return l!==c||u!==c});S&&t(b,"flags",{configurable:!0,get:o})},2394:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),N=n(13980),b="toString",S=RegExp.prototype,k=S[b],h=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),u=e&&k.name!==b;(h||u)&&a(S,b,function(){function c(){var m=t(this),i=o(m.source),d=o(N(m));return"/"+i+"/"+d}return c}(),{unsafe:!0})},98480:function(L,r,n){"use strict";var e=n(10609),a=n(42384);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37517:function(L,r,n){"use strict";n(98480)},25492:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},13684:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},79646:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},98511:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},65699:function(L,r,n){"use strict";var e=n(3116),a=n(13300).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},11360:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),N=n(75816),b=n(305),S=n(46339),k=n(90139),h=a("".slice),u=Math.min,c=S("endsWith"),m=!k&&!c&&!!function(){var i=t(String.prototype,"endsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function i(d){var l=f(b(this));N(d);var s=arguments.length>1?arguments[1]:void 0,C=l.length,g=s===void 0?C:u(o(s),C),v=f(d);return h(l,g-v.length,g)===v}return i}()})},30733:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},58683:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},70277:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},33683:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,N=String.fromCodePoint,b=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function k(h){for(var u=[],c=arguments.length,m=0,i;c>m;){if(i=+arguments[m++],t(i,1114111)!==i)throw new o(i+" is not a valid code point");u[m]=i<65536?f(i):f(((i-=65536)>>10)+55296,i%1024+56320)}return b(u,"")}return k}()})},16792:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),N=n(46339),b=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(k){return!!~b(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},8:function(L,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),N="String Iterator",b=t.set,S=t.getterFor(N);o(String,"String",function(k){b(this,{type:N,string:a(k),index:0})},function(){function k(){var h=S(this),u=h.string,c=h.index,m;return c>=u.length?f(void 0,!0):(m=e(u,c),h.index+=m.length,f(m,!1))}return k}())},13763:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},76015:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),N=n(8758),b=n(305),S=n(76540),k=n(47158),h=n(59833);a("match",function(u,c,m){return[function(){function i(d){var l=b(this),s=o(d)?void 0:S(d,u);return s?e(s,d,l):new RegExp(d)[u](N(l))}return i}(),function(i){var d=t(this),l=N(i),s=m(c,d,l);if(s.done)return s.value;if(!d.global)return h(d,l);var C=d.unicode;d.lastIndex=0;for(var g=[],v=0,p;(p=h(d,l))!==null;){var V=N(p[0]);g[v]=V,V===""&&(d.lastIndex=k(l,f(d.lastIndex),C)),v++}return v===0?null:g}]})},57318:function(L,r,n){"use strict";var e=n(3116),a=n(81290).end,t=n(51468);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},33177:function(L,r,n){"use strict";var e=n(3116),a=n(81290).start,t=n(51468);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},1429:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),N=n(83207),b=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(h){var u=t(o(h).raw),c=N(u);if(!c)return"";for(var m=arguments.length,i=[],d=0;;){if(b(i,f(u[d++])),d===c)return S(i,"");d")!=="7"});o("replace",function(x,E,P){var R=T?"$":"$0";return[function(){function M(D,j){var F=c(this),U=S(D)?void 0:i(D,C);return U?a(U,D,F,j):a(E,u(F),D,j)}return M}(),function(M,D){var j=N(this),F=u(M);if(typeof D=="string"&&y(D,R)===-1&&y(D,"$<")===-1){var U=P(E,j,F,D);if(U.done)return U.value}var _=b(D);_||(D=u(D));var $=j.global,z;$&&(z=j.unicode,j.lastIndex=0);for(var G=[],H;H=l(j,F),!(H===null||(V(G,H),!$));){var J=u(H[0]);J===""&&(j.lastIndex=m(F,h(j.lastIndex),z))}for(var ae="",ce=0,se=0;se=ce&&(ae+=B(F,ce,ye)+pe,ce=ye+he.length)}return ae+B(F,ce)}]},!A||!w||T)},60981:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),N=n(91935),b=n(8758),S=n(76540),k=n(59833);a("search",function(h,u,c){return[function(){function m(i){var d=f(this),l=o(i)?void 0:S(i,h);return l?e(l,i,d):new RegExp(i)[h](b(d))}return m}(),function(m){var i=t(this),d=b(m),l=c(u,i,d);if(l.done)return l.value;var s=i.lastIndex;N(s,0)||(i.lastIndex=0);var C=k(i,d);return N(i.lastIndex,s)||(i.lastIndex=s),C===null?-1:C.index}]})},56001:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},96578:function(L,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),N=n(62695),b=n(28774),S=n(305),k=n(83604),h=n(47158),u=n(74369),c=n(8758),m=n(76540),i=n(31170),d=n(59833),l=n(59049),s=n(96472),C=n(13586),g=s.UNSUPPORTED_Y,v=4294967295,p=Math.min,V=[].push,y=t(/./.exec),B=t(V),I=t("".slice),w=!C(function(){var T=/(?:)/,A=T.exec;T.exec=function(){return A.apply(this,arguments)};var x="ab".split(T);return x.length!==2||x[0]!=="a"||x[1]!=="b"});o("split",function(T,A,x){var E;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(R,M){var D=c(S(this)),j=M===void 0?v:M>>>0;if(j===0)return[];if(R===void 0)return[D];if(!b(R))return a(A,D,R,j);for(var F=[],U=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),_=0,$=new RegExp(R.source,U+"g"),z,G,H;(z=a(l,$,D))&&(G=$.lastIndex,!(G>_&&(B(F,I(D,_,z.index)),z.length>1&&z.index=j)));)$.lastIndex===z.index&&$.lastIndex++;return _===D.length?(H||!y($,""))&&B(F,""):B(F,I(D,_)),F.length>j?i(F,0,j):F}:"0".split(void 0,0).length?E=function(R,M){return R===void 0&&M===0?[]:a(A,this,R,M)}:E=A,[function(){function P(R,M){var D=S(this),j=N(R)?void 0:m(R,T);return j?a(j,R,D,M):a(E,c(D),R,M)}return P}(),function(P,R){var M=f(this),D=c(P),j=x(E,M,D,R,E!==A);if(j.done)return j.value;var F=k(M,RegExp),U=M.unicode,_=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),$=new F(g?"^(?:"+M.source+")":M,_),z=R===void 0?v:R>>>0;if(z===0)return[];if(D.length===0)return d($,D)===null?[D]:[];for(var G=0,H=0,J=[];H1?arguments[1]:void 0,l.length)),C=f(d);return h(l,s,s+C.length)===C}return i}()})},58713:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},41960:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},31772:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},84368:function(L,r,n){"use strict";n(12333);var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},81464:function(L,r,n){"use strict";var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},12333:function(L,r,n){"use strict";var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},76980:function(L,r,n){"use strict";n(81464);var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},54511:function(L,r,n){"use strict";var e=n(3116),a=n(47913).trim,t=n(15677);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},65884:function(L,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),N=n(16361),b=n(61855),S=n(13586),k=n(3302),h=n(54341),u=n(45418),c=n(54292),m=n(72445),i=n(8758),d=n(73970),l=n(15439),s=n(99869),C=n(60097),g=n(31024),v=n(61791),p=n(19765),V=n(8165),y=n(55119),B=n(10409),I=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),P=n(95558),R=n(15355),M=n(20614),D=n(28952),j=n(15676),F=n(4471),U=n(18539).forEach,_=A("hidden"),$="Symbol",z="prototype",G=F.set,H=F.getterFor($),J=Object[z],ae=a.Symbol,ce=ae&&ae[z],se=a.RangeError,he=a.TypeError,ye=a.QObject,Ie=p.f,pe=V.f,oe=g.f,Z=B.f,q=o([].push),ue=T("symbols"),me=T("op-symbols"),ne=T("wks"),be=!ye||!ye[z]||!ye[z].findChild,fe=function(le,Ce,de){var Ne=Ie(J,Ce);Ne&&delete J[Ce],pe(le,Ce,de),Ne&&le!==J&&pe(J,Ce,Ne)},ge=N&&S(function(){return l(pe({},"a",{get:function(){function re(){return pe(this,"a",{value:7}).a}return re}()})).a!==7})?fe:pe,ke=function(le,Ce){var de=ue[le]=l(ce);return G(de,{type:$,tag:le,description:Ce}),N||(de.description=Ce),de},ve=function(){function re(le,Ce,de){le===J&&ve(me,Ce,de),u(le);var Ne=m(Ce);return u(de),k(ue,Ne)?(de.enumerable?(k(le,_)&&le[_][Ne]&&(le[_][Ne]=!1),de=l(de,{enumerable:d(0,!1)})):(k(le,_)||pe(le,_,d(1,l(null))),le[_][Ne]=!0),ge(le,Ne,de)):pe(le,Ne,de)}return re}(),Se=function(){function re(le,Ce){u(le);var de=c(Ce),Ne=s(de).concat(Ve(de));return U(Ne,function(Ae){(!N||t(xe,de,Ae))&&ve(le,Ae,de[Ae])}),le}return re}(),we=function(){function re(le,Ce){return Ce===void 0?l(le):Se(l(le),Ce)}return re}(),xe=function(){function re(le){var Ce=m(le),de=t(Z,this,Ce);return this===J&&k(ue,Ce)&&!k(me,Ce)?!1:de||!k(this,Ce)||!k(ue,Ce)||k(this,_)&&this[_][Ce]?de:!0}return re}(),Oe=function(){function re(le,Ce){var de=c(le),Ne=m(Ce);if(!(de===J&&k(ue,Ne)&&!k(me,Ne))){var Ae=Ie(de,Ne);return Ae&&k(ue,Ne)&&!(k(de,_)&&de[_][Ne])&&(Ae.enumerable=!0),Ae}}return re}(),We=function(){function re(le){var Ce=oe(c(le)),de=[];return U(Ce,function(Ne){!k(ue,Ne)&&!k(x,Ne)&&q(de,Ne)}),de}return re}(),Ve=function(le){var Ce=le===J,de=oe(Ce?me:c(le)),Ne=[];return U(de,function(Ae){k(ue,Ae)&&(!Ce||k(J,Ae))&&q(Ne,ue[Ae])}),Ne};b||(ae=function(){function re(){if(h(ce,this))throw new he("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),Ce=E(le),de=function(){function Ne(Ae){var De=this===void 0?a:this;De===J&&t(Ne,me,Ae),k(De,_)&&k(De[_],Ce)&&(De[_][Ce]=!1);var je=d(1,Ae);try{ge(De,Ce,je)}catch(_e){if(!(_e instanceof se))throw _e;fe(De,Ce,je)}}return Ne}();return N&&be&&ge(J,Ce,{configurable:!0,set:de}),ke(Ce,le)}return re}(),ce=ae[z],I(ce,"toString",function(){function re(){return H(this).tag}return re}()),I(ae,"withoutSetter",function(re){return ke(E(re),re)}),B.f=xe,V.f=ve,y.f=Se,p.f=Oe,C.f=g.f=We,v.f=Ve,R.f=function(re){return ke(P(re),re)},N&&(w(ce,"description",{configurable:!0,get:function(){function re(){return H(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!b,sham:!b},{Symbol:ae}),U(s(ne),function(re){M(re)}),e({target:$,stat:!0,forced:!b},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!b,sham:!N},{create:we,defineProperty:ve,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!b},{getOwnPropertyNames:We}),D(),j(ae,$),x[_]=!0},64777:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),N=n(53664),b=n(54341),S=n(8758),k=n(57301),h=n(83826),u=t.Symbol,c=u&&u.prototype;if(a&&N(u)&&(!("description"in c)||u().description!==void 0)){var m={},i=function(){function p(){var V=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),y=b(c,this)?new u(V):V===void 0?u():u(V);return V===""&&(m[y]=!0),y}return p}();h(i,u),i.prototype=c,c.constructor=i;var d=String(u("description detection"))==="Symbol(description detection)",l=o(c.valueOf),s=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);k(c,"description",{configurable:!0,get:function(){function p(){var V=l(this);if(f(m,V))return"";var y=s(V),B=d?v(y,7,-1):g(y,C,"$1");return B===""?void 0:B}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},99694:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),N=n(16010),b=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function k(h){var u=o(h);if(t(b,u))return b[u];var c=a("Symbol")(u);return b[u]=c,S[c]=u,c}return k}()})},56564:function(L,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(L,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(L,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(L,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(L,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),N=n(16010),b=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{keyFor:function(){function S(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(b,k))return b[k]}return S}()})},22905:function(L,r,n){"use strict";var e=n(20614);e("match")},96311:function(L,r,n){"use strict";var e=n(20614);e("replace")},61292:function(L,r,n){"use strict";var e=n(20614);e("search")},75419:function(L,r,n){"use strict";var e=n(20614);e("species")},67638:function(L,r,n){"use strict";var e=n(20614);e("split")},7601:function(L,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(L,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(L,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(L,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),f=a.aTypedArray,N=a.exportTypedArrayMethod;N("copyWithin",function(){function b(S,k){return o(f(this),S,k,arguments.length>2?arguments[2]:void 0)}return b}())},58549:function(L,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},42774:function(L,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),N=n(72908),b=n(13586),S=e.aTypedArray,k=e.exportTypedArrayMethod,h=N("".slice),u=b(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var i=arguments.length;S(this);var d=h(o(this),0,3)==="Big"?t(m):+m;return f(a,this,d,i>1?arguments[1]:void 0,i>2?arguments[2]:void 0)}return c}(),u)},65446:function(L,r,n){"use strict";var e=n(30432),a=n(18539).filter,t=n(85710),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function N(b){var S=a(o(this),b,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},62243:function(L,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},21066:function(L,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},43059:function(L,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97363:function(L,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},35249:function(L,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(N){a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},68739:function(L,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(L,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},40353:function(L,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},33278:function(L,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},65331:function(L,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},99755:function(L,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},87975:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),N=n(95558),b=N("iterator"),S=e.Uint8Array,k=t(f.values),h=t(f.keys),u=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,i=S&&S.prototype,d=!a(function(){i[b].call([1])}),l=!!i&&i.values&&i[b]===i.values&&i.values.name==="values",s=function(){function C(){return k(c(this))}return C}();m("entries",function(){function C(){return u(c(this))}return C}(),d),m("keys",function(){function C(){return h(c(this))}return C}(),d),m("values",s,d||!l,{name:"values"}),m(b,s,d||!l,{name:"values"})},20812:function(L,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function N(b){return f(t(this),b)}return N}())},5640:function(L,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function N(b){var S=arguments.length;return a(t,o(this),S>1?[b,arguments[1]]:[b])}return N}())},47736:function(L,r,n){"use strict";var e=n(30432),a=n(18539).map,t=n(9230),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function N(b){return a(o(this),b,arguments.length>1?arguments[1]:void 0,function(S,k){return new(t(S))(k)})}return N}())},81944:function(L,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var N=0,b=arguments.length,S=new(t(this))(b);b>N;)S[N]=arguments[N++];return S}return f}(),a)},72214:function(L,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(N){var b=arguments.length;return a(t(this),N,b,b>1?arguments[1]:void 0)}return f}())},68685:function(L,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(N){var b=arguments.length;return a(t(this),N,b,b>1?arguments[1]:void 0)}return f}())},48774:function(L,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var N=this,b=a(N).length,S=o(b/2),k=0,h;k1?arguments[1]:void 0,1),g=N(s);if(i)return a(u,this,g,C);var v=this.length,p=o(g),V=0;if(p+C>v)throw new S("Wrong length");for(;Vm;)d[m]=u[m++];return d}return S}(),b)},10702:function(L,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},76622:function(L,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),N=n(30432),b=n(31574),S=n(88836),k=n(43541),h=n(27204),u=N.aTypedArray,c=N.exportTypedArrayMethod,m=e.Uint16Array,i=m&&a(m.prototype.sort),d=!!i&&!(t(function(){i(new m(2),null)})&&t(function(){i(new m(2),{})})),l=!!i&&!t(function(){if(k)return k<74;if(b)return b<67;if(S)return!0;if(h)return h<602;var C=new m(516),g=Array(516),v,p;for(v=0;v<516;v++)p=v%4,C[v]=515-v,g[v]=v-2*p+3;for(i(C,function(V,y){return(V/4|0)-(y/4|0)}),v=0;v<516;v++)if(C[v]!==g[v])return!0}),s=function(g){return function(v,p){return g!==void 0?+g(v,p)||0:p!==p?-1:v!==v?1:v===0&&p===0?1/v>0&&1/p<0?1:-1:v>p}};c("sort",function(){function C(g){return g!==void 0&&o(g),l?i(this,g):f(u(this),s(g))}return C}(),!l||d)},64408:function(L,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),f=e.aTypedArray,N=e.exportTypedArrayMethod;N("subarray",function(){function b(S,k){var h=f(this),u=h.length,c=t(S,u),m=o(h);return new m(h.buffer,h.byteOffset+c*h.BYTES_PER_ELEMENT,a((k===void 0?u:t(k,u))-c))}return b}())},22306:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),N=e.Int8Array,b=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,h=!!N&&o(function(){k.call(new N(1))}),u=o(function(){return[1,2].toLocaleString()!==new N([1,2]).toLocaleString()})||!o(function(){N.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(k,h?f(b(this)):b(this),f(arguments))}return c}(),u)},90334:function(L,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),f=t.Uint8Array,N=f&&f.prototype||{},b=[].toString,S=o([].join);a(function(){b.call({})})&&(b=function(){function h(){return S(this)}return h}());var k=N.toString!==b;e("toString",b,k)},70088:function(L,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},7284:function(L,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},25855:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97372:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()},!0)},84937:function(L,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),N=n(10609),b=n(19250),S=n(66379),k=n(4471).enforce,h=n(13586),u=n(73844),c=Object,m=Array.isArray,i=c.isExtensible,d=c.isFrozen,l=c.isSealed,s=c.freeze,C=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},V=N("WeakMap",p,b),y=V.prototype,B=t(y.set),I=function(){return e&&h(function(){var E=s([]);return B(new V,E,1),!d(E)})};if(u)if(g){v=b.getConstructor(p,"WeakMap",!0),f.enable();var w=t(y.delete),T=t(y.has),A=t(y.get);o(y,{delete:function(){function x(E){if(S(E)&&!i(E)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!i(E)){var P=k(this);return P.frozen||(P.frozen=new v),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!i(E)){var P=k(this);return P.frozen||(P.frozen=new v),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!i(E)){var R=k(this);R.frozen||(R.frozen=new v),T(this,E)?B(this,E,P):R.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else I()&&o(y,{set:function(){function x(E,P){var R;return m(E)&&(d(E)?R=s:l(E)&&(R=C)),B(this,E,P),R&&R(E),this}return x}()})},69880:function(L,r,n){"use strict";n(84937)},74764:function(L,r,n){"use strict";var e=n(10609),a=n(19250);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37167:function(L,r,n){"use strict";n(74764)},82818:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},25109:function(L,r,n){"use strict";n(82818),n(21813)},367:function(L,r,n){"use strict";var e=n(3116),a=n(60816),t=n(79474),o=n(92827);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function f(N){o(arguments.length,1),a(t(N))}return f}()})},21813:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).set,o=n(17459),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},50943:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},91851:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},8459:function(L,r,n){"use strict";n(50943),n(91851)},87454:function(L){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},47468:function(){},52355:function(){},66309:function(){},74395:function(){},86879:function(){},66782:function(){},72694:function(){},35116:function(){},47968:function(){},67041:function(){},59719:function(){},14045:function(){},81912:function(){},53152:function(){},33115:function(L,r,n){var e={"./pai_atmosphere.js":98638,"./pai_bioscan.js":56601,"./pai_directives.js":48047,"./pai_doorjack.js":4646,"./pai_main_menu.js":94648,"./pai_manifest.js":45549,"./pai_medrecords.js":53434,"./pai_messenger.js":7328,"./pai_radio.js":32036,"./pai_secrecords.js":76020,"./pai_signaler.js":11562};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=33115},75168:function(L,r,n){var e={"./pda_atmos_scan.js":29539,"./pda_janitor.js":92180,"./pda_main_menu.js":57725,"./pda_manifest.js":29978,"./pda_medical.js":20567,"./pda_messenger.js":38467,"./pda_mob_hunt.js":54291,"./pda_mule.js":31112,"./pda_nanobank.js":2817,"./pda_notes.js":66621,"./pda_power.js":96490,"./pda_secbot.js":36436,"./pda_security.js":55244,"./pda_signaler.js":23470,"./pda_status_display.js":43085,"./pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=75168},8156:function(L,r,n){var e={"./AICard":89163,"./AICard.js":89163,"./AIFixer":46817,"./AIFixer.js":46817,"./APC":20420,"./APC.js":20420,"./ATM":16822,"./ATM.js":16822,"./AccountsUplinkTerminal":90698,"./AccountsUplinkTerminal.js":90698,"./AgentCard":66895,"./AgentCard.js":66895,"./AiAirlock":26354,"./AiAirlock.js":26354,"./AirAlarm":26673,"./AirAlarm.js":26673,"./AirlockAccessController":98565,"./AirlockAccessController.js":98565,"./AirlockElectronics":76385,"./AirlockElectronics.js":76385,"./AlertModal":55666,"./AlertModal.tsx":55666,"./AppearanceChanger":16504,"./AppearanceChanger.js":16504,"./AtmosAlertConsole":77280,"./AtmosAlertConsole.js":77280,"./AtmosControl":66274,"./AtmosControl.js":66274,"./AtmosFilter":90588,"./AtmosFilter.js":90588,"./AtmosMixer":87486,"./AtmosMixer.js":87486,"./AtmosPump":46714,"./AtmosPump.js":46714,"./AtmosTankControl":66032,"./AtmosTankControl.js":66032,"./Autolathe":62343,"./Autolathe.js":62343,"./BioChipPad":13940,"./BioChipPad.js":13940,"./Biogenerator":55295,"./Biogenerator.js":55295,"./BlueSpaceArtilleryControl":92247,"./BlueSpaceArtilleryControl.js":92247,"./BluespaceTap":74594,"./BluespaceTap.js":74594,"./BodyScanner":31876,"./BodyScanner.js":31876,"./BookBinder":73440,"./BookBinder.js":73440,"./BotClean":40730,"./BotClean.js":40730,"./BotFloor":36078,"./BotFloor.js":36078,"./BotHonk":89121,"./BotHonk.js":89121,"./BotMed":39805,"./BotMed.js":39805,"./BotSecurity":35519,"./BotSecurity.js":35519,"./BrigCells":71169,"./BrigCells.js":71169,"./BrigTimer":19070,"./BrigTimer.js":19070,"./CameraConsole":59681,"./CameraConsole.js":59681,"./CameraConsole220":64487,"./CameraConsole220.js":64487,"./Canister":21348,"./Canister.js":21348,"./CardComputer":13944,"./CardComputer.js":13944,"./CargoConsole":62486,"./CargoConsole.js":62486,"./ChangelogView":86885,"./ChangelogView.js":86885,"./ChemDispenser":56975,"./ChemDispenser.js":56975,"./ChemHeater":48734,"./ChemHeater.js":48734,"./ChemMaster":35918,"./ChemMaster.js":35918,"./CloningConsole":8573,"./CloningConsole.js":8573,"./CloningPod":58378,"./CloningPod.js":58378,"./ColourMatrixTester":14283,"./ColourMatrixTester.js":14283,"./CommunicationsComputer":98577,"./CommunicationsComputer.js":98577,"./CompostBin":70611,"./CompostBin.js":70611,"./Contractor":73744,"./Contractor.js":73744,"./ConveyorSwitch":57392,"./ConveyorSwitch.js":57392,"./CrewMonitor":91413,"./CrewMonitor.js":91413,"./Cryo":55104,"./Cryo.js":55104,"./CryopodConsole":1763,"./CryopodConsole.js":1763,"./DNAModifier":69055,"./DNAModifier.js":69055,"./DestinationTagger":94406,"./DestinationTagger.js":94406,"./DisposalBin":17585,"./DisposalBin.js":17585,"./DnaVault":64636,"./DnaVault.js":64636,"./DroneConsole":13015,"./DroneConsole.js":13015,"./EFTPOS":97673,"./EFTPOS.js":97673,"./ERTManager":29206,"./ERTManager.js":29206,"./EconomyManager":77877,"./EconomyManager.js":77877,"./Electropack":10707,"./Electropack.js":10707,"./EmotePanel":85307,"./EmotePanel.js":85307,"./EvolutionMenu":52640,"./EvolutionMenu.js":52640,"./ExosuitFabricator":70672,"./ExosuitFabricator.js":70672,"./ExperimentConsole":25627,"./ExperimentConsole.js":25627,"./ExternalAirlockController":14172,"./ExternalAirlockController.js":14172,"./FaxMachine":61893,"./FaxMachine.js":61893,"./FilingCabinet":80031,"./FilingCabinet.js":80031,"./FloorPainter":39552,"./FloorPainter.js":39552,"./GPS":5090,"./GPS.js":5090,"./GeneModder":1055,"./GeneModder.js":1055,"./GenericCrewManifest":14232,"./GenericCrewManifest.js":14232,"./GhostHudPanel":86268,"./GhostHudPanel.js":86268,"./GlandDispenser":8977,"./GlandDispenser.js":8977,"./GravityGen":70309,"./GravityGen.js":70309,"./GuestPass":64769,"./GuestPass.js":64769,"./HandheldChemDispenser":12219,"./HandheldChemDispenser.js":12219,"./HealthSensor":53917,"./HealthSensor.js":53917,"./Holodeck":93116,"./Holodeck.js":93116,"./Instrument":77209,"./Instrument.js":77209,"./Jukebox":28847,"./Jukebox.tsx":28847,"./KeycardAuth":64261,"./KeycardAuth.js":64261,"./KitchenMachine":34898,"./KitchenMachine.js":34898,"./LawManager":52564,"./LawManager.js":52564,"./LibraryComputer":55499,"./LibraryComputer.js":55499,"./LibraryManager":92682,"./LibraryManager.js":92682,"./ListInputModal":68e3,"./ListInputModal.tsx":68e3,"./MODsuit":75965,"./MODsuit.js":75965,"./MagnetController":86322,"./MagnetController.js":86322,"./MechBayConsole":54374,"./MechBayConsole.js":54374,"./MechaControlConsole":14823,"./MechaControlConsole.js":14823,"./MedicalRecords":16189,"./MedicalRecords.js":16189,"./MerchVendor":44482,"./MerchVendor.js":44482,"./MiningVendor":53551,"./MiningVendor.js":53551,"./ModpacksList":71545,"./ModpacksList.js":71545,"./NTRecruiter":61100,"./NTRecruiter.js":61100,"./Newscaster":6802,"./Newscaster.js":6802,"./NuclearBomb":64639,"./NuclearBomb.js":64639,"./NumberInputModal":45523,"./NumberInputModal.tsx":45523,"./OperatingComputer":48314,"./OperatingComputer.js":48314,"./Orbit":87511,"./Orbit.js":87511,"./OreRedemption":54528,"./OreRedemption.js":54528,"./PAI":55686,"./PAI.js":55686,"./PDA":58717,"./PDA.js":58717,"./Pacman":78062,"./Pacman.js":78062,"./ParticleAccelerator":65823,"./ParticleAccelerator.js":65823,"./PdaPainter":67572,"./PdaPainter.js":67572,"./PersonalCrafting":12456,"./PersonalCrafting.js":12456,"./Photocopier":72143,"./Photocopier.js":72143,"./Photocopier220":82020,"./Photocopier220.js":82020,"./PoolController":47051,"./PoolController.js":47051,"./PortablePump":5424,"./PortablePump.js":5424,"./PortableScrubber":70673,"./PortableScrubber.js":70673,"./PortableTurret":22015,"./PortableTurret.js":22015,"./PowerMonitor":75199,"./PowerMonitor.js":75199,"./PrisonerImplantManager":15164,"./PrisonerImplantManager.js":15164,"./PrisonerShuttleConsole":99646,"./PrisonerShuttleConsole.js":99646,"./RCD":82443,"./RCD.js":82443,"./RPD":61566,"./RPD.js":61566,"./Radio":24618,"./Radio.js":24618,"./ReagentGrinder":85183,"./ReagentGrinder.js":85183,"./RemoteSignaler":94890,"./RemoteSignaler.js":94890,"./RequestConsole":6301,"./RequestConsole.js":6301,"./RndConsole":51939,"./RndConsole.js":51939,"./RndConsoleComponents":63752,"./RndConsoleComponents/":63752,"./RndConsoleComponents/CurrentLevels":50239,"./RndConsoleComponents/CurrentLevels.js":50239,"./RndConsoleComponents/DataDiskMenu":24183,"./RndConsoleComponents/DataDiskMenu.js":24183,"./RndConsoleComponents/DeconstructionMenu":72751,"./RndConsoleComponents/DeconstructionMenu.js":72751,"./RndConsoleComponents/LatheCategory":51802,"./RndConsoleComponents/LatheCategory.js":51802,"./RndConsoleComponents/LatheChemicalStorage":47349,"./RndConsoleComponents/LatheChemicalStorage.js":47349,"./RndConsoleComponents/LatheMainMenu":73492,"./RndConsoleComponents/LatheMainMenu.js":73492,"./RndConsoleComponents/LatheMaterialStorage":87115,"./RndConsoleComponents/LatheMaterialStorage.js":87115,"./RndConsoleComponents/LatheMaterials":2345,"./RndConsoleComponents/LatheMaterials.js":2345,"./RndConsoleComponents/LatheMenu":45805,"./RndConsoleComponents/LatheMenu.js":45805,"./RndConsoleComponents/LatheSearch":92497,"./RndConsoleComponents/LatheSearch.js":92497,"./RndConsoleComponents/MainMenu":25242,"./RndConsoleComponents/MainMenu.js":25242,"./RndConsoleComponents/RndNavButton":29933,"./RndConsoleComponents/RndNavButton.js":29933,"./RndConsoleComponents/RndNavbar":59959,"./RndConsoleComponents/RndNavbar.js":59959,"./RndConsoleComponents/RndRoute":28078,"./RndConsoleComponents/RndRoute.js":28078,"./RndConsoleComponents/SettingsMenu":59991,"./RndConsoleComponents/SettingsMenu.js":59991,"./RndConsoleComponents/index":63752,"./RndConsoleComponents/index.js":63752,"./RobotSelfDiagnosis":73407,"./RobotSelfDiagnosis.js":73407,"./RoboticsControlConsole":48356,"./RoboticsControlConsole.js":48356,"./Safe":33122,"./Safe.js":33122,"./SatelliteControl":46748,"./SatelliteControl.js":46748,"./SecureStorage":46504,"./SecureStorage.js":46504,"./SecurityRecords":54529,"./SecurityRecords.js":54529,"./SeedExtractor":79315,"./SeedExtractor.js":79315,"./ShuttleConsole":58578,"./ShuttleConsole.js":58578,"./ShuttleManipulator":11154,"./ShuttleManipulator.js":11154,"./Sleeper":80699,"./Sleeper.js":80699,"./SlotMachine":42439,"./SlotMachine.js":42439,"./Smartfridge":280,"./Smartfridge.js":280,"./Smes":47606,"./Smes.js":47606,"./SolarControl":66527,"./SolarControl.js":66527,"./SpawnersMenu":27478,"./SpawnersMenu.js":27478,"./SpecMenu":15565,"./SpecMenu.js":15565,"./StationAlertConsole":31752,"./StationAlertConsole.js":31752,"./StationTraitsPanel":64323,"./StationTraitsPanel.tsx":64323,"./SuitStorage":57633,"./SuitStorage.js":57633,"./SupermatterMonitor":72217,"./SupermatterMonitor.js":72217,"./SyndicateComputerSimple":55055,"./SyndicateComputerSimple.js":55055,"./TEG":61225,"./TEG.js":61225,"./TTSSeedsExplorer":61424,"./TTSSeedsExplorer.tsx":61424,"./TachyonArray":97552,"./TachyonArray.js":97552,"./Tank":33291,"./Tank.js":33291,"./TankDispenser":75480,"./TankDispenser.js":75480,"./TcommsCore":62291,"./TcommsCore.js":62291,"./TcommsRelay":82905,"./TcommsRelay.js":82905,"./Teleporter":87692,"./Teleporter.js":87692,"./TempGun":40759,"./TempGun.js":40759,"./TextInputModal":32369,"./TextInputModal.tsx":32369,"./ThermoMachine":82296,"./ThermoMachine.js":82296,"./TransferValve":68488,"./TransferValve.js":68488,"./TurbineComputer":26868,"./TurbineComputer.js":26868,"./Uplink":30778,"./Uplink.js":30778,"./Vending":7307,"./Vending.js":7307,"./VolumeMixer":25485,"./VolumeMixer.js":25485,"./VotePanel":26564,"./VotePanel.js":26564,"./Wires":496,"./Wires.js":496,"./WizardApprenticeContract":28919,"./WizardApprenticeContract.js":28919,"./common/AccessList":14635,"./common/AccessList.js":14635,"./common/AtmosScan":29136,"./common/AtmosScan.js":29136,"./common/BeakerContents":83326,"./common/BeakerContents.js":83326,"./common/BotStatus":86041,"./common/BotStatus.js":86041,"./common/ComplexModal":22677,"./common/ComplexModal.js":22677,"./common/CrewManifest":692,"./common/CrewManifest.js":692,"./common/InputButtons":98658,"./common/InputButtons.tsx":98658,"./common/InterfaceLockNoticeBox":29723,"./common/InterfaceLockNoticeBox.js":29723,"./common/Loader":2146,"./common/Loader.tsx":2146,"./common/LoginInfo":51185,"./common/LoginInfo.js":51185,"./common/LoginScreen":69774,"./common/LoginScreen.js":69774,"./common/Operating":48154,"./common/Operating.js":48154,"./common/Signaler":92149,"./common/Signaler.js":92149,"./common/SimpleRecords":79969,"./common/SimpleRecords.js":79969,"./common/TemporaryNotice":76519,"./common/TemporaryNotice.js":76519,"./pai/pai_atmosphere":98638,"./pai/pai_atmosphere.js":98638,"./pai/pai_bioscan":56601,"./pai/pai_bioscan.js":56601,"./pai/pai_directives":48047,"./pai/pai_directives.js":48047,"./pai/pai_doorjack":4646,"./pai/pai_doorjack.js":4646,"./pai/pai_main_menu":94648,"./pai/pai_main_menu.js":94648,"./pai/pai_manifest":45549,"./pai/pai_manifest.js":45549,"./pai/pai_medrecords":53434,"./pai/pai_medrecords.js":53434,"./pai/pai_messenger":7328,"./pai/pai_messenger.js":7328,"./pai/pai_radio":32036,"./pai/pai_radio.js":32036,"./pai/pai_secrecords":76020,"./pai/pai_secrecords.js":76020,"./pai/pai_signaler":11562,"./pai/pai_signaler.js":11562,"./pda/pda_atmos_scan":29539,"./pda/pda_atmos_scan.js":29539,"./pda/pda_janitor":92180,"./pda/pda_janitor.js":92180,"./pda/pda_main_menu":57725,"./pda/pda_main_menu.js":57725,"./pda/pda_manifest":29978,"./pda/pda_manifest.js":29978,"./pda/pda_medical":20567,"./pda/pda_medical.js":20567,"./pda/pda_messenger":38467,"./pda/pda_messenger.js":38467,"./pda/pda_mob_hunt":54291,"./pda/pda_mob_hunt.js":54291,"./pda/pda_mule":31112,"./pda/pda_mule.js":31112,"./pda/pda_nanobank":2817,"./pda/pda_nanobank.js":2817,"./pda/pda_notes":66621,"./pda/pda_notes.js":66621,"./pda/pda_power":96490,"./pda/pda_power.js":96490,"./pda/pda_secbot":36436,"./pda/pda_secbot.js":36436,"./pda/pda_security":55244,"./pda/pda_security.js":55244,"./pda/pda_signaler":23470,"./pda/pda_signaler.js":23470,"./pda/pda_status_display":43085,"./pda/pda_status_display.js":43085,"./pda/pda_supplyrecords":26948,"./pda/pda_supplyrecords.js":26948};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=8156},69321:function(L,r,n){var e={"./Blink.stories.js":90969,"./BlockQuote.stories.js":22030,"./Box.stories.js":35286,"./Button.stories.js":38465,"./ByondUi.stories.js":16748,"./Collapsible.stories.js":76475,"./Flex.stories.js":28994,"./Input.stories.js":25462,"./Popper.stories.js":97028,"./ProgressBar.stories.js":85266,"./Stack.stories.js":36216,"./Storage.stories.js":22338,"./Tabs.stories.js":88446,"./Themes.stories.js":2938,"./Tooltip.stories.js":54212};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=69321},79474:function(L,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(L,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(L,r,n){"use strict";var e=n(62600),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(L,r,n){"use strict";var e=n(95558),a=n(15439),t=n(8165).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),L.exports=function(N){f[o][N]=!0}},47158:function(L,r,n){"use strict";var e=n(13300).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(L,r,n){"use strict";var e=n(54341),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(L,r,n){"use strict";var e=n(66379),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(L,r,n){"use strict";var e=n(13586);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(L,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),f=n(66379),N=n(3302),b=n(48615),S=n(36787),y=n(21650),h=n(60855),l=n(57301),c=n(54341),m=n(56379),i=n(91420),d=n(95558),u=n(76246),s=n(4471),C=s.enforce,g=s.get,v=t.Int8Array,p=v&&v.prototype,V=t.Uint8ClampedArray,k=V&&V.prototype,B=v&&m(v),I=p&&m(p),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=u("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!i&&b(t.opera)!=="Opera",R=!1,M,D,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},_=function(){function ce(se){if(!f(se))return!1;var he=b(se);return he==="DataView"||N(F,he)||N(U,he)}return ce}(),$=function ce(se){var he=m(se);if(f(he)){var ye=g(he);return ye&&N(ye,E)?ye[E]:ce(he)}},z=function(se){if(!f(se))return!1;var he=b(se);return N(F,he)||N(U,he)},G=function(se){if(z(se))return se;throw new T("Target is not a typed array")},H=function(se){if(o(se)&&(!i||c(B,se)))return se;throw new T(S(se)+" is not a typed array constructor")},J=function(se,he,ye,Ie){if(a){if(ye)for(var pe in F){var oe=t[pe];if(oe&&N(oe.prototype,se))try{delete oe.prototype[se]}catch(Z){try{oe.prototype[se]=he}catch(q){}}}(!I[se]||ye)&&h(I,se,ye?he:P&&p[se]||he,Ie)}},ae=function(se,he,ye){var Ie,pe;if(a){if(i){if(ye){for(Ie in F)if(pe=t[Ie],pe&&N(pe,se))try{delete pe[se]}catch(oe){}}if(!B[se]||ye)try{return h(B,se,ye?he:P&&B[se]||he)}catch(oe){}else return}for(Ie in F)pe=t[Ie],pe&&(!pe[se]||ye)&&h(pe,se,he)}};for(M in F)D=t[M],j=D&&D.prototype,j?C(j)[E]=D:P=!1;for(M in U)D=t[M],j=D&&D.prototype,j&&(C(j)[E]=D);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function ce(){throw new T("Incorrect invocation")}return ce}(),P))for(M in F)t[M]&&i(t[M],B);if((!P||!I||I===w)&&(I=B.prototype,P))for(M in F)t[M]&&i(t[M].prototype,I);if(P&&m(k)!==I&&i(k,I),a&&!N(I,A)){R=!0,l(I,A,{configurable:!0,get:function(){function ce(){return f(this)?this[x]:void 0}return ce}()});for(M in F)t[M]&&y(t[M],x,M)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&x,aTypedArray:G,aTypedArrayConstructor:H,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:$,isView:_,isTypedArray:z,TypedArray:B,TypedArrayPrototype:I}},31284:function(L,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),f=n(15340),N=n(21650),b=n(57301),S=n(26148),y=n(13586),h=n(14434),l=n(84501),c=n(74369),m=n(28968),i=n(48705),d=n(48350),u=n(56379),s=n(91420),C=n(39948),g=n(31170),v=n(43405),p=n(83826),V=n(15676),k=n(4471),B=f.PROPER,I=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=k.getterFor(w),R=k.getterFor(T),M=k.set,D=e[w],j=D,F=j&&j[A],U=e[T],_=U&&U[A],$=Object.prototype,z=e.Array,G=e.RangeError,H=a(C),J=a([].reverse),ae=d.pack,ce=d.unpack,se=function(ge){return[ge&255]},he=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Ie=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},pe=function(ge){return ae(i(ge),23,4)},oe=function(ge){return ae(ge,52,8)},Z=function(ge,ke,ve){b(ge[A],ke,{configurable:!0,get:function(){function Se(){return ve(this)[ke]}return Se}()})},q=function(ge,ke,ve,Se){var we=R(ge),xe=m(ve),Oe=!!Se;if(xe+ke>we.byteLength)throw new G(E);var We=we.bytes,Ve=xe+we.byteOffset,re=g(We,Ve,Ve+ke);return Oe?re:J(re)},ue=function(ge,ke,ve,Se,we,xe){var Oe=R(ge),We=m(ve),Ve=Se(+we),re=!!xe;if(We+ke>Oe.byteLength)throw new G(E);for(var le=Oe.bytes,Ce=We+Oe.byteOffset,de=0;dewe)throw new G("Wrong offset");if(ve=ve===void 0?we-xe:c(ve),xe+ve>we)throw new G(x);M(this,{type:T,buffer:ge,byteLength:ve,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=ve,this.byteOffset=xe)}return fe}(),_=U[A],t&&(Z(j,"byteLength",P),Z(U,"buffer",R),Z(U,"byteLength",R),Z(U,"byteOffset",R)),S(_,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return ce(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return ce(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setUint8:function(){function fe(ge,ke){ue(this,1,ge,se,ke)}return fe}(),setInt16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){ue(this,4,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){ue(this,8,ge,oe,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&D.name!==w;!y(function(){D(1)})||!y(function(){new D(-1)})||y(function(){return new D,new D(1.5),new D(NaN),D.length!==1||me&&!I})?(j=function(){function fe(ge){return h(this,F),v(new D(m(ge)),this,j)}return fe}(),j[A]=F,F.constructor=j,p(j,D)):me&&I&&N(D,"name",w),s&&u(_)!==$&&s(_,$);var ne=new U(new j(2)),be=a(_.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),(ne.getInt8(0)||!ne.getInt8(1))&&S(_,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}V(j,w),V(U,T),L.exports={ArrayBuffer:j,DataView:U}},28332:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),f=Math.min;L.exports=[].copyWithin||function(){function N(b,S){var y=e(this),h=t(y),l=a(b,h),c=a(S,h),m=arguments.length>2?arguments[2]:void 0,i=f((m===void 0?h:a(m,h))-c,h-l),d=1;for(c0;)c in y?y[l]=y[c]:o(y,l),l+=d,c+=d;return y}return N}()},39948:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);L.exports=function(){function o(f){for(var N=e(this),b=t(N),S=arguments.length,y=a(S>1?arguments[1]:void 0,b),h=S>2?arguments[2]:void 0,l=h===void 0?b:a(h,b);l>y;)N[y++]=f;return N}return o}()},16856:function(L,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");L.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(L,r,n){"use strict";var e=n(83207);L.exports=function(a,t,o){for(var f=0,N=arguments.length>2?o:e(t),b=new a(N);N>f;)b[f]=t[f++];return b}},45056:function(L,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),f=n(48594),N=n(49632),b=n(83207),S=n(80750),y=n(45731),h=n(52984),l=Array;L.exports=function(){function c(m){var i=t(m),d=N(this),u=arguments.length,s=u>1?arguments[1]:void 0,C=s!==void 0;C&&(s=e(s,u>2?arguments[2]:void 0));var g=h(i),v=0,p,V,k,B,I,w;if(g&&!(this===l&&f(g)))for(B=y(i,g),I=B.next,V=d?new this:[];!(k=a(I,B)).done;v++)w=C?o(B,s,[k.value,v],!0):k.value,S(V,v,w);else for(p=b(i),V=d?new this(p):l(p);p>v;v++)w=C?s(i[v],v):i[v],S(V,v,w);return V.length=v,V}return c}()},33483:function(L,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(N){return function(b,S,y){var h=e(b),l=t(h),c=a(y,l),m;if(N&&S!==S){for(;l>c;)if(m=h[c++],m!==m)return!0}else for(;l>c;c++)if((N||c in h)&&h[c]===S)return N||c||0;return!N&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},18539:function(L,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),f=n(83207),N=n(51582),b=a([].push),S=function(h){var l=h===1,c=h===2,m=h===3,i=h===4,d=h===6,u=h===7,s=h===5||d;return function(C,g,v,p){for(var V=o(C),k=t(V),B=f(k),I=e(g,v),w=0,T=p||N,A=l?T(C,B):c||u?T(C,0):void 0,x,E;B>w;w++)if((s||w in k)&&(x=k[w],E=I(x,w,V),h))if(l)A[w]=E;else if(E)switch(h){case 3:return!0;case 5:return x;case 6:return w;case 2:b(A,x)}else switch(h){case 4:return!1;case 7:b(A,x)}return d?-1:m||i?i:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16400:function(L,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),f=n(56127),N=Math.min,b=[].lastIndexOf,S=!!b&&1/[1].lastIndexOf(1,-0)<0,y=f("lastIndexOf"),h=S||!y;L.exports=h?function(){function l(c){if(S)return e(b,this,arguments)||0;var m=a(this),i=o(m),d=i-1;for(arguments.length>1&&(d=N(d,t(arguments[1]))),d<0&&(d=i+d);d>=0;d--)if(d in m&&m[d]===c)return d||0;return-1}return l}():b},34924:function(L,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");L.exports=function(f){return t>=51||!e(function(){var N=[],b=N.constructor={};return b[o]=function(){return{foo:1}},N[f](Boolean).foo!==1})}},56127:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(L,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),f=TypeError,N=function(S){return function(y,h,l,c){var m=a(y),i=t(m),d=o(m);e(h);var u=S?d-1:0,s=S?-1:1;if(l<2)for(;;){if(u in i){c=i[u],u+=s;break}if(u+=s,S?u<0:d<=u)throw new f("Reduce of empty array with no initial value")}for(;S?u>=0:d>u;u+=s)u in i&&(c=h(c,i[u],u,m));return c}};L.exports={left:N(!1),right:N(!0)}},10779:function(L,r,n){"use strict";var e=n(16361),a=n(59882),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();L.exports=f?function(N,b){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=b}:function(N,b){return N.length=b}},31170:function(L,r,n){"use strict";var e=n(72908);L.exports=e([].slice)},91183:function(L,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(f,N){var b=f.length;if(b<8)for(var S=1,y,h;S0;)f[h]=f[--h];h!==S++&&(f[h]=y)}else for(var l=a(b/2),c=o(e(f,0,l),N),m=o(e(f,l),N),i=c.length,d=m.length,u=0,s=0;u1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(V,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(V,"size",{configurable:!0,get:function(){function w(){return k(this).size}return w}()}),p}return u}(),setStrong:function(){function u(s,C,g){var v=C+" Iterator",p=d(C),V=d(v);S(s,C,function(k,B){i(this,{type:v,target:k,state:p(k),kind:B,last:void 0})},function(){for(var k=V(this),B=k.kind,I=k.last;I&&I.removed;)I=I.previous;return!k.target||!(k.last=I=I?I.next:k.state.first)?(k.target=void 0,y(void 0,!0)):y(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),h(C)}return u}()}},19250:function(L,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),f=n(45418),N=n(62695),b=n(66379),S=n(20453),y=n(18539),h=n(3302),l=n(4471),c=l.set,m=l.getterFor,i=y.find,d=y.findIndex,u=e([].splice),s=0,C=function(V){return V.frozen||(V.frozen=new g)},g=function(){this.entries=[]},v=function(V,k){return i(V.entries,function(B){return B[0]===k})};g.prototype={get:function(){function p(V){var k=v(this,V);if(k)return k[1]}return p}(),has:function(){function p(V){return!!v(this,V)}return p}(),set:function(){function p(V,k){var B=v(this,V);B?B[1]=k:this.entries.push([V,k])}return p}(),delete:function(){function p(V){var k=d(this.entries,function(B){return B[0]===V});return~k&&u(this.entries,k,1),!!~k}return p}()},L.exports={getConstructor:function(){function p(V,k,B,I){var w=V(function(E,P){o(E,T),c(E,{type:k,id:s++,frozen:void 0}),N(P)||S(P,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(k),x=function(){function E(P,R,M){var D=A(P),j=t(f(R),!0);return j===!0?C(D).set(R,M):j[D.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var R=A(this);if(!b(P))return!1;var M=t(P);return M===!0?C(R).delete(P):M&&h(M,R.id)&&delete M[R.id]}return E}(),has:function(){function E(P){var R=A(this);if(!b(P))return!1;var M=t(P);return M===!0?C(R).has(P):M&&h(M,R.id)}return E}()}),a(T,B?{get:function(){function E(P){var R=A(this);if(b(P)){var M=t(P);return M===!0?C(R).get(P):M?M[R.id]:void 0}}return E}(),set:function(){function E(P,R){return x(this,P,R)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),w}return p}()}},10609:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),f=n(60855),N=n(66526),b=n(20453),S=n(14434),y=n(53664),h=n(62695),l=n(66379),c=n(13586),m=n(1608),i=n(15676),d=n(43405);L.exports=function(u,s,C){var g=u.indexOf("Map")!==-1,v=u.indexOf("Weak")!==-1,p=g?"set":"add",V=a[u],k=V&&V.prototype,B=V,I={},w=function(D){var j=t(k[D]);f(k,D,D==="add"?function(){function F(U){return j(this,U===0?0:U),this}return F}():D==="delete"?function(F){return v&&!l(F)?!1:j(this,F===0?0:F)}:D==="get"?function(){function F(U){return v&&!l(U)?void 0:j(this,U===0?0:U)}return F}():D==="has"?function(){function F(U){return v&&!l(U)?!1:j(this,U===0?0:U)}return F}():function(){function F(U,_){return j(this,U===0?0:U,_),this}return F}())},T=o(u,!y(V)||!(v||k.forEach&&!c(function(){new V().entries().next()})));if(T)B=C.getConstructor(s,u,g,p),N.enable();else if(o(u,!0)){var A=new B,x=A[p](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=m(function(M){new V(M)}),R=!v&&c(function(){for(var M=new V,D=5;D--;)M[p](D,D);return!M.has(-0)});P||(B=s(function(M,D){S(M,k);var j=d(new V,M,B);return h(D)||b(D,j[p],{that:j,AS_ENTRIES:g}),j}),B.prototype=k,k.constructor=B),(E||R)&&(w("delete"),w("has"),g&&w("get")),(R||x)&&w(p),v&&k.clear&&delete k.clear}return I[u]=B,e({global:!0,constructor:!0,forced:B!==V},I),i(B,u),v||C.setStrong(B,u,g),B}},83826:function(L,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);L.exports=function(f,N,b){for(var S=a(N),y=o.f,h=t.f,l=0;l"+h+""}},32214:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},21650:function(L,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);L.exports=e?function(o,f,N){return a.f(o,f,t(1,N))}:function(o,f,N){return o[f]=N,o}},73970:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(L,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);L.exports=function(o,f,N){var b=e(f);b in o?a.f(o,b,t(0,N)):o[b]=N}},20228:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,f=isFinite,N=Math.abs,b=Date.prototype,S=b.toISOString,y=e(b.getTime),h=e(b.getUTCDate),l=e(b.getUTCFullYear),c=e(b.getUTCHours),m=e(b.getUTCMilliseconds),i=e(b.getUTCMinutes),d=e(b.getUTCMonth),u=e(b.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function s(){if(!f(y(this)))throw new o("Invalid time value");var C=this,g=l(C),v=m(C),p=g<0?"-":g>9999?"+":"";return p+t(N(g),p?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(h(C),2,0)+"T"+t(c(C),2,0)+":"+t(i(C),2,0)+":"+t(u(C),2,0)+"."+t(v,3,0)+"Z"}return s}():S},81603:function(L,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},57301:function(L,r,n){"use strict";var e=n(40773),a=n(8165);L.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},60855:function(L,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);L.exports=function(f,N,b,S){S||(S={});var y=S.enumerable,h=S.name!==void 0?S.name:N;if(e(b)&&t(b,h,S),S.global)y?f[N]=b:o(N,b);else{try{S.unsafe?f[N]&&(y=!0):delete f[N]}catch(l){}y?f[N]=b:a.f(f,N,{value:b,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},26148:function(L,r,n){"use strict";var e=n(60855);L.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},17553:function(L,r,n){"use strict";var e=n(26856),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},81245:function(L,r,n){"use strict";var e=n(36787),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(L,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(f){return o?t.createElement(f):{}}},54579:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(L,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},52460:function(L,r,n){"use strict";var e=n(53437),a=n(86727);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(L,r,n){"use strict";var e=n(74247);L.exports=/MSIE|Trident/.test(e)},79034:function(L,r,n){"use strict";var e=n(74247);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(L,r,n){"use strict";var e=n(74247);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(L,r,n){"use strict";var e=n(26856),a=n(8649);L.exports=a(e.process)==="process"},71979:function(L,r,n){"use strict";var e=n(74247);L.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(L,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,N=f&&f.v8,b,S;N&&(b=N.split("."),S=b[0]>0&&b[0]<4?1:+(b[0]+b[1])),!S&&a&&(b=a.match(/Edge\/(\d+)/),(!b||b[1]>=74)&&(b=a.match(/Chrome\/(\d+)/),b&&(S=+b[1]))),L.exports=S},27204:function(L,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},38139:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(L,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),f=n(17553),N=n(83826),b=n(23620);L.exports=function(S,y){var h=S.target,l=S.global,c=S.stat,m,i,d,u,s,C;if(l?i=e:c?i=e[h]||f(h,{}):i=(e[h]||{}).prototype,i)for(d in y){if(s=y[d],S.dontCallGetSet?(C=a(i,d),u=C&&C.value):u=i[d],m=b(l?d:h+(c?".":"#")+d,S.forced),!m&&u!==void 0){if(typeof s==typeof u)continue;N(s,u)}(S.sham||u&&u.sham)&&t(s,"sham",!0),o(i,d,s,S)}}},13586:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(L,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),f=n(95558),N=n(21650),b=f("species"),S=RegExp.prototype;L.exports=function(y,h,l,c){var m=f(y),i=!o(function(){var C={};return C[m]=function(){return 7},""[y](C)!==7}),d=i&&!o(function(){var C=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[b]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return C=!0,null},g[m](""),!C});if(!i||!d||l){var u=e(/./[m]),s=h(m,""[y],function(C,g,v,p,V){var k=e(C),B=g.exec;return B===t||B===S.exec?i&&!V?{done:!0,value:u(g,v,p)}:{done:!0,value:k(v,g,p)}:{done:!1}});a(String.prototype,y,s[0]),a(S,m,s[1])}c&&N(S[m],"sham",!0)}},73132:function(L,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),f=function N(b,S,y,h,l,c,m,i){for(var d=l,u=0,s=m?o(m,i):!1,C,g;u0&&e(C)?(g=a(C),d=N(b,S,C,g,d,c-1)-1):(t(d+1),b[d]=C),d++),u++;return d};L.exports=f},58199:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(L,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(L,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);L.exports=function(f,N){return a(f),N===void 0?f:t?o(f,N):function(){return f.apply(N,arguments)}}},86678:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(L,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),f=n(31170),N=n(86678),b=Function,S=e([].concat),y=e([].join),h={},l=function(m,i,d){if(!o(h,i)){for(var u=[],s=0;s]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(y,h,l,c,m,i){var d=l+y.length,u=c.length,s=S;return m!==void 0&&(m=a(m),s=b),f(i,s,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return N(h,0,l);case"'":return N(h,d);case"<":v=m[N(g,1,-1)];break;default:var p=+g;if(p===0)return C;if(p>u){var V=t(p/10);return V===0?C:V<=u?c[V-1]===void 0?o(g,1):c[V-1]+o(g,1):C}v=c[p-1]}return v===void 0?"":v})}},26856:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},3302:function(L,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(f,N){return t(a(f),N)}return o}()},51653:function(L){"use strict";L.exports={}},66481:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(L,r,n){"use strict";var e=n(22070);L.exports=e("document","documentElement")},16109:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,y,h){var l=r(h),c=h*8-y-1,m=(1<>1,d=y===23?e(2,-24)-e(2,-77):0,u=S<0||S===0&&1/S<0?1:0,s=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=m):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+i>=1?S+=d/v:S+=d*e(2,1-i),S*v>=2&&(C++,v/=2),C+i>=m?(g=0,C=m):C+i>=1?(g=(S*v-1)*e(2,y),C+=i):(g=S*e(2,i-1)*e(2,y),C=0));y>=8;)l[s++]=g&255,g/=256,y-=8;for(C=C<0;)l[s++]=C&255,C/=256,c-=8;return l[--s]|=u*128,l},N=function(S,y){var h=S.length,l=h*8-y-1,c=(1<>1,i=l-7,d=h-1,u=S[d--],s=u&127,C;for(u>>=7;i>0;)s=s*256+S[d--],i-=8;for(C=s&(1<<-i)-1,s>>=-i,i+=y;i>0;)C=C*256+S[d--],i-=8;if(s===0)s=1-m;else{if(s===c)return C?NaN:u?-1/0:1/0;C+=e(2,y),s-=m}return(u?-1:1)*C*e(2,s-y)};L.exports={pack:f,unpack:N}},80689:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,f=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?f(N,""):o(N)}:o},43405:function(L,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);L.exports=function(o,f,N){var b,S;return t&&e(b=f.constructor)&&b!==N&&a(S=b.prototype)&&S!==N.prototype&&t(o,S),o}},92004:function(L,r,n){"use strict";var e=n(72908),a=n(53664),t=n(70192),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),L.exports=t.inspectSource},66526:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),f=n(3302),N=n(8165).f,b=n(60097),S=n(31024),y=n(58221),h=n(76246),l=n(58199),c=!1,m=h("meta"),i=0,d=function(V){N(V,m,{value:{objectID:"O"+i++,weakData:{}}})},u=function(V,k){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!f(V,m)){if(!y(V))return"F";if(!k)return"E";d(V)}return V[m].objectID},s=function(V,k){if(!f(V,m)){if(!y(V))return!0;if(!k)return!1;d(V)}return V[m].weakData},C=function(V){return l&&c&&y(V)&&!f(V,m)&&d(V),V},g=function(){v.enable=function(){},c=!0;var V=b.f,k=a([].splice),B={};B[m]=1,V(B).length&&(b.f=function(I){for(var w=V(I),T=0,A=w.length;TI;I++)if(T=P(i[I]),T&&b(m,T))return T;return new c(!1)}k=S(i,B)}for(A=g?i.next:k.next;!(x=a(A,k)).done;){try{T=P(x.value)}catch(R){h(k,"throw",R)}if(typeof T=="object"&&T&&b(m,T))return T}return new c(!1)}},65169:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);L.exports=function(o,f,N){var b,S;a(o);try{if(b=t(o,"return"),!b){if(f==="throw")throw N;return N}b=e(b,o)}catch(y){S=!0,b=y}if(f==="throw")throw N;if(S)throw b;return a(b),N}},41903:function(L,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),f=n(47730),N=function(){return this};L.exports=function(b,S,y,h){var l=S+" Iterator";return b.prototype=a(e,{next:t(+!h,y)}),o(b,l,!1,!0),f[l]=N,b}},21436:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),f=n(53664),N=n(41903),b=n(56379),S=n(91420),y=n(15676),h=n(21650),l=n(60855),c=n(95558),m=n(47730),i=n(83665),d=o.PROPER,u=o.CONFIGURABLE,s=i.IteratorPrototype,C=i.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",p="values",V="entries",k=function(){return this};L.exports=function(B,I,w,T,A,x,E){N(w,I,T);var P=function(H){if(H===A&&F)return F;if(!C&&H&&H in D)return D[H];switch(H){case v:return function(){function J(){return new w(this,H)}return J}();case p:return function(){function J(){return new w(this,H)}return J}();case V:return function(){function J(){return new w(this,H)}return J}()}return function(){return new w(this)}},R=I+" Iterator",M=!1,D=B.prototype,j=D[g]||D["@@iterator"]||A&&D[A],F=!C&&j||P(A),U=I==="Array"&&D.entries||j,_,$,z;if(U&&(_=b(U.call(new B)),_!==Object.prototype&&_.next&&(!t&&b(_)!==s&&(S?S(_,s):f(_[g])||l(_,g,k)),y(_,R,!0,!0),t&&(m[R]=k))),d&&A===p&&j&&j.name!==p&&(!t&&u?h(D,"name",p):(M=!0,F=function(){function G(){return a(j,this)}return G}())),A)if($={values:P(p),keys:x?F:P(v),entries:P(V)},E)for(z in $)(C||M||!(z in D))&&l(D,z,$[z]);else e({target:I,proto:!0,forced:C||M},$);return(!t||E)&&D[g]!==F&&l(D,g,F,{name:A}),m[I]=F,$}},83665:function(L,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),f=n(56379),N=n(60855),b=n(95558),S=n(90139),y=b("iterator"),h=!1,l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(l=c)):h=!0);var i=!t(l)||e(function(){var d={};return l[y].call(d)!==d});i?l={}:S&&(l=o(l)),a(l[y])||N(l,y,function(){return this}),L.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:h}},47730:function(L){"use strict";L.exports={}},83207:function(L,r,n){"use strict";var e=n(74369);L.exports=function(a){return e(a.length)}},40773:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),f=n(16361),N=n(15340).CONFIGURABLE,b=n(92004),S=n(4471),y=S.enforce,h=S.get,l=String,c=Object.defineProperty,m=e("".slice),i=e("".replace),d=e([].join),u=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),s=String(String).split("String"),C=L.exports=function(g,v,p){m(l(v),0,7)==="Symbol("&&(v="["+i(l(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),p&&p.getter&&(v="get "+v),p&&p.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(f?c(g,"name",{value:v,configurable:!0}):g.name=v),u&&p&&o(p,"arity")&&g.length!==p.arity&&c(g,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(k){}var V=y(g);return o(V,"source")||(V.source=d(s,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&h(this).source||b(this)}return g}(),"toString")},80563:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},27509:function(L,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(b){return b+o-o};L.exports=function(N,b,S,y){var h=+N,l=a(h),c=e(h);if(lS||i!==i?c*(1/0):c*i}},48705:function(L,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function f(N){return e(N,a,t,o)}return f}()},74347:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},30585:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(L,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,f=n(8274),N=n(25184),b=n(79034),S=n(71979),y=n(86727),h=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,m=e.Promise,i=a("queueMicrotask"),d,u,s,C,g;if(!i){var v=new f,p=function(){var k,B;for(y&&(k=c.domain)&&k.exit();B=v.get();)try{B()}catch(I){throw v.head&&d(),I}k&&k.enter()};!N&&!y&&!S&&h&&l?(u=!0,s=l.createTextNode(""),new h(p).observe(s,{characterData:!0}),d=function(){s.data=u=!u}):!b&&m&&m.resolve?(C=m.resolve(void 0),C.constructor=m,g=t(C.then,C),d=function(){g(p)}):y?d=function(){c.nextTick(p)}:(o=t(o,e),d=function(){o(p)}),i=function(k){v.head||d(),v.add(k)}}L.exports=i},14187:function(L,r,n){"use strict";var e=n(79474),a=TypeError,t=function(f){var N,b;this.promise=new f(function(S,y){if(N!==void 0||b!==void 0)throw new a("Bad Promise constructor");N=S,b=y}),this.resolve=e(N),this.reject=e(b)};L.exports.f=function(o){return new t(o)}},75816:function(L,r,n){"use strict";var e=n(28774),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(L,r,n){"use strict";var e=n(26856),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),b=t("".charAt),S=e.parseFloat,y=e.Symbol,h=y&&y.iterator,l=1/S(N+"-0")!==-1/0||h&&!a(function(){S(Object(h))});L.exports=l?function(){function c(m){var i=f(o(m)),d=S(i);return d===0&&b(i,0)==="-"?-0:d}return c}():S},41148:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),f=n(47913).trim,N=n(47410),b=e.parseInt,S=e.Symbol,y=S&&S.iterator,h=/^[+-]?0x/i,l=t(h.exec),c=b(N+"08")!==8||b(N+"0x16")!==22||y&&!a(function(){b(Object(y))});L.exports=c?function(){function m(i,d){var u=f(o(i));return b(u,d>>>0||(l(h,u)?16:10))}return m}():b},23554:function(L,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),f=n(99869),N=n(61791),b=n(10409),S=n(63549),y=n(80689),h=Object.assign,l=Object.defineProperty,c=a([].concat);L.exports=!h||o(function(){if(e&&h({b:1},h(l({},"a",{enumerable:!0,get:function(){function s(){l(this,"b",{value:3,enumerable:!1})}return s}()}),{b:2})).b!==1)return!0;var m={},i={},d=Symbol("assign detection"),u="abcdefghijklmnopqrst";return m[d]=7,u.split("").forEach(function(s){i[s]=s}),h({},m)[d]!==7||f(h({},i)).join("")!==u})?function(){function m(i,d){for(var u=S(i),s=arguments.length,C=1,g=N.f,v=b.f;s>C;)for(var p=y(arguments[C++]),V=g?c(f(p),g(p)):f(p),k=V.length,B=0,I;k>B;)I=V[B++],(!e||t(v,p,I))&&(u[I]=p[I]);return u}return m}():h},15439:function(L,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),f=n(21474),N=n(55642),b=n(97223),S=">",y="<",h="prototype",l="script",c=b("IE_PROTO"),m=function(){},i=function(v){return y+l+S+v+y+"/"+l+S},d=function(v){v.write(i("")),v.close();var p=v.parentWindow.Object;return v=null,p},u=function(){var v=N("iframe"),p="java"+l+":",V;return v.style.display="none",f.appendChild(v),v.src=String(p),V=v.contentWindow.document,V.open(),V.write(i("document.F=Object")),V.close(),V.F},s,C=function(){try{s=new ActiveXObject("htmlfile")}catch(p){}C=typeof document!="undefined"?document.domain&&s?d(s):u():d(s);for(var v=t.length;v--;)delete C[h][t[v]];return C()};o[c]=!0,L.exports=Object.create||function(){function g(v,p){var V;return v!==null?(m[h]=e(v),V=new m,m[h]=null,V[c]=v):V=C(),p===void 0?V:a.f(V,p)}return g}()},55119:function(L,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),f=n(54292),N=n(99869);r.f=e&&!a?Object.defineProperties:function(){function b(S,y){o(S);for(var h=f(y),l=N(y),c=l.length,m=0,i;c>m;)t.f(S,i=l[m++],h[i]);return S}return b}()},8165:function(L,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),f=n(72445),N=TypeError,b=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",h="configurable",l="writable";r.f=e?t?function(){function c(m,i,d){if(o(m),i=f(i),o(d),typeof m=="function"&&i==="prototype"&&"value"in d&&l in d&&!d[l]){var u=S(m,i);u&&u[l]&&(m[i]=d.value,d={configurable:h in d?d[h]:u[h],enumerable:y in d?d[y]:u[y],writable:!1})}return b(m,i,d)}return c}():b:function(){function c(m,i,d){if(o(m),i=f(i),o(d),a)try{return b(m,i,d)}catch(u){}if("get"in d||"set"in d)throw new N("Accessors not supported");return"value"in d&&(m[i]=d.value),m}return c}()},19765:function(L,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),f=n(54292),N=n(72445),b=n(3302),S=n(16109),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function h(l,c){if(l=f(l),c=N(c),S)try{return y(l,c)}catch(m){}if(b(l,c))return o(!a(t.f,l,c),l[c])}return h}()},31024:function(L,r,n){"use strict";var e=n(8649),a=n(54292),t=n(60097).f,o=n(31170),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(y){return o(f)}};L.exports.f=function(){function b(S){return f&&e(S)==="Window"?N(S):t(a(S))}return b}()},60097:function(L,r,n){"use strict";var e=n(49871),a=n(38139),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},61791:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(L,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),f=n(62297),N=o("IE_PROTO"),b=Object,S=b.prototype;L.exports=f?b.getPrototypeOf:function(y){var h=t(y);if(e(h,N))return h[N];var l=h.constructor;return a(l)&&h instanceof l?l.prototype:h instanceof b?S:null}},58221:function(L,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),f=Object.isExtensible,N=e(function(){f(1)});L.exports=N||o?function(){function b(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return b}():f},54341:function(L,r,n){"use strict";var e=n(72908);L.exports=e({}.isPrototypeOf)},49871:function(L,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,f=n(51653),N=e([].push);L.exports=function(b,S){var y=t(b),h=0,l=[],c;for(c in y)!a(f,c)&&a(y,c)&&N(l,c);for(;S.length>h;)a(y,c=S[h++])&&(~o(l,c)||N(l,c));return l}},99869:function(L,r,n){"use strict";var e=n(49871),a=n(38139);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},6205:function(L,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);L.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},91420:function(L,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,f={},N;try{N=e(Object.prototype,"__proto__","set"),N(f,[]),o=f instanceof Array}catch(b){}return function(){function b(S,y){return a(S),t(y),o?N(S,y):S.__proto__=y,S}return b}()}():void 0)},64266:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),f=n(99869),N=n(54292),b=n(10409).f,S=t(b),y=t([].push),h=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(m){return function(i){for(var d=N(i),u=f(d),s=h&&o(d)===null,C=u.length,g=0,v=[],p;C>g;)p=u[g++],(!e||(s?p in d:S(d,p)))&&y(v,m?[p,d[p]]:d[p]);return v}};L.exports={entries:l(!0),values:l(!1)}},6625:function(L,r,n){"use strict";var e=n(41936),a=n(48615);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(L,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;L.exports=function(f,N){var b,S;if(N==="string"&&a(b=f.toString)&&!t(S=e(b,f))||a(b=f.valueOf)&&!t(S=e(b,f))||N!=="string"&&a(b=f.toString)&&!t(S=e(b,f)))return S;throw new o("Can't convert object to primitive value")}},53988:function(L,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),f=n(45418),N=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function b(S){var y=t.f(f(S)),h=o.f;return h?N(y,h(S)):y}return b}()},55601:function(L,r,n){"use strict";var e=n(26856);L.exports=e},73034:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(L,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),f=n(92004),N=n(95558),b=n(52460),S=n(53437),y=n(90139),h=n(43541),l=a&&a.prototype,c=N("species"),m=!1,i=t(e.PromiseRejectionEvent),d=o("Promise",function(){var u=f(a),s=u!==String(a);if(!s&&h===66||y&&!(l.catch&&l.finally))return!0;if(!h||h<51||!/native code/.test(u)){var C=new a(function(p){p(1)}),g=function(V){V(function(){},function(){})},v=C.constructor={};if(v[c]=g,m=C.then(function(){})instanceof g,!m)return!0}return!s&&(b||S)&&!i});L.exports={CONSTRUCTOR:d,REJECTION_EVENT:i,SUBCLASSING:m}},3e3:function(L,r,n){"use strict";var e=n(26856);L.exports=e.Promise},61988:function(L,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);L.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var N=t.f(o),b=N.resolve;return b(f),N.promise}},18182:function(L,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(L,r,n){"use strict";var e=n(8165).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(N){t[o]=N}return f}()})}},8274:function(L){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},L.exports=r},59833:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),f=n(59049),N=TypeError;L.exports=function(b,S){var y=b.exec;if(t(y)){var h=e(y,b,S);return h!==null&&a(h),h}if(o(b)==="RegExp")return e(f,b,S);throw new N("RegExp#exec called on incompatible receiver")}},59049:function(L,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),f=n(96472),N=n(7624),b=n(15439),S=n(4471).get,y=n(18095),h=n(17329),l=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,i=a("".charAt),d=a("".indexOf),u=a("".replace),s=a("".slice),C=function(){var V=/a/,k=/b*/g;return e(c,V,"a"),e(c,k,"a"),V.lastIndex!==0||k.lastIndex!==0}(),g=f.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,p=C||v||g||y||h;p&&(m=function(){function V(k){var B=this,I=S(B),w=t(k),T=I.raw,A,x,E,P,R,M,D;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=I.groups,F=g&&B.sticky,U=e(o,B),_=B.source,$=0,z=w;if(F&&(U=u(U,"y",""),d(U,"g")===-1&&(U+="g"),z=s(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(w,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",z=" "+z,$++),x=new RegExp("^(?:"+_+")",U)),v&&(x=new RegExp("^"+_+"$(?!\\s)",U)),C&&(E=B.lastIndex),P=e(c,F?x:B,z),F?P?(P.input=s(P.input,$),P[0]=s(P[0],$),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:C&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(l,P[0],x,function(){for(R=1;Rb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},305:function(L,r,n){"use strict";var e=n(62695),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},91935:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},17459:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),f=n(74247),N=n(31170),b=n(92827),S=e.Function,y=/MSIE .\./.test(f)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();L.exports=function(h,l){var c=l?2:1;return y?function(m,i){var d=b(arguments.length,1)>c,u=t(m)?m:S(m),s=d?N(arguments,c):[],C=d?function(){a(u,this,s)}:u;return l?h(C,i):h(C)}:h}},92468:function(L,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),f=t("species");L.exports=function(N){var b=e(N);o&&b&&!b[f]&&a(b,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(L,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");L.exports=function(f,N,b){f&&!b&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:N})}},97223:function(L,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(L,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});L.exports=o},7624:function(L,r,n){"use strict";var e=n(90139),a=n(70192);(L.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83604:function(L,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),f=o("species");L.exports=function(N,b){var S=e(N).constructor,y;return S===void 0||t(y=e(S)[f])?b:a(y)}},81626:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(L,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),f=e("".charAt),N=e("".charCodeAt),b=e("".slice),S=function(h){return function(l,c){var m=t(o(l)),i=a(c),d=m.length,u,s;return i<0||i>=d?h?"":void 0:(u=N(m,i),u<55296||u>56319||i+1===d||(s=N(m,i+1))<56320||s>57343?h?f(m,i):u:h?b(m,i,i+2):(u-55296<<10)+(s-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(L,r,n){"use strict";var e=n(74247);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(L,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),f=n(305),N=e(o),b=e("".slice),S=Math.ceil,y=function(l){return function(c,m,i){var d=t(f(c)),u=a(m),s=d.length,C=i===void 0?" ":t(i),g,v;return u<=s||C===""?d:(g=u-s,v=N(C,S(g/C.length)),v.length>g&&(v=b(v,0,g)),l?d+v:v+d)}};L.exports={start:y(!1),end:y(!0)}},75463:function(L,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;L.exports=function(){function f(N){var b=a(t(this)),S="",y=e(N);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(b+=b))y&1&&(S+=b);return S}return f}()},45745:function(L,r,n){"use strict";var e=n(47913).end,a=n(15677);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";L.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},35634:function(L,r,n){"use strict";var e=n(47913).start,a=n(15677);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(L,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),f=e("".replace),N=RegExp("^["+o+"]+"),b=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(l){var c=t(a(l));return h&1&&(c=f(c,N,"")),h&2&&(c=f(c,b,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(L,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(L,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);L.exports=function(){var f=a("Symbol"),N=f&&f.prototype,b=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(y){return e(b,this)},{arity:1})}},16010:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),f=n(3302),N=n(13586),b=n(21474),S=n(31170),y=n(55642),h=n(92827),l=n(25184),c=n(86727),m=e.setImmediate,i=e.clearImmediate,d=e.process,u=e.Dispatch,s=e.Function,C=e.MessageChannel,g=e.String,v=0,p={},V="onreadystatechange",k,B,I,w;N(function(){k=e.location});var T=function(R){if(f(p,R)){var M=p[R];delete p[R],M()}},A=function(R){return function(){T(R)}},x=function(R){T(R.data)},E=function(R){e.postMessage(g(R),k.protocol+"//"+k.host)};(!m||!i)&&(m=function(){function P(R){h(arguments.length,1);var M=o(R)?R:s(R),D=S(arguments,1);return p[++v]=function(){a(M,void 0,D)},B(v),v}return P}(),i=function(){function P(R){delete p[R]}return P}(),c?B=function(R){d.nextTick(A(R))}:u&&u.now?B=function(R){u.now(A(R))}:C&&!l?(I=new C,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&k&&k.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):V in y("script")?B=function(R){b.appendChild(y("script"))[V]=function(){b.removeChild(this),T(R)}}:B=function(R){setTimeout(A(R),0)}),L.exports={set:m,clear:i}},7950:function(L,r,n){"use strict";var e=n(72908);L.exports=e(1 .valueOf)},39531:function(L,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;L.exports=function(o,f){var N=e(o);return N<0?a(N+f,0):t(N,f)}},73873:function(L,r,n){"use strict";var e=n(9560),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},28968:function(L,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var f=e(o),N=a(f);if(f!==N)throw new t("Wrong length or index");return N}},54292:function(L,r,n){"use strict";var e=n(80689),a=n(305);L.exports=function(t){return e(a(t))}},84501:function(L,r,n){"use strict";var e=n(54037);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(L,r,n){"use strict";var e=n(84501),a=Math.min;L.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(L,r,n){"use strict";var e=n(305),a=Object;L.exports=function(t){return a(e(t))}},45476:function(L,r,n){"use strict";var e=n(70685),a=RangeError;L.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},70685:function(L,r,n){"use strict";var e=n(84501),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},9560:function(L,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),f=n(56109),N=n(95558),b=TypeError,S=N("toPrimitive");L.exports=function(y,h){if(!a(y)||t(y))return y;var l=o(y,S),c;if(l){if(h===void 0&&(h="default"),c=e(l,y,h),!a(c)||t(c))return c;throw new b("Can't convert object to primitive value")}return h===void 0&&(h="number"),f(y,h)}},72445:function(L,r,n){"use strict";var e=n(9560),a=n(43474);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(L,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},8758:function(L,r,n){"use strict";var e=n(48615),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),f=n(45410),N=n(30432),b=n(31284),S=n(14434),y=n(73970),h=n(21650),l=n(76117),c=n(74369),m=n(28968),i=n(45476),d=n(52834),u=n(72445),s=n(3302),C=n(48615),g=n(66379),v=n(43474),p=n(15439),V=n(54341),k=n(91420),B=n(60097).f,I=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),P=n(21465),R=n(4471),M=n(43405),D=R.get,j=R.set,F=R.enforce,U=x.f,_=E.f,$=a.RangeError,z=b.ArrayBuffer,G=z.prototype,H=b.DataView,J=N.NATIVE_ARRAY_BUFFER_VIEWS,ae=N.TYPED_ARRAY_TAG,ce=N.TypedArray,se=N.TypedArrayPrototype,he=N.isTypedArray,ye="BYTES_PER_ELEMENT",Ie="Wrong length",pe=function(ne,be){A(ne,be,{configurable:!0,get:function(){function fe(){return D(this)[be]}return fe}()})},oe=function(ne){var be;return V(G,ne)||(be=C(ne))==="ArrayBuffer"||be==="SharedArrayBuffer"},Z=function(ne,be){return he(ne)&&!v(be)&&be in ne&&l(+be)&&be>=0},q=function(){function me(ne,be){return be=u(be),Z(ne,be)?y(2,ne[be]):_(ne,be)}return me}(),ue=function(){function me(ne,be,fe){return be=u(be),Z(ne,be)&&g(fe)&&s(fe,"value")&&!s(fe,"get")&&!s(fe,"set")&&!fe.configurable&&(!s(fe,"writable")||fe.writable)&&(!s(fe,"enumerable")||fe.enumerable)?(ne[be]=fe.value,ne):U(ne,be,fe)}return me}();o?(J||(E.f=q,x.f=ue,pe(se,"buffer"),pe(se,"byteOffset"),pe(se,"byteLength"),pe(se,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:q,defineProperty:ue}),L.exports=function(me,ne,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,ve="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},We=function(de,Ne){var Ae=D(de);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(de,Ne,Ae){var De=D(de);De.view[ve](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},re=function(de,Ne){U(de,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};J?f&&(we=ne(function(Ce,de,Ne,Ae){return S(Ce,xe),M(function(){return g(de)?oe(de)?Ae!==void 0?new Se(de,i(Ne,fe),Ae):Ne!==void 0?new Se(de,i(Ne,fe)):new Se(de):he(de)?P(we,de):t(I,we,de):new Se(m(de))}(),Ce,we)}),k&&k(we,ce),w(B(Se),function(Ce){Ce in we||h(we,Ce,Se[Ce])}),we.prototype=xe):(we=ne(function(Ce,de,Ne,Ae){S(Ce,xe);var De=0,je=0,_e,Ue,Ke;if(!g(de))Ke=m(de),Ue=Ke*fe,_e=new z(Ue);else if(oe(de)){_e=de,je=i(Ne,fe);var Ge=de.byteLength;if(Ae===void 0){if(Ge%fe)throw new $(Ie);if(Ue=Ge-je,Ue<0)throw new $(Ie)}else if(Ue=c(Ae)*fe,Ue+je>Ge)throw new $(Ie);Ke=Ue/fe}else return he(de)?P(we,de):t(I,we,de);for(j(Ce,{buffer:_e,byteOffset:je,byteLength:Ue,length:Ke,view:new H(_e)});De1?arguments[1]:void 0,C=s!==void 0,g=b(d),v,p,V,k,B,I,w,T;if(g&&!S(g))for(w=N(d,g),T=w.next,d=[];!(I=a(T,w)).done;)d.push(I.value);for(C&&u>2&&(s=e(s,arguments[2])),p=f(d),V=new(h(i))(p),k=y(V),v=0;p>v;v++)B=C?s(d[v],v):d[v],V[v]=k?l(B):+B;return V}return c}()},9230:function(L,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(f){return t(a(f,o(f)))}},76246:function(L,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},95343:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(L,r,n){"use strict";var e=n(16361),a=n(13586);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var s=[];return s[m]=!1,s.concat()[0]!==s}),d=function(C){if(!o(C))return!1;var g=C[m];return g!==void 0?!!g:t(C)},u=!i||!h("concat");e({target:"Array",proto:!0,arity:1,forced:u},{concat:function(){function s(C){var g=f(this),v=y(g,0),p=0,V,k,B,I,w;for(V=-1,B=arguments.length;V1?arguments[1]:void 0)}return f}()})},7216:function(L,r,n){"use strict";var e=n(3116),a=n(39948),t=n(98759);e({target:"Array",proto:!0},{fill:a}),t("fill")},50584:function(L,r,n){"use strict";var e=n(3116),a=n(18539).filter,t=n(34924),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},25972:function(L,r,n){"use strict";var e=n(3116),a=n(18539).findIndex,t=n(98759),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function N(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},26632:function(L,r,n){"use strict";var e=n(3116),a=n(18539).find,t=n(98759),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function N(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},14064:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),f=n(83207),N=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function b(S){var y=o(this),h=f(y),l;return t(S),l=N(y,0),l.length=a(l,y,y,h,0,1,S,arguments.length>1?arguments[1]:void 0),l}return b}()})},55222:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),f=n(84501),N=n(51582);e({target:"Array",proto:!0},{flat:function(){function b(){var S=arguments.length?arguments[0]:void 0,y=t(this),h=o(y),l=N(y,0);return l.length=a(l,y,y,h,0,S===void 0?1:f(S)),l}return b}()})},68616:function(L,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(L,r,n){"use strict";var e=n(3116),a=n(45056),t=n(1608),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},26088:function(L,r,n){"use strict";var e=n(3116),a=n(33483).includes,t=n(13586),o=n(98759),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function N(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},92654:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),f=a([].indexOf),N=!!f&&1/f([1],1,-0)<0,b=N||!o("indexOf");e({target:"Array",proto:!0,forced:b},{indexOf:function(){function S(y){var h=arguments.length>1?arguments[1]:void 0;return N?f(this,y,h)||0:t(this,y,h)}return S}()})},58423:function(L,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(L,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),f=n(8165).f,N=n(21436),b=n(32214),S=n(90139),y=n(16361),h="Array Iterator",l=o.set,c=o.getterFor(h);L.exports=N(Array,"Array",function(i,d){l(this,{type:h,target:e(i),index:0,kind:d})},function(){var i=c(this),d=i.target,u=i.index++;if(!d||u>=d.length)return i.target=void 0,b(void 0,!0);switch(i.kind){case"keys":return b(u,!1);case"values":return b(d[u],!1)}return b([u,d[u]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(i){}},37808:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),f=n(56127),N=a([].join),b=t!==Object,S=b||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(h){return N(o(this),h===void 0?",":h)}return y}()})},2509:function(L,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(L,r,n){"use strict";var e=n(3116),a=n(18539).map,t=n(34924),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return f}()})},38196:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),f=Array,N=a(function(){function b(){}return!(f.of.call(b)instanceof b)});e({target:"Array",stat:!0,forced:N},{of:function(){function b(){for(var S=0,y=arguments.length,h=new(t(this)?this:f)(y);y>S;)o(h,S,arguments[S++]);return h.length=y,h}return b}()})},56913:function(L,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,b=N||!t("reduceRight");e({target:"Array",proto:!0,forced:b},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(L,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),f=n(86727),N=!f&&o>79&&o<83,b=N||!t("reduce");e({target:"Array",proto:!0,forced:b},{reduce:function(){function S(y){var h=arguments.length;return a(this,y,h,h>1?arguments[1]:void 0)}return S}()})},48704:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(59882),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function N(){return t(this)&&(this.length=this.length),o(this)}return N}()})},24077:function(L,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),f=n(39531),N=n(83207),b=n(54292),S=n(80750),y=n(95558),h=n(34924),l=n(31170),c=h("slice"),m=y("species"),i=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function u(s,C){var g=b(this),v=N(g),p=f(s,v),V=f(C===void 0?v:C,v),k,B,I;if(a(g)&&(k=g.constructor,t(k)&&(k===i||a(k.prototype))?k=void 0:o(k)&&(k=k[m],k===null&&(k=void 0)),k===i||k===void 0))return l(g,p,V);for(B=new(k===void 0?i:k)(d(V-p,0)),I=0;p1?arguments[1]:void 0)}return f}()})},43430:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),f=n(83207),N=n(81245),b=n(8758),S=n(13586),y=n(91183),h=n(56127),l=n(31574),c=n(88836),m=n(43541),i=n(27204),d=[],u=a(d.sort),s=a(d.push),C=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=h("sort"),p=!S(function(){if(m)return m<70;if(!(l&&l>3)){if(c)return!0;if(i)return i<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:w+A,v:T})}for(d.sort(function(x,E){return E.v-x.v}),A=0;Ab(T)?1:-1}};e({target:"Array",proto:!0,forced:V},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(p)return I===void 0?u(w):u(w,I);var T=[],A=f(w),x,E;for(E=0;Eg-k+V;I--)h(C,I-1)}else if(V>k)for(I=g-k;I>v;I--)w=I+k-1,T=I+V-1,w in C?C[T]=C[w]:h(C,T);for(I=0;I9490626562425156e-8?o(h)+N:a(h-1+f(h-1)*f(h+1))}return S}()})},68872:function(L,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(b){var S=+b;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var N=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:N},{asinh:f})},93105:function(L,r,n){"use strict";var e=n(3116),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(N){var b=+N;return b===0?b:t((1+b)/(1-b))/2}return f}()})},1795:function(L,r,n){"use strict";var e=n(3116),a=n(30585),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(N){var b=+N;return a(b)*o(t(b),.3333333333333333)}return f}()})},11121:function(L,r,n){"use strict";var e=n(3116),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(N){var b=N>>>0;return b?31-a(t(b+.5)*o):32}return f}()})},18730:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,f=Math.E,N=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:N},{cosh:function(){function b(S){var y=a(o(S)-1)+1;return(y+1/(y*f*f))*(f/2)}return b}()})},11624:function(L,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(L,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(L,r,n){"use strict";var e=n(3116),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function N(b,S){for(var y=0,h=0,l=arguments.length,c=0,m,i;h0?(i=m/c,y+=i*i):y+=m;return c===1/0?1/0:c*o(y)}return N}()})},75213:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(N,b){var S=65535,y=+N,h=+b,l=S&y,c=S&h;return 0|l*c+((S&y>>>16)*c+l*(S&h>>>16)<<16>>>0)}return f}()})},4347:function(L,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(L,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(L,r,n){"use strict";var e=n(3116),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},54468:function(L,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,f=Math.exp,N=Math.E,b=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:b},{sinh:function(){function S(y){var h=+y;return o(h)<1?(t(h)-t(-h))/2:(f(h-1)-f(-h-1))*(N/2)}return S}()})},95499:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var N=+f,b=a(N),S=a(-N);return b===1/0?1:S===1/0?-1:(b-S)/(t(N)+t(-N))}return o}()})},50929:function(L,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(L,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),f=n(55601),N=n(72908),b=n(23620),S=n(3302),y=n(43405),h=n(54341),l=n(43474),c=n(9560),m=n(13586),i=n(60097).f,d=n(19765).f,u=n(8165).f,s=n(7950),C=n(47913).trim,g="Number",v=o[g],p=f[g],V=v.prototype,k=o.TypeError,B=N("".slice),I=N("".charCodeAt),w=function(M){var D=c(M,"number");return typeof D=="bigint"?D:T(D)},T=function(M){var D=c(M,"number"),j,F,U,_,$,z,G,H;if(l(D))throw new k("Cannot convert a Symbol value to a number");if(typeof D=="string"&&D.length>2){if(D=C(D),j=I(D,0),j===43||j===45){if(F=I(D,2),F===88||F===120)return NaN}else if(j===48){switch(I(D,1)){case 66:case 98:U=2,_=49;break;case 79:case 111:U=8,_=55;break;default:return+D}for($=B(D,2),z=$.length,G=0;G_)return NaN;return parseInt($,U)}}return+D},A=b(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(M){return h(V,M)&&m(function(){s(M)})},E=function(){function R(M){var D=arguments.length<1?0:v(w(M));return x(this)?y(Object(D),this,E):D}return R}();E.prototype=V,A&&!a&&(V.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,D){for(var j=t?i(D):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,U;j.length>F;F++)S(D,U=j[F])&&!S(M,U)&&u(M,U,d(D,U))};a&&p&&P(f[g],p),(A||a)&&P(f[g],v)},48211:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(L,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(L,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},84660:function(L,r,n){"use strict";var e=n(3116),a=n(76117),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},82678:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),f=n(75463),N=n(13586),b=RangeError,S=String,y=Math.floor,h=a(f),l=a("".slice),c=a(1 .toFixed),m=function g(v,p,V){return p===0?V:p%2===1?g(v,p-1,V*v):g(v*v,p/2,V)},i=function(v){for(var p=0,V=v;V>=4096;)p+=12,V/=4096;for(;V>=2;)p+=1,V/=2;return p},d=function(v,p,V){for(var k=-1,B=V;++k<6;)B+=p*v[k],v[k]=B%1e7,B=y(B/1e7)},u=function(v,p){for(var V=6,k=0;--V>=0;)k+=v[V],v[V]=y(k/p),k=k%p*1e7},s=function(v){for(var p=6,V="";--p>=0;)if(V!==""||p===0||v[p]!==0){var k=S(v[p]);V=V===""?k:V+h("0",7-k.length)+k}return V},C=N(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!N(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function g(v){var p=o(this),V=t(v),k=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(V<0||V>20)throw new b("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return S(p);if(p<0&&(B="-",p=-p),p>1e-21)if(w=i(p*m(2,69,1))-69,T=w<0?p*m(2,-w,1):p/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(k,0,T),A=V;A>=7;)d(k,1e7,0),A-=7;for(d(k,m(10,A,1),0),A=w-1;A>=23;)u(k,8388608),A-=23;u(k,1<0?(x=I.length,I=B+(x<=V?"0."+h("0",V-x)+I:l(I,0,x-V)+"."+l(I,x-V))):I=B+I,I}return g}()})},83403:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),f=a(1 .toPrecision),N=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:N},{toPrecision:function(){function b(S){return S===void 0?f(o(this)):f(o(this),S)}return b}()})},4229:function(L,r,n){"use strict";var e=n(3116),a=n(23554);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},53388:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(15439);e({target:"Object",stat:!0,sham:!a},{create:t})},53121:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function b(S,y){N.f(f(this),S,{get:o(y),enumerable:!0,configurable:!0})}return b}()})},53822:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(55119).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},2514:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(8165).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},2218:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),f=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function b(S,y){N.f(f(this),S,{set:o(y),enumerable:!0,configurable:!0})}return b}()})},14955:function(L,r,n){"use strict";var e=n(3116),a=n(64266).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79220:function(L,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),f=n(66526).onFreeze,N=Object.freeze,b=t(function(){N(1)});e({target:"Object",stat:!0,forced:b,sham:!a},{freeze:function(){function S(y){return N&&o(y)?N(f(y)):y}return S}()})},81941:function(L,r,n){"use strict";var e=n(3116),a=n(20453),t=n(80750);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var N={};return a(f,function(b,S){t(N,b,S)},{AS_ENTRIES:!0}),N}return o}()})},37245:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,f=n(16361),N=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getOwnPropertyDescriptor:function(){function b(S,y){return o(t(S),y)}return b}()})},8373:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),f=n(19765),N=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function b(S){for(var y=o(S),h=f.f,l=t(y),c={},m=0,i,d;l.length>m;)d=h(y,i=l[m++]),d!==void 0&&N(c,i,d);return c}return b}()})},81212:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(31024).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},56896:function(L,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),f=n(63549),N=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:N},{getOwnPropertySymbols:function(){function b(S){var y=o.f;return y?y(f(S)):[]}return b}()})},26054:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),f=n(62297),N=a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!f},{getPrototypeOf:function(){function b(S){return o(t(S))}return b}()})},49611:function(L,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isFrozen,b=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:b},{isFrozen:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},55750:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),f=n(8685),N=Object.isSealed,b=f||a(function(){N(1)});e({target:"Object",stat:!0,forced:b},{isSealed:function(){function S(y){return!t(y)||f&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},57745:function(L,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(L,r,n){"use strict";var e=n(3116),a=n(63549),t=n(99869),o=n(13586),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function N(b){return t(a(b))}return N}()})},63429:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),b=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var h=o(this),l=f(y),c;do if(c=b(h,l))return c.get;while(h=N(h))}return S}()})},9558:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),f=n(72445),N=n(56379),b=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var h=o(this),l=f(y),c;do if(c=b(h,l))return c.set;while(h=N(h))}return S}()})},2420:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.preventExtensions,b=f(function(){N(1)});e({target:"Object",stat:!0,forced:b,sham:!o},{preventExtensions:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},19015:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),f=n(13586),N=Object.seal,b=f(function(){N(1)});e({target:"Object",stat:!0,forced:b,sham:!o},{seal:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},34137:function(L,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(L,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(L,r,n){"use strict";var e=n(3116),a=n(64266).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},49456:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),b=n(18182);e({target:"Promise",stat:!0,forced:b},{all:function(){function S(y){var h=this,l=o.f(h),c=l.resolve,m=l.reject,i=f(function(){var d=t(h.resolve),u=[],s=0,C=1;N(y,function(g){var v=s++,p=!1;C++,a(d,h,g).then(function(V){p||(p=!0,u[v]=V,--C||c(u))},m)}),--C||c(u)});return i.error&&m(i.value),l.promise}return S}()})},72188:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),f=n(22070),N=n(53664),b=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(l){return this.then(void 0,l)}return h}()}),!a&&N(o)){var y=f("Promise").prototype.catch;S.catch!==y&&b(S,"catch",y,{unsafe:!0})}},13779:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),f=n(20276),N=n(60855),b=n(91420),S=n(15676),y=n(92468),h=n(79474),l=n(53664),c=n(66379),m=n(14434),i=n(83604),d=n(87073).set,u=n(60816),s=n(66481),C=n(73034),g=n(8274),v=n(4471),p=n(3e3),V=n(14657),k=n(14187),B="Promise",I=V.CONSTRUCTOR,w=V.REJECTION_EVENT,T=V.SUBCLASSING,A=v.getterFor(B),x=v.set,E=p&&p.prototype,P=p,R=E,M=o.TypeError,D=o.document,j=o.process,F=k.f,U=F,_=!!(D&&D.createEvent&&o.dispatchEvent),$="unhandledrejection",z="rejectionhandled",G=0,H=1,J=2,ae=1,ce=2,se,he,ye,Ie,pe=function(ve){var Se;return c(ve)&&l(Se=ve.then)?Se:!1},oe=function(ve,Se){var we=Se.value,xe=Se.state===H,Oe=xe?ve.ok:ve.fail,We=ve.resolve,Ve=ve.reject,re=ve.domain,le,Ce,de;try{Oe?(xe||(Se.rejection===ce&&ne(Se),Se.rejection=ae),Oe===!0?le=we:(re&&re.enter(),le=Oe(we),re&&(re.exit(),de=!0)),le===ve.promise?Ve(new M("Promise-chain cycle")):(Ce=pe(le))?f(Ce,le,We,Ve):We(le)):Ve(we)}catch(Ne){re&&!de&&re.exit(),Ve(Ne)}},Z=function(ve,Se){ve.notified||(ve.notified=!0,u(function(){for(var we=ve.reactions,xe;xe=we.get();)oe(xe,ve);ve.notified=!1,Se&&!ve.rejection&&ue(ve)}))},q=function(ve,Se,we){var xe,Oe;_?(xe=D.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+ve])?Oe(xe):ve===$&&s("Unhandled promise rejection",we)},ue=function(ve){f(d,o,function(){var Se=ve.facade,we=ve.value,xe=me(ve),Oe;if(xe&&(Oe=C(function(){t?j.emit("unhandledRejection",we,Se):q($,Se,we)}),ve.rejection=t||me(ve)?ce:ae,Oe.error))throw Oe.value})},me=function(ve){return ve.rejection!==ae&&!ve.parent},ne=function(ve){f(d,o,function(){var Se=ve.facade;t?j.emit("rejectionHandled",Se):q(z,Se,ve.value)})},be=function(ve,Se,we){return function(xe){ve(Se,xe,we)}},fe=function(ve,Se,we){ve.done||(ve.done=!0,we&&(ve=we),ve.value=Se,ve.state=J,Z(ve,!0))},ge=function ke(ve,Se,we){if(!ve.done){ve.done=!0,we&&(ve=we);try{if(ve.facade===Se)throw new M("Promise can't be resolved itself");var xe=pe(Se);xe?u(function(){var Oe={done:!1};try{f(xe,Se,be(ke,Oe,ve),be(fe,Oe,ve))}catch(We){fe(Oe,We,ve)}}):(ve.value=Se,ve.state=H,Z(ve,!1))}catch(Oe){fe({done:!1},Oe,ve)}}};if(I&&(P=function(){function ke(ve){m(this,R),h(ve),f(se,this);var Se=A(this);try{ve(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),R=P.prototype,se=function(){function ke(ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:G,value:void 0})}return ke}(),se.prototype=N(R,"then",function(){function ke(ve,Se){var we=A(this),xe=F(i(this,P));return we.parent=!0,xe.ok=l(ve)?ve:!0,xe.fail=l(Se)&&Se,xe.domain=t?j.domain:void 0,we.state===G?we.reactions.add(xe):u(function(){oe(xe,we)}),xe.promise}return ke}()),he=function(){var ve=new se,Se=A(ve);this.promise=ve,this.resolve=be(ge,Se),this.reject=be(fe,Se)},k.f=F=function(ve){return ve===P||ve===ye?new he(ve):U(ve)},!a&&l(p)&&E!==Object.prototype)){Ie=E.then,T||N(E,"then",function(){function ke(ve,Se){var we=this;return new P(function(xe,Oe){f(Ie,we,xe,Oe)}).then(ve,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}b&&b(E,R)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),S(P,B,!1,!0),y(B)},79063:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),f=n(22070),N=n(53664),b=n(83604),S=n(61988),y=n(60855),h=t&&t.prototype,l=!!t&&o(function(){h.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function m(i){var d=b(this,f("Promise")),u=N(i);return this.then(u?function(s){return S(d,i()).then(function(){return s})}:i,u?function(s){return S(d,i()).then(function(){throw s})}:i)}return m}()}),!a&&N(t)){var c=f("Promise").prototype.finally;h.finally!==c&&y(h,"finally",c,{unsafe:!0})}},75795:function(L,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),f=n(73034),N=n(20453),b=n(18182);e({target:"Promise",stat:!0,forced:b},{race:function(){function S(y){var h=this,l=o.f(h),c=l.reject,m=f(function(){var i=t(h.resolve);N(y,function(d){a(i,h,d).then(l.resolve,c)})});return m.error&&c(m.value),l.promise}return S}()})},75955:function(L,r,n){"use strict";var e=n(3116),a=n(14187),t=n(14657).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var N=a.f(this),b=N.reject;return b(f),N.promise}return o}()})},39996:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),f=n(14657).CONSTRUCTOR,N=n(61988),b=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function y(h){return N(S&&this===b?o:this,h)}return y}()})},1210:function(L,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),f=n(13586),N=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:N},{apply:function(){function b(S,y,h){return a(t(S),y,o(h))}return b}()})},91370:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),f=n(48218),N=n(45418),b=n(66379),S=n(15439),y=n(13586),h=a("Reflect","construct"),l=Object.prototype,c=[].push,m=y(function(){function u(){}return!(h(function(){},[],u)instanceof u)}),i=!y(function(){h(function(){})}),d=m||i;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function u(s,C){f(s),N(C);var g=arguments.length<3?s:f(arguments[2]);if(i&&!m)return h(s,C,g);if(s===g){switch(C.length){case 0:return new s;case 1:return new s(C[0]);case 2:return new s(C[0],C[1]);case 3:return new s(C[0],C[1],C[2]);case 4:return new s(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,s,v))}var p=g.prototype,V=S(b(p)?p:l),k=t(s,V,C);return b(k)?k:V}return u}()})},17327:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),f=n(8165),N=n(13586),b=N(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:b,sham:!a},{defineProperty:function(){function S(y,h,l){t(y);var c=o(h);t(l);try{return f.f(y,c,l),!0}catch(m){return!1}}return S}()})},2679:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(19765).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,N){var b=t(a(f),N);return b&&!b.configurable?!1:delete f[N]}return o}()})},27262:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(19765);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(N,b){return o.f(t(N),b)}return f}()})},47278:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(56379),o=n(62297);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(N){return t(a(N))}return f}()})},60733:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),f=n(75129),N=n(19765),b=n(56379);function S(y,h){var l=arguments.length<3?y:arguments[2],c,m;if(o(y)===l)return y[h];if(c=N.f(y,h),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(m=b(y)))return S(m,h,l)}e({target:"Reflect",stat:!0},{get:S})},22547:function(L,r,n){"use strict";var e=n(3116);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},92992:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(58221);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},64650:function(L,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(45418),o=n(58199);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(N){t(N);try{var b=a("Object","preventExtensions");return b&&b(N),!0}catch(S){return!1}}return f}()})},65558:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(30907),o=n(91420);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(N,b){a(N),t(b);try{return o(N,b),!0}catch(S){return!1}}return f}()})},97836:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),f=n(75129),N=n(13586),b=n(8165),S=n(19765),y=n(56379),h=n(73970);function l(m,i,d){var u=arguments.length<4?m:arguments[3],s=S.f(t(m),i),C,g,v;if(!s){if(o(g=y(m)))return l(g,i,d,u);s=h(0)}if(f(s)){if(s.writable===!1||!o(u))return!1;if(C=S.f(u,i)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,b.f(u,i,C)}else b.f(u,i,h(0,d))}else{if(v=s.set,v===void 0)return!1;a(v,u,d)}return!0}var c=N(function(){var m=function(){},i=b.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,i)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},83932:function(L,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),f=n(43405),N=n(21650),b=n(15439),S=n(60097).f,y=n(54341),h=n(28774),l=n(8758),c=n(13980),m=n(96472),i=n(69713),d=n(60855),u=n(13586),s=n(3302),C=n(4471).enforce,g=n(92468),v=n(95558),p=n(18095),V=n(17329),k=v("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,j=new B(M)!==M,F=m.MISSED_STICKY,U=m.UNSUPPORTED_Y,_=e&&(!j||F||p||V||u(function(){return D[k]=!1,B(M)!==M||B(D)===D||String(B(M,"i"))!=="/a/i"})),$=function(ce){for(var se=ce.length,he=0,ye="",Ie=!1,pe;he<=se;he++){if(pe=A(ce,he),pe==="\\"){ye+=pe+A(ce,++he);continue}!Ie&&pe==="."?ye+="[\\s\\S]":(pe==="["?Ie=!0:pe==="]"&&(Ie=!1),ye+=pe)}return ye},z=function(ce){for(var se=ce.length,he=0,ye="",Ie=[],pe=b(null),oe=!1,Z=!1,q=0,ue="",me;he<=se;he++){if(me=A(ce,he),me==="\\")me+=A(ce,++he);else if(me==="]")oe=!1;else if(!oe)switch(!0){case me==="[":oe=!0;break;case me==="(":T(R,P(ce,he+1))&&(he+=2,Z=!0),ye+=me,q++;continue;case(me===">"&&Z):if(ue===""||s(pe,ue))throw new w("Invalid capture group name");pe[ue]=!0,Ie[Ie.length]=[ue,q],Z=!1,ue="";continue}Z?ue+=me:ye+=me}return[ye,Ie]};if(o("RegExp",_)){for(var G=function(){function ae(ce,se){var he=y(I,this),ye=h(ce),Ie=se===void 0,pe=[],oe=ce,Z,q,ue,me,ne,be;if(!he&&ye&&Ie&&ce.constructor===G)return ce;if((ye||y(I,ce))&&(ce=ce.source,Ie&&(se=c(oe))),ce=ce===void 0?"":l(ce),se=se===void 0?"":l(se),oe=ce,p&&"dotAll"in M&&(q=!!se&&E(se,"s")>-1,q&&(se=x(se,/s/g,""))),Z=se,F&&"sticky"in M&&(ue=!!se&&E(se,"y")>-1,ue&&U&&(se=x(se,/y/g,""))),V&&(me=z(ce),ce=me[0],pe=me[1]),ne=f(B(ce,se),he?this:I,G),(q||ue||pe.length)&&(be=C(ne),q&&(be.dotAll=!0,be.raw=G($(ce),Z)),ue&&(be.sticky=!0),pe.length&&(be.groups=pe)),ce!==oe)try{N(ne,"source",oe===""?"(?:)":oe)}catch(fe){}return ne}return ae}(),H=S(B),J=0;H.length>J;)i(G,B,H[J++]);I.constructor=G,G.prototype=I,d(a,"RegExp",G,{constructor:!0})}g("RegExp")},72941:function(L,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),f=n(13586),N=e.RegExp,b=N.prototype,S=a&&f(function(){var y=!0;try{N(".","d")}catch(s){y=!1}var h={},l="",c=y?"dgimsy":"gimsy",m=function(C,g){Object.defineProperty(h,C,{get:function(){function v(){return l+=g,!0}return v}()})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(i.hasIndices="d");for(var d in i)m(d,i[d]);var u=Object.getOwnPropertyDescriptor(b,"flags").get.call(h);return u!==c||l!==c});S&&t(b,"flags",{configurable:!0,get:o})},2394:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),f=n(13586),N=n(13980),b="toString",S=RegExp.prototype,y=S[b],h=f(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&y.name!==b;(h||l)&&a(S,b,function(){function c(){var m=t(this),i=o(m.source),d=o(N(m));return"/"+i+"/"+d}return c}(),{unsafe:!0})},98480:function(L,r,n){"use strict";var e=n(10609),a=n(42384);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37517:function(L,r,n){"use strict";n(98480)},25492:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},13684:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},79646:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},98511:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},65699:function(L,r,n){"use strict";var e=n(3116),a=n(13300).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},11360:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),f=n(8758),N=n(75816),b=n(305),S=n(46339),y=n(90139),h=a("".slice),l=Math.min,c=S("endsWith"),m=!y&&!c&&!!function(){var i=t(String.prototype,"endsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function i(d){var u=f(b(this));N(d);var s=arguments.length>1?arguments[1]:void 0,C=u.length,g=s===void 0?C:l(o(s),C),v=f(d);return h(u,g-v.length,g)===v}return i}()})},30733:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},58683:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},70277:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},33683:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,f=String.fromCharCode,N=String.fromCodePoint,b=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(h){for(var l=[],c=arguments.length,m=0,i;c>m;){if(i=+arguments[m++],t(i,1114111)!==i)throw new o(i+" is not a valid code point");l[m]=i<65536?f(i):f(((i-=65536)>>10)+55296,i%1024+56320)}return b(l,"")}return y}()})},16792:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),f=n(8758),N=n(46339),b=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(y){return!!~b(f(o(this)),f(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},8:function(L,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),f=n(32214),N="String Iterator",b=t.set,S=t.getterFor(N);o(String,"String",function(y){b(this,{type:N,string:a(y),index:0})},function(){function y(){var h=S(this),l=h.string,c=h.index,m;return c>=l.length?f(void 0,!0):(m=e(l,c),h.index+=m.length,f(m,!1))}return y}())},13763:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},76015:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(74369),N=n(8758),b=n(305),S=n(76540),y=n(47158),h=n(59833);a("match",function(l,c,m){return[function(){function i(d){var u=b(this),s=o(d)?void 0:S(d,l);return s?e(s,d,u):new RegExp(d)[l](N(u))}return i}(),function(i){var d=t(this),u=N(i),s=m(c,d,u);if(s.done)return s.value;if(!d.global)return h(d,u);var C=d.unicode;d.lastIndex=0;for(var g=[],v=0,p;(p=h(d,u))!==null;){var V=N(p[0]);g[v]=V,V===""&&(d.lastIndex=y(u,f(d.lastIndex),C)),v++}return v===0?null:g}]})},57318:function(L,r,n){"use strict";var e=n(3116),a=n(81290).end,t=n(51468);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},33177:function(L,r,n){"use strict";var e=n(3116),a=n(81290).start,t=n(51468);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},1429:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),f=n(8758),N=n(83207),b=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(h){var l=t(o(h).raw),c=N(l);if(!c)return"";for(var m=arguments.length,i=[],d=0;;){if(b(i,f(l[d++])),d===c)return S(i,"");d")!=="7"});o("replace",function(x,E,P){var R=T?"$":"$0";return[function(){function M(D,j){var F=c(this),U=S(D)?void 0:i(D,C);return U?a(U,D,F,j):a(E,l(F),D,j)}return M}(),function(M,D){var j=N(this),F=l(M);if(typeof D=="string"&&k(D,R)===-1&&k(D,"$<")===-1){var U=P(E,j,F,D);if(U.done)return U.value}var _=b(D);_||(D=l(D));var $=j.global,z;$&&(z=j.unicode,j.lastIndex=0);for(var G=[],H;H=u(j,F),!(H===null||(V(G,H),!$));){var J=l(H[0]);J===""&&(j.lastIndex=m(F,h(j.lastIndex),z))}for(var ae="",ce=0,se=0;se=ce&&(ae+=B(F,ce,ye)+pe,ce=ye+he.length)}return ae+B(F,ce)}]},!A||!w||T)},60981:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),f=n(305),N=n(91935),b=n(8758),S=n(76540),y=n(59833);a("search",function(h,l,c){return[function(){function m(i){var d=f(this),u=o(i)?void 0:S(i,h);return u?e(u,i,d):new RegExp(i)[h](b(d))}return m}(),function(m){var i=t(this),d=b(m),u=c(l,i,d);if(u.done)return u.value;var s=i.lastIndex;N(s,0)||(i.lastIndex=0);var C=y(i,d);return N(i.lastIndex,s)||(i.lastIndex=s),C===null?-1:C.index}]})},56001:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},96578:function(L,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),f=n(45418),N=n(62695),b=n(28774),S=n(305),y=n(83604),h=n(47158),l=n(74369),c=n(8758),m=n(76540),i=n(31170),d=n(59833),u=n(59049),s=n(96472),C=n(13586),g=s.UNSUPPORTED_Y,v=4294967295,p=Math.min,V=[].push,k=t(/./.exec),B=t(V),I=t("".slice),w=!C(function(){var T=/(?:)/,A=T.exec;T.exec=function(){return A.apply(this,arguments)};var x="ab".split(T);return x.length!==2||x[0]!=="a"||x[1]!=="b"});o("split",function(T,A,x){var E;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(R,M){var D=c(S(this)),j=M===void 0?v:M>>>0;if(j===0)return[];if(R===void 0)return[D];if(!b(R))return a(A,D,R,j);for(var F=[],U=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(R.sticky?"y":""),_=0,$=new RegExp(R.source,U+"g"),z,G,H;(z=a(u,$,D))&&(G=$.lastIndex,!(G>_&&(B(F,I(D,_,z.index)),z.length>1&&z.index=j)));)$.lastIndex===z.index&&$.lastIndex++;return _===D.length?(H||!k($,""))&&B(F,""):B(F,I(D,_)),F.length>j?i(F,0,j):F}:"0".split(void 0,0).length?E=function(R,M){return R===void 0&&M===0?[]:a(A,this,R,M)}:E=A,[function(){function P(R,M){var D=S(this),j=N(R)?void 0:m(R,T);return j?a(j,R,D,M):a(E,c(D),R,M)}return P}(),function(P,R){var M=f(this),D=c(P),j=x(E,M,D,R,E!==A);if(j.done)return j.value;var F=y(M,RegExp),U=M.unicode,_=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),$=new F(g?"^(?:"+M.source+")":M,_),z=R===void 0?v:R>>>0;if(z===0)return[];if(D.length===0)return d($,D)===null?[D]:[];for(var G=0,H=0,J=[];H1?arguments[1]:void 0,u.length)),C=f(d);return h(u,s,s+C.length)===C}return i}()})},58713:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},41960:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},31772:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},84368:function(L,r,n){"use strict";n(12333);var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},81464:function(L,r,n){"use strict";var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},12333:function(L,r,n){"use strict";var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},76980:function(L,r,n){"use strict";n(81464);var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},54511:function(L,r,n){"use strict";var e=n(3116),a=n(47913).trim,t=n(15677);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},65884:function(L,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),f=n(90139),N=n(16361),b=n(61855),S=n(13586),y=n(3302),h=n(54341),l=n(45418),c=n(54292),m=n(72445),i=n(8758),d=n(73970),u=n(15439),s=n(99869),C=n(60097),g=n(31024),v=n(61791),p=n(19765),V=n(8165),k=n(55119),B=n(10409),I=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),P=n(95558),R=n(15355),M=n(20614),D=n(28952),j=n(15676),F=n(4471),U=n(18539).forEach,_=A("hidden"),$="Symbol",z="prototype",G=F.set,H=F.getterFor($),J=Object[z],ae=a.Symbol,ce=ae&&ae[z],se=a.RangeError,he=a.TypeError,ye=a.QObject,Ie=p.f,pe=V.f,oe=g.f,Z=B.f,q=o([].push),ue=T("symbols"),me=T("op-symbols"),ne=T("wks"),be=!ye||!ye[z]||!ye[z].findChild,fe=function(le,Ce,de){var Ne=Ie(J,Ce);Ne&&delete J[Ce],pe(le,Ce,de),Ne&&le!==J&&pe(J,Ce,Ne)},ge=N&&S(function(){return u(pe({},"a",{get:function(){function re(){return pe(this,"a",{value:7}).a}return re}()})).a!==7})?fe:pe,ke=function(le,Ce){var de=ue[le]=u(ce);return G(de,{type:$,tag:le,description:Ce}),N||(de.description=Ce),de},ve=function(){function re(le,Ce,de){le===J&&ve(me,Ce,de),l(le);var Ne=m(Ce);return l(de),y(ue,Ne)?(de.enumerable?(y(le,_)&&le[_][Ne]&&(le[_][Ne]=!1),de=u(de,{enumerable:d(0,!1)})):(y(le,_)||pe(le,_,d(1,u(null))),le[_][Ne]=!0),ge(le,Ne,de)):pe(le,Ne,de)}return re}(),Se=function(){function re(le,Ce){l(le);var de=c(Ce),Ne=s(de).concat(Ve(de));return U(Ne,function(Ae){(!N||t(xe,de,Ae))&&ve(le,Ae,de[Ae])}),le}return re}(),we=function(){function re(le,Ce){return Ce===void 0?u(le):Se(u(le),Ce)}return re}(),xe=function(){function re(le){var Ce=m(le),de=t(Z,this,Ce);return this===J&&y(ue,Ce)&&!y(me,Ce)?!1:de||!y(this,Ce)||!y(ue,Ce)||y(this,_)&&this[_][Ce]?de:!0}return re}(),Oe=function(){function re(le,Ce){var de=c(le),Ne=m(Ce);if(!(de===J&&y(ue,Ne)&&!y(me,Ne))){var Ae=Ie(de,Ne);return Ae&&y(ue,Ne)&&!(y(de,_)&&de[_][Ne])&&(Ae.enumerable=!0),Ae}}return re}(),We=function(){function re(le){var Ce=oe(c(le)),de=[];return U(Ce,function(Ne){!y(ue,Ne)&&!y(x,Ne)&&q(de,Ne)}),de}return re}(),Ve=function(le){var Ce=le===J,de=oe(Ce?me:c(le)),Ne=[];return U(de,function(Ae){y(ue,Ae)&&(!Ce||y(J,Ae))&&q(Ne,ue[Ae])}),Ne};b||(ae=function(){function re(){if(h(ce,this))throw new he("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),Ce=E(le),de=function(){function Ne(Ae){var De=this===void 0?a:this;De===J&&t(Ne,me,Ae),y(De,_)&&y(De[_],Ce)&&(De[_][Ce]=!1);var je=d(1,Ae);try{ge(De,Ce,je)}catch(_e){if(!(_e instanceof se))throw _e;fe(De,Ce,je)}}return Ne}();return N&&be&&ge(J,Ce,{configurable:!0,set:de}),ke(Ce,le)}return re}(),ce=ae[z],I(ce,"toString",function(){function re(){return H(this).tag}return re}()),I(ae,"withoutSetter",function(re){return ke(E(re),re)}),B.f=xe,V.f=ve,k.f=Se,p.f=Oe,C.f=g.f=We,v.f=Ve,R.f=function(re){return ke(P(re),re)},N&&(w(ce,"description",{configurable:!0,get:function(){function re(){return H(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!b,sham:!b},{Symbol:ae}),U(s(ne),function(re){M(re)}),e({target:$,stat:!0,forced:!b},{useSetter:function(){function re(){be=!0}return re}(),useSimple:function(){function re(){be=!1}return re}()}),e({target:"Object",stat:!0,forced:!b,sham:!N},{create:we,defineProperty:ve,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!b},{getOwnPropertyNames:We}),D(),j(ae,$),x[_]=!0},64777:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),f=n(3302),N=n(53664),b=n(54341),S=n(8758),y=n(57301),h=n(83826),l=t.Symbol,c=l&&l.prototype;if(a&&N(l)&&(!("description"in c)||l().description!==void 0)){var m={},i=function(){function p(){var V=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),k=b(c,this)?new l(V):V===void 0?l():l(V);return V===""&&(m[k]=!0),k}return p}();h(i,l),i.prototype=c,c.constructor=i;var d=String(l("description detection"))==="Symbol(description detection)",u=o(c.valueOf),s=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);y(c,"description",{configurable:!0,get:function(){function p(){var V=u(this);if(f(m,V))return"";var k=s(V),B=d?v(k,7,-1):g(k,C,"$1");return B===""?void 0:B}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},99694:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),f=n(7624),N=n(16010),b=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function y(h){var l=o(h);if(t(b,l))return b[l];var c=a("Symbol")(l);return b[l]=c,S[c]=l,c}return y}()})},56564:function(L,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(L,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(L,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(L,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(L,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),f=n(7624),N=n(16010),b=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(b,y))return b[y]}return S}()})},22905:function(L,r,n){"use strict";var e=n(20614);e("match")},96311:function(L,r,n){"use strict";var e=n(20614);e("replace")},61292:function(L,r,n){"use strict";var e=n(20614);e("search")},75419:function(L,r,n){"use strict";var e=n(20614);e("species")},67638:function(L,r,n){"use strict";var e=n(20614);e("split")},7601:function(L,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(L,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(L,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(L,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),f=a.aTypedArray,N=a.exportTypedArrayMethod;N("copyWithin",function(){function b(S,y){return o(f(this),S,y,arguments.length>2?arguments[2]:void 0)}return b}())},58549:function(L,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},42774:function(L,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),f=n(20276),N=n(72908),b=n(13586),S=e.aTypedArray,y=e.exportTypedArrayMethod,h=N("".slice),l=b(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});y("fill",function(){function c(m){var i=arguments.length;S(this);var d=h(o(this),0,3)==="Big"?t(m):+m;return f(a,this,d,i>1?arguments[1]:void 0,i>2?arguments[2]:void 0)}return c}(),l)},65446:function(L,r,n){"use strict";var e=n(30432),a=n(18539).filter,t=n(85710),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function N(b){var S=a(o(this),b,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},62243:function(L,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},21066:function(L,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},43059:function(L,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97363:function(L,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},35249:function(L,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(N){a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},68739:function(L,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(L,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},40353:function(L,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},33278:function(L,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},65331:function(L,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},99755:function(L,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},87975:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),f=n(26017),N=n(95558),b=N("iterator"),S=e.Uint8Array,y=t(f.values),h=t(f.keys),l=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,i=S&&S.prototype,d=!a(function(){i[b].call([1])}),u=!!i&&i.values&&i[b]===i.values&&i.values.name==="values",s=function(){function C(){return y(c(this))}return C}();m("entries",function(){function C(){return l(c(this))}return C}(),d),m("keys",function(){function C(){return h(c(this))}return C}(),d),m("values",s,d||!u,{name:"values"}),m(b,s,d||!u,{name:"values"})},20812:function(L,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function N(b){return f(t(this),b)}return N}())},5640:function(L,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function N(b){var S=arguments.length;return a(t,o(this),S>1?[b,arguments[1]]:[b])}return N}())},47736:function(L,r,n){"use strict";var e=n(30432),a=n(18539).map,t=n(9230),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function N(b){return a(o(this),b,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return N}())},81944:function(L,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var N=0,b=arguments.length,S=new(t(this))(b);b>N;)S[N]=arguments[N++];return S}return f}(),a)},72214:function(L,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(N){var b=arguments.length;return a(t(this),N,b,b>1?arguments[1]:void 0)}return f}())},68685:function(L,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(N){var b=arguments.length;return a(t(this),N,b,b>1?arguments[1]:void 0)}return f}())},48774:function(L,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var N=this,b=a(N).length,S=o(b/2),y=0,h;y1?arguments[1]:void 0,1),g=N(s);if(i)return a(l,this,g,C);var v=this.length,p=o(g),V=0;if(p+C>v)throw new S("Wrong length");for(;Vm;)d[m]=l[m++];return d}return S}(),b)},10702:function(L,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return f}())},76622:function(L,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),f=n(91183),N=n(30432),b=n(31574),S=n(88836),y=n(43541),h=n(27204),l=N.aTypedArray,c=N.exportTypedArrayMethod,m=e.Uint16Array,i=m&&a(m.prototype.sort),d=!!i&&!(t(function(){i(new m(2),null)})&&t(function(){i(new m(2),{})})),u=!!i&&!t(function(){if(y)return y<74;if(b)return b<67;if(S)return!0;if(h)return h<602;var C=new m(516),g=Array(516),v,p;for(v=0;v<516;v++)p=v%4,C[v]=515-v,g[v]=v-2*p+3;for(i(C,function(V,k){return(V/4|0)-(k/4|0)}),v=0;v<516;v++)if(C[v]!==g[v])return!0}),s=function(g){return function(v,p){return g!==void 0?+g(v,p)||0:p!==p?-1:v!==v?1:v===0&&p===0?1/v>0&&1/p<0?1:-1:v>p}};c("sort",function(){function C(g){return g!==void 0&&o(g),u?i(this,g):f(l(this),s(g))}return C}(),!u||d)},64408:function(L,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),f=e.aTypedArray,N=e.exportTypedArrayMethod;N("subarray",function(){function b(S,y){var h=f(this),l=h.length,c=t(S,l),m=o(h);return new m(h.buffer,h.byteOffset+c*h.BYTES_PER_ELEMENT,a((y===void 0?l:t(y,l))-c))}return b}())},22306:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),f=n(31170),N=e.Int8Array,b=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,h=!!N&&o(function(){y.call(new N(1))}),l=o(function(){return[1,2].toLocaleString()!==new N([1,2]).toLocaleString()})||!o(function(){N.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,h?f(b(this)):b(this),f(arguments))}return c}(),l)},90334:function(L,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),f=t.Uint8Array,N=f&&f.prototype||{},b=[].toString,S=o([].join);a(function(){b.call({})})&&(b=function(){function h(){return S(this)}return h}());var y=N.toString!==b;e("toString",b,y)},70088:function(L,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},7284:function(L,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},25855:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()})},97372:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,f,N){return a(this,o,f,N)}return t}()},!0)},84937:function(L,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),f=n(66526),N=n(10609),b=n(19250),S=n(66379),y=n(4471).enforce,h=n(13586),l=n(73844),c=Object,m=Array.isArray,i=c.isExtensible,d=c.isFrozen,u=c.isSealed,s=c.freeze,C=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,p=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},V=N("WeakMap",p,b),k=V.prototype,B=t(k.set),I=function(){return e&&h(function(){var E=s([]);return B(new V,E,1),!d(E)})};if(l)if(g){v=b.getConstructor(p,"WeakMap",!0),f.enable();var w=t(k.delete),T=t(k.has),A=t(k.get);o(k,{delete:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!i(E)){var P=y(this);return P.frozen||(P.frozen=new v),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!i(E)){var R=y(this);R.frozen||(R.frozen=new v),T(this,E)?B(this,E,P):R.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else I()&&o(k,{set:function(){function x(E,P){var R;return m(E)&&(d(E)?R=s:u(E)&&(R=C)),B(this,E,P),R&&R(E),this}return x}()})},69880:function(L,r,n){"use strict";n(84937)},74764:function(L,r,n){"use strict";var e=n(10609),a=n(19250);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37167:function(L,r,n){"use strict";n(74764)},82818:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},25109:function(L,r,n){"use strict";n(82818),n(21813)},367:function(L,r,n){"use strict";var e=n(3116),a=n(60816),t=n(79474),o=n(92827);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function f(N){o(arguments.length,1),a(t(N))}return f}()})},21813:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).set,o=n(17459),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},50943:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},91851:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},8459:function(L,r,n){"use strict";n(50943),n(91851)},87454:function(L){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var h=[],u=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,l){if(typeof l=="object"){if(l===null)return l;if(h.includes(l))return"[circular ref]";h.push(l);var s=l instanceof Error||l.code&&l.message&&l.message.includes("Error");return s?{__error__:!0,string:String(l),stack:l.stack}:Array.isArray(l)?l.map(u):l}return u(l)},m=JSON.stringify(k,c);return h=null,m},f=function(k){if(0)var h,u,c},N=function(k,h){if(0)var u,c,m},b=function(){};L.exports={subscribe:t,sendMessage:f,sendLogEntry:N,setupHotReloading:b}}},bt={};function X(L){var r=bt[L];if(r!==void 0)return r.exports;var n=bt[L]={exports:{}};return $t[L](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(L){if(typeof window=="object")return window}}()})(),function(){X.o=function(L,r){return Object.prototype.hasOwnProperty.call(L,r)}}();var In={};(function(){"use strict";X(32321),X(64777),X(65884),X(56564),X(68981),X(27699),X(22905),X(96311),X(61292),X(75419),X(67638),X(7601),X(89010),X(5401),X(75836),X(33901),X(85803),X(7216),X(50584),X(26632),X(25972),X(55222),X(14064),X(68616),X(45168),X(26088),X(92654),X(58423),X(26017),X(37808),X(2509),X(2124),X(38196),X(7731),X(56913),X(48704),X(24077),X(60230),X(43430),X(53407),X(69220),X(72978),X(55784),X(41365),X(58874),X(85806),X(3521),X(94961),X(91777),X(49615),X(70700),X(31032),X(83329),X(15700),X(85783),X(51430),X(10944),X(36418),X(68872),X(93105),X(1795),X(11121),X(18730),X(11624),X(89004),X(72680),X(75213),X(4347),X(86433),X(21401),X(54468),X(36183),X(95499),X(50929),X(91447),X(84314),X(48211),X(52237),X(306),X(22509),X(84660),X(82678),X(76585),X(21733),X(21210),X(10272),X(83403),X(4229),X(53388),X(53121),X(53822),X(2514),X(2218),X(14955),X(79220),X(81941),X(37245),X(8373),X(81212),X(26054),X(57745),X(49611),X(98344),X(55750),X(7340),X(63429),X(9558),X(2420),X(19015),X(34137),X(24705),X(55318),X(49456),X(12217),X(75795),X(79063),X(1210),X(91370),X(17327),X(2679),X(60733),X(27262),X(47278),X(22547),X(92992),X(64650),X(71255),X(97836),X(65558),X(83932),X(72941),X(57918),X(2394),X(37517),X(65699),X(11360),X(33683),X(16792),X(8),X(76015),X(57318),X(33177),X(1429),X(56515),X(30343),X(60981),X(96578),X(59592),X(54511),X(84368),X(76980),X(25492),X(13684),X(79646),X(98511),X(30733),X(58683),X(70277),X(36865),X(13763),X(56001),X(58713),X(41960),X(31772),X(43059),X(97363),X(99755),X(33278),X(65331),X(25855),X(97372),X(70088),X(7284),X(76464),X(58549),X(42774),X(65446),X(21066),X(62243),X(35249),X(68739),X(5723),X(40353),X(87975),X(20812),X(5640),X(47736),X(81944),X(68685),X(72214),X(48774),X(2915),X(17165),X(10702),X(76622),X(64408),X(22306),X(90334),X(69880),X(37167),X(25109),X(367),X(8459),X(16970),X(11386)})(),function(){"use strict";var L=X(28823);X(47468),X(52355),X(66309),X(74395),X(86879),X(66782),X(35116),X(47968),X(67041),X(59719),X(14045),X(81912),X(53152),X(72694);var r=X(60031),n=X(87454),e=X(39891),a=X(85955),t=X(64960),o=X(79143),f=X(33053),N;/** + */var r,n=[],e=[],a=function(){if(0)var y;window.onunload=function(){return r&&r.close()}},t=function(y){return e.push(y)},o=function(y){var h=[],l=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,u){if(typeof u=="object"){if(u===null)return u;if(h.includes(u))return"[circular ref]";h.push(u);var s=u instanceof Error||u.code&&u.message&&u.message.includes("Error");return s?{__error__:!0,string:String(u),stack:u.stack}:Array.isArray(u)?u.map(l):u}return l(u)},m=JSON.stringify(y,c);return h=null,m},f=function(y){if(0)var h,l,c},N=function(y,h){if(0)var l,c,m},b=function(){};L.exports={subscribe:t,sendMessage:f,sendLogEntry:N,setupHotReloading:b}}},bt={};function X(L){var r=bt[L];if(r!==void 0)return r.exports;var n=bt[L]={exports:{}};return $t[L](n,n.exports,X),n.exports}(function(){X.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(L){if(typeof window=="object")return window}}()})(),function(){X.o=function(L,r){return Object.prototype.hasOwnProperty.call(L,r)}}();var In={};(function(){"use strict";X(32321),X(64777),X(65884),X(56564),X(68981),X(27699),X(22905),X(96311),X(61292),X(75419),X(67638),X(7601),X(89010),X(5401),X(75836),X(33901),X(85803),X(7216),X(50584),X(26632),X(25972),X(55222),X(14064),X(68616),X(45168),X(26088),X(92654),X(58423),X(26017),X(37808),X(2509),X(2124),X(38196),X(7731),X(56913),X(48704),X(24077),X(60230),X(43430),X(53407),X(69220),X(72978),X(55784),X(41365),X(58874),X(85806),X(3521),X(94961),X(91777),X(49615),X(70700),X(31032),X(83329),X(15700),X(85783),X(51430),X(10944),X(36418),X(68872),X(93105),X(1795),X(11121),X(18730),X(11624),X(89004),X(72680),X(75213),X(4347),X(86433),X(21401),X(54468),X(36183),X(95499),X(50929),X(91447),X(84314),X(48211),X(52237),X(306),X(22509),X(84660),X(82678),X(76585),X(21733),X(21210),X(10272),X(83403),X(4229),X(53388),X(53121),X(53822),X(2514),X(2218),X(14955),X(79220),X(81941),X(37245),X(8373),X(81212),X(26054),X(57745),X(49611),X(98344),X(55750),X(7340),X(63429),X(9558),X(2420),X(19015),X(34137),X(24705),X(55318),X(49456),X(12217),X(75795),X(79063),X(1210),X(91370),X(17327),X(2679),X(60733),X(27262),X(47278),X(22547),X(92992),X(64650),X(71255),X(97836),X(65558),X(83932),X(72941),X(57918),X(2394),X(37517),X(65699),X(11360),X(33683),X(16792),X(8),X(76015),X(57318),X(33177),X(1429),X(56515),X(30343),X(60981),X(96578),X(59592),X(54511),X(84368),X(76980),X(25492),X(13684),X(79646),X(98511),X(30733),X(58683),X(70277),X(36865),X(13763),X(56001),X(58713),X(41960),X(31772),X(43059),X(97363),X(99755),X(33278),X(65331),X(25855),X(97372),X(70088),X(7284),X(76464),X(58549),X(42774),X(65446),X(21066),X(62243),X(35249),X(68739),X(5723),X(40353),X(87975),X(20812),X(5640),X(47736),X(81944),X(68685),X(72214),X(48774),X(2915),X(17165),X(10702),X(76622),X(64408),X(22306),X(90334),X(69880),X(37167),X(25109),X(367),X(8459),X(16970),X(11386)})(),function(){"use strict";var L=X(28823);X(47468),X(52355),X(66309),X(74395),X(86879),X(66782),X(35116),X(47968),X(67041),X(59719),X(14045),X(81912),X(53152),X(72694);var r=X(60031),n=X(87454),e=X(39891),a=X(85955),t=X(64960),o=X(79143),f=X(33053),N;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(N=window.performance)==null||(N=N.timing)==null?void 0:N.navigationStart),r.perf.mark("init");var b=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var h=X(76521),u=h.getRoutedComponent,c=u(b);return(0,L.createComponentVNode)(2,o.StoreProvider,{store:b,children:(0,L.createComponentVNode)(2,c)})}),k=function h(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",h);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),b.subscribe(S),Byond.subscribe(function(u,c){return b.dispatch({type:u,payload:c})})};k()}()})();})(); + */r.perf.mark("inception",(N=window.performance)==null||(N=N.timing)==null?void 0:N.navigationStart),r.perf.mark("init");var b=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var h=X(76521),l=h.getRoutedComponent,c=l(b);return(0,L.createComponentVNode)(2,o.StoreProvider,{store:b,children:(0,L.createComponentVNode)(2,c)})}),y=function h(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",h);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),b.subscribe(S),Byond.subscribe(function(l,c){return b.dispatch({type:l,payload:c})})};y()}()})();})();